<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Generate objects by code</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/d44a92ea62/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/d44a92ea62/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/d44a92ea62/</id><updated>2020-04-01T08:24:51.637000Z</updated><subtitle>Recent posts to Generate objects by code</subtitle><entry><title>Generate objects by code</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/d44a92ea62/?limit=25#a8cc/5402/4aec/8025/630f/ecb5/bfc7/dd46/f0a8/417a" rel="alternate"/><published>2020-04-01T08:24:51.637000Z</published><updated>2020-04-01T08:24:51.637000Z</updated><author><name>appling</name><uri>https://forge.codesys.com/u/appling/</uri></author><id>https://forge.codesys.com14c0e711e025c16d8cc6b3354673d5c301726bb1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I see what happened:&lt;br/&gt;
m.prestel said: "Using these properties you can also change the width/height of the rectangle (not only the top left position)" and meant that you can use the "relative movement" properties to adjust the dimensions of the object. Try putting your variables there.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Generate objects by code</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/d44a92ea62/?limit=25#a8cc/5402/4aec/8025/630f/ecb5/bfc7/dd46/f0a8/a83d" rel="alternate"/><published>2020-04-01T08:13:55.446000Z</published><updated>2020-04-01T08:13:55.446000Z</updated><author><name>m.prestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.comdf4b8d22c488b9bd171c6c3bd103da15091d9bef</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;thought the same, just wanna make sure we are all on the same page ;)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Generate objects by code</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/d44a92ea62/?limit=25#a8cc/5402/4aec/8025/630f/ecb5/bfc7/dd46/f0a8" rel="alternate"/><published>2020-04-01T08:11:13.525000Z</published><updated>2020-04-01T08:11:13.525000Z</updated><author><name>appling</name><uri>https://forge.codesys.com/u/appling/</uri></author><id>https://forge.codesys.comf53226dc4e28faa2f5010e1ff0fe0a5b0479f113</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes that is true! I thought we were talking about the movement variables!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Generate objects by code</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/d44a92ea62/?limit=25#a8cc/5402/4aec/8025/630f/ecb5/bfc7/dd46" rel="alternate"/><published>2020-04-01T07:56:49.747000Z</published><updated>2020-04-01T07:56:49.747000Z</updated><author><name>m.prestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.com41a7d127add2cb12cedc6db44626d3a7c55b1f31</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You cannot put variables into X/Y/Width/Height&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Generate objects by code</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/d44a92ea62/?limit=25#a8cc/5402/4aec/8025/630f/ecb5/bfc7" rel="alternate"/><published>2020-04-01T07:52:55.588000Z</published><updated>2020-04-01T07:52:55.588000Z</updated><author><name>appling</name><uri>https://forge.codesys.com/u/appling/</uri></author><id>https://forge.codesys.com381121384a19c14cacaf931d3a4ebd7b26c2a56d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This is weird because the exact same setup works for me. I have one last idea:&lt;br/&gt;
Try initializing the values with a non-zero value (it should be the starting coordinate of your edge on the visualization canvas). So for example iWidth : INT := 100;&lt;br/&gt;
I hope this does the trick.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Generate objects by code</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/d44a92ea62/?limit=25#a8cc/5402/4aec/8025/630f/ecb5" rel="alternate"/><published>2020-04-01T07:09:37.388000Z</published><updated>2020-04-01T07:09:37.388000Z</updated><author><name>agarcia</name><uri>https://forge.codesys.com/u/agarcia/</uri></author><id>https://forge.codesys.com81577ffce4dbc24c6e491accce58c07d770bb93a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have declared the variable as global without the attribute, anyway I tried to add access and I get the same message.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Generate objects by code</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/d44a92ea62/?limit=25#a8cc/5402/4aec/8025/630f" rel="alternate"/><published>2020-04-01T06:33:18.927000Z</published><updated>2020-04-01T06:33:18.927000Z</updated><author><name>appling</name><uri>https://forge.codesys.com/u/appling/</uri></author><id>https://forge.codesys.com4e48423ade1863acc18013fd7205a54275c11154</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Looks like iHight is no variable of the INT data type. How have you declared iHight? And where have you declared it?&lt;br/&gt;
Try this in a global variable list or in a Program:&lt;br/&gt;
iHight : INT;&lt;br/&gt;
and then access the variable in the visu page like this: MyVariableList.iHight&lt;br/&gt;
If you have declared iHight within a program you will have to write the qualifier before the variable, so maybe that is your problem?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Generate objects by code</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/d44a92ea62/?limit=25#a8cc/5402/4aec/8025" rel="alternate"/><published>2020-03-31T20:24:12.605000Z</published><updated>2020-03-31T20:24:12.605000Z</updated><author><name>agarcia</name><uri>https://forge.codesys.com/u/agarcia/</uri></author><id>https://forge.codesys.com5687c2c2101961afab3f73692ebf914385d0c4f3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I get the following error when I enter the variable in the object property.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Generate objects by code</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/d44a92ea62/?limit=25#a8cc/5402/4aec" rel="alternate"/><published>2020-03-31T10:46:42.005000Z</published><updated>2020-03-31T10:46:42.005000Z</updated><author><name>appling</name><uri>https://forge.codesys.com/u/appling/</uri></author><id>https://forge.codesys.comee908141f9cd5635dd87997498297c1585dbd7dd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Which codesys version are you using? For me (3.5.7) I can put variables there without problems. What is your compiler error? My variables are of type INT, maybe you are trying something different? &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Generate objects by code</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/d44a92ea62/?limit=25#a8cc/5402" rel="alternate"/><published>2020-03-31T10:31:25.223000Z</published><updated>2020-03-31T10:31:25.223000Z</updated><author><name>agarcia</name><uri>https://forge.codesys.com/u/agarcia/</uri></author><id>https://forge.codesys.com0a5723012d047f3eb84a271a511d26fd6a835063</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;But I can't modify this property with a variable. I would like to modify this property based on a variable so that I can visualize the resizing in the product. I've seen that in scaling you can add a variable but this doesn't work for me.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>