<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: 2D Symbol Insertion Point using GDL scripting in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254780#M2173</link>
    <description>Thanks for the replies everyone I think we are nearly there. We now have no errors in the code but there seems to be an issue with the scipt. The code now has resized the 2D view to a very small scale and it does not change at all when you change the width of the window. Have I missed out on anything in the code? &lt;BR /&gt;
&lt;BR /&gt;
I've attached some images to show what I mean. The 2D symbol remains the same size even after I've resized the window to 3000mm or 4000mm. &lt;BR /&gt;
&lt;BR /&gt;
Below is the code I have thus far. &lt;BR /&gt;

&lt;PRE&gt;A = -0.09045
B = 19.90796

IF LOD = "Coarse" THEN
!
!   Name     : New Object 1.gsm
!   Date     : Wednesday, 11 September 2019
!   Version  : 22.00
!   Written by ARCHICAD 
!

add2     A,B
MUL2 A3.0, 1
line_property       0
line2    1.540449512792, -20.08295636262, 1.535449512792, -20.08295636262
line2    1.495651223507, -20.08295636262, 0.1612478020773, -20.08295636262
line2    0.1214495127919, -20.08295636262, 0.1164495127919, -20.08295636262
line2    0.06444951279192, -20.08295636262, -1.359550487208, -20.08295636262
line2    -1.409550487208, -20.08295636262, -1.359550487208, -20.08295636262
line2    -1.359550487208, -20.08295636262, -1.359550487208, -20.05422889551
line2    -1.359550487208, -20.05422889551, -1.390350487208, -20.05422889551
line2    -1.390350487208, -20.05422889551, -1.390350487208, -20.01008382972
line2    -1.390350487208, -20.01008382972, -1.359550487208, -20.01008382972
line2    -1.359550487208, -20.01008382972, -1.359550487208, -19.98135636262
line2    -1.359550487208, -19.98135636262, -1.409550487208, -19.98135636262
line2    -1.409550487208, -19.98135636262, -1.409550487208, -20.08295636262
line2    1.501550899651, -20.01785659294, 1.530551204182, -20.01785659294
line2    1.530551204182, -20.01785659294, 1.530444444816, -20.05273660423
line2    1.530444444816, -20.05273660423, 1.540449512792, -20.05273660423
line2    1.540449512792, -20.05273660423, 1.540449512792, -20.08295636262
line2    1.540449512792, -20.08295636262, 1.590449512792, -20.08295636262
line2    1.590449512792, -20.08295636262, 1.590449512792, -19.98135636262
line2    1.590449512792, -19.98135636262, 1.540449512792, -19.98135636262
line2    1.540449512792, -19.98135636262, 1.540449512792, -20.00885659294
line2    1.540449512792, -20.00885659294, 1.499950899651, -20.00885659294
line2    1.499950899651, -20.00885659294, 1.499950899651, -20.02725659271
line2    1.499950899651, -20.02725659271, 1.489950898762, -20.02725659271
line2    1.489950898762, -20.02725659271, 1.489950898762, -20.0288565859
line2    1.489950898762, -20.0288565859, 1.504154523548, -20.0288565859
arc2     1.504150031969, -20.0280565965, 0.0008000020113974, 270.3216865704,           90
line2    1.504150031969, -20.02725659449, 1.501550899651, -20.02725659449
line2    1.501550899651, -20.02725659449, 1.501550899651, -20.01785659294
line2    0.06444951279192, -20.08295636262, 0.1164495127919, -20.08295636262
line2    0.1164495127919, -20.08295636262, 0.1164495127919, -20.05288660423
line2    0.1164495127919, -20.05288660423, 0.1264495127919, -20.05288660423
line2    0.1264495127919, -20.05288660423, 0.1264495127919, -20.01800659294
line2    0.1264495127919, -20.01800659294, 0.1553467308704, -20.01800659294
line2    0.1553467308704, -20.01800659294, 0.1553467308704, -20.02740659449
line2    0.1553467308704, -20.02740659449, 0.1527475985522, -20.02740659449
arc2     0.1527475985522, -20.0282065965, 0.0008000020113972,           90, 269.6783134337
line2    0.1527431069727, -20.0290065859, 0.1669467311665, -20.0290065859
line2    0.1669467311665, -20.0290065859, 0.1669467311665, -20.02740659271
line2    0.1669467311665, -20.02740659271, 0.1569467308704, -20.02740659271
line2    0.1569467308704, -20.02740659271, 0.1569467308704, -20.00900659294
line2    0.1569467308704, -20.00900659294, 0.1164495127919, -20.00900659294
line2    0.1164495127919, -20.00900659294, 0.1164495127919, -19.98135636262
line2    0.1164495127919, -19.98135636262, 0.06444951279192, -19.98135636262
line2    0.06444951279192, -19.98135636262, 0.06444951279192, -20.08295636262
line2    -1.369550487208, -20.04465636262, 0.06444951279192, -20.04465636262
line2    0.06444951279192, -20.03865636262, -1.369550487208, -20.03865636262
line2    -1.369550487208, -20.03865636262, -1.369550487208, -20.04465636262
line2    -1.369550487208, -20.02565636262, 0.06444951279192, -20.02565636262
line2    0.06444951279192, -20.01965636262, -1.369550487208, -20.01965636262
line2    -1.369550487208, -20.01965636262, -1.369550487208, -20.02565636262
line2    0.1541467240547, -20.03299548126, 0.154146710613, -20.04885548023
line2    0.154146710613, -20.04885548023, 0.1561467240548, -20.04885547875
line2    0.1561467240548, -20.04885547875, 0.1561467238532, -20.05784547853
line2    0.1561467238532, -20.05784547853, 0.1338295127919, -20.05784547853
line2    0.1338295127919, -20.05784547853, 0.1338295127919, -20.05584547867
arc2     0.133079512652, -20.05584547867, 0.0007500001399308,            0,          180
line2    0.132329511552, -20.05584547871, 0.132329512792, -20.07603548841
line2    0.132329512792, -20.07603548841, 0.1214495127919, -20.07603548841
line2    0.1214495127919, -20.07603548841, 0.1214495127919, -20.08299547712
line2    0.1214495127919, -20.08299547712, 0.1612478020773, -20.0829954799
line2    0.1612478020773, -20.0829954799, 0.1910916593197, -20.07499884245
line2    0.1910916593197, -20.07499884245, 0.1910916593197, -20.03334046532
line2    0.1910916593197, -20.03334046532, 0.1713268075086, -20.03299546854
line2    0.1713268075086, -20.03299546854, 0.1541467240547, -20.03299548126
line2    1.502752301529, -20.03299548126, 1.485572218075, -20.03299546854
line2    1.485572218075, -20.03299546854, 1.465807366264, -20.03334046532
line2    1.465807366264, -20.03334046532, 1.465807366264, -20.07499884245
line2    1.465807366264, -20.07499884245, 1.495651223507, -20.0829954799
line2    1.495651223507, -20.0829954799, 1.535449512792, -20.08299547712
line2    1.535449512792, -20.08299547712, 1.535449512792, -20.07603548841
line2    1.535449512792, -20.07603548841, 1.524569512792, -20.07603548841
line2    1.524569512792, -20.07603548841, 1.524569514032, -20.05584547871
arc2     1.523819512932, -20.05584547867, 0.0007500001399876,            0,          180
line2    1.523069512792, -20.05584547867, 1.523069512792, -20.05784547853
line2    1.523069512792, -20.05784547853, 1.500752301731, -20.05784547853
line2    1.500752301731, -20.05784547853, 1.500752301529, -20.04885547875
line2    1.500752301529, -20.04885547875, 1.502752314971, -20.04885548023
line2    1.502752314971, -20.04885548023, 1.502752301529, -20.03299548126
line2    0.1910916593197, -20.06875636262, 1.465807366264, -20.06875636262
line2    1.465807366264, -20.06275636262, 0.1910916593197, -20.06275636262
line2    0.1910916593197, -20.04975636262, 1.465807366264, -20.04975636262
line2    1.465807366264, -20.04375636262, 0.1910916593197, -20.04375636262
hotspot2 -1.409550487208, -20.08295636262
hotspot2 1.590449512792, -20.08295636262

DEL TOP

ENDIF&lt;/PRE&gt;</description>
    <pubDate>Tue, 24 Sep 2019 08:08:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-09-24T08:08:52Z</dc:date>
    <item>
      <title>2D Symbol Insertion Point using GDL scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254769#M2162</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi everyone,&lt;BR /&gt;
&lt;BR /&gt;
I'm fairly new to GDL and scripting in Archicad all together but I'm in urgent need of creating this specific type of door for my project. This door began as a Revit door which I was able to import using the Import RFA as GDL plugin. I was able to tidy up the door and I'm fairly happy with it but I also wanted to add an extra feature in the door's settings to be able to switch between the door's level of detail of its 2D symbol in plan view. &lt;BR /&gt;
&lt;BR /&gt;
Revit has the ability to show coarse, medium and fine views of its elements. If you look at what I'm trying to do, I've added some scripting where I can choose between 3 levels of details. I then exported the door's 2d symbol from Revit for all 3 settings, saved each as an object in Archicad and was able to copy the 2D code that defines each symbol. &lt;BR /&gt;
&lt;BR /&gt;
My issue is now how do I make each symbol insert and snap to the overall door's width and thickness? If you look at my screenshots, the symbols just float because the code is currently picking a random x and y insertion points. Can anyone help me, please?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2023 07:54:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254769#M2162</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-24T07:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Symbol Insertion Point using GDL scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254770#M2163</link>
      <description>I am not sure how this is going to work for you as there is quite a bit to door and window objects.&lt;BR /&gt;
&lt;BR /&gt;
But the line ...
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;ADD2 -0, -0 &lt;/PRE&gt;

Is the one that will move the lines created by the following code.&lt;BR /&gt;
That code should be followed by a ...&lt;BR /&gt;

&lt;PRE&gt;DEL 1&lt;/PRE&gt;

to undo the move ready for the next bit of code.&lt;BR /&gt;
&lt;BR /&gt;
You can measure in the 2D preview window so you can see what values to use for the x and y co-ordinates in the ADD2 command.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 10 Sep 2019 05:48:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254770#M2163</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2019-09-10T05:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Symbol Insertion Point using GDL scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254771#M2164</link>
      <description>Thanks for the reply. Is there any code I can add to manipulate the level of detail using the "model view options" instead?</description>
      <pubDate>Tue, 10 Sep 2019 08:07:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254771#M2164</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-10T08:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Symbol Insertion Point using GDL scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254772#M2165</link>
      <description>&lt;BLOCKQUOTE&gt;Studioverde wrote:&lt;BR /&gt;
Is there any code I can add to manipulate the level of detail using the "model view options" instead?
&lt;/BLOCKQUOTE&gt;

Sure - but you say you are new to this GDL scripting.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
You could open a Graphisoft window and try to dig through the scripts to see how it is done, but that is not so easy.&lt;BR /&gt;
&lt;BR /&gt;
Basically what you are looking for is the 'LIBRARYGLOBAL' command - you will find it in the GDL manual.&lt;BR /&gt;
This will allow you to find out the values of the MVO paramerters and then based on those values you can run the parts of your script that you want.&lt;BR /&gt;
&lt;BR /&gt;
To give you more specifics, I would have to go digging around in the GS library myself (I don't actually use their library as I have my own) so that is about the limit of my help for now.&lt;BR /&gt;
&lt;BR /&gt;
Maybe someone else has done this already and can point you where to go.&lt;BR /&gt;
&lt;BR /&gt;
The other thing you can try is to contact your local distributor.&lt;BR /&gt;
There is an add-on called Library Part Maker that is available to some regions (UK for example).&lt;BR /&gt;
This will allow you to create objects, doors and windows (non-parametric) that are based on the LOD settings in the MVO.&lt;BR /&gt;
I have searched the forum here for Library part maker, and all of the posts seem to say ...&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;the availability of the LPM add-on might wary depending on your country. Contacting your local support might be the best choice here&lt;/PRE&gt;

So contact your local distributor and see what they say.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 10 Sep 2019 08:49:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254772#M2165</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2019-09-10T08:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Symbol Insertion Point using GDL scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254773#M2166</link>
      <description>I had a couple of minutes to go looking.&lt;BR /&gt;
&lt;BR /&gt;
This is the macro that controls the MVO for doors and windows.&lt;BR /&gt;
&lt;BR /&gt;



&lt;BR /&gt;
The parameters you will be looking for the values of are ...&lt;BR /&gt;
&lt;BR /&gt;



&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 10 Sep 2019 09:15:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254773#M2166</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2019-09-10T09:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Symbol Insertion Point using GDL scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254774#M2167</link>
      <description>Hi Barry,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for looking this up for me. I think due to my lack of knowledge of GDL, I have not set up the creation of these windows correctly nor have I used the right procedure. I need to hand over this content to my client by the end of this coming week but I will invest time into learning GDL and the proper procedures into creating content. &lt;BR /&gt;
&lt;BR /&gt;
For the time being I wanted to ask you about two further features that I would like to implement and wondering if I could get your help. &lt;BR /&gt;
&lt;BR /&gt;
Feature 1 - Implement a code where when A (width) is greater than 5000mm, the width of the window does not change meaning you can only adjust the width of the window between 1mm to 5000mm and nothing greater than that. &lt;BR /&gt;
&lt;BR /&gt;
I'm obviously a begginer at best when it comes to GDL coding but my assumption to get this to work would be, &lt;BR /&gt;
&lt;BR /&gt;
IF A =&amp;gt; 5000 (IF STATEMENT)&lt;BR /&gt;
THEN LOCK A&lt;BR /&gt;
&lt;BR /&gt;
That is my logic as to how this will work but what is the exact code? I dont know. &lt;BR /&gt;
&lt;BR /&gt;
Feature 2 - I managed to get the 3 different level of details to work by saving each 2D view as a library object and extracting the code for each and plugging it in to the 2d script of the window. (please see attached screenshot). However, when I change the real width of the window say from 5000mm to 3000mm, the opening of it does change but the 2D symbol remain static and does not change. Is there any way I can link the 2D script symbol to the 3D object? &lt;BR /&gt;
&lt;BR /&gt;
These are the 2 features that I still need to implement for now. Any help would be great. &lt;BR /&gt;
&lt;BR /&gt;
Thank you</description>
      <pubDate>Mon, 23 Sep 2019 22:51:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254774#M2167</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-23T22:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Symbol Insertion Point using GDL scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254775#M2168</link>
      <description>Feature 1.&lt;BR /&gt;
&lt;BR /&gt;
Put this code in the Parameter script.&lt;BR /&gt;

&lt;PRE&gt;VALUES "A" RANGE [0.001, 5.000]&lt;/PRE&gt;

&lt;BR /&gt;
This will restrict the input width of the window to that range only.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Feature 2.&lt;BR /&gt;
Unfortunately your 2D script is placing lines of fixed dimensions.&lt;BR /&gt;
If you want to make the 2D parametric then the code for the line for the width of the window would have to be would have to be ...&lt;BR /&gt;

&lt;PRE&gt;LINE2 0,0,A,0&lt;/PRE&gt;

To change all of the lines of code so they are relative to the width (A) would be rather tedious.&lt;BR /&gt;
&lt;BR /&gt;
However you could add a MUL2 command to stretch the following code.&lt;BR /&gt;
The problem is it will all be relative, so yes your window will change width, but the frame width will also change proportionally as well.&lt;BR /&gt;
&lt;BR /&gt;
Say the original window you drew was 2400mm wide.&lt;BR /&gt;
It will always be 2400mm wide in 2D.&lt;BR /&gt;
After the 'ADD A,B' line you will need to put the line ...&lt;BR /&gt;

&lt;PRE&gt;MUL2 A/2.400, 1&lt;/PRE&gt;

Then you have the code to draw the window frame&lt;BR /&gt;
Then 'DEL 1' to undo the MUL2 (and another 'DEL 1' to undo the original ADD as well - always move back to your origin so you know where you are).&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
So now if the window is 2400mm wide it will be MULtiplied by 1 (2.200/2.400)&lt;BR /&gt;
If you make the window 4800mm wide it will be MULtiplied by 2 (4.800/2.400)&lt;BR /&gt;
&lt;BR /&gt;
But as I say the frame widths will also be doubled.&lt;BR /&gt;
&lt;BR /&gt;
The only way you can avoid that is to script each and every line with a relationship to the 'A' width.&lt;BR /&gt;
i.e. LINE2 A-frame_width,0, A-frame_width, frame_depth ... will draw a line the depth of your window frame but always the frame width inside of the length A.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 24 Sep 2019 01:25:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254775#M2168</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2019-09-24T01:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Symbol Insertion Point using GDL scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254776#M2169</link>
      <description>&lt;BLOCKQUOTE&gt;Studioverde wrote:&lt;BR /&gt;extracting the code for each and plugging it in to the 2d script of the window.&lt;/BLOCKQUOTE&gt;

The 2D and 3D are seperate things. You will need to copy the code from the 3D script as well.&lt;BR /&gt;
&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;Studioverde wrote:&lt;BR /&gt;IF A =&amp;gt; 5000 (IF STATEMENT)&lt;BR /&gt;
THEN LOCK A&lt;/BLOCKQUOTE&gt;

You should read up the Parameters section of the GDL Reference Guide. This statement of yours will just prevent you from doing anything after changing the value of A. What you are wanting is:&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;IF A =&amp;gt; 5000 then PARAMETERS A = 5000&lt;/PRE&gt;

Edit: though doing as Barry has suggested using &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;VALUES&lt;E&gt;&lt;/E&gt; is probably better practice...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
If you are really wanting to create parametric windows, you will have to script them from scratch as it will be next to impossible to scale parts individually if saved out from modelled parts as per what Barry has said regarding &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;MUL&lt;E&gt;&lt;/E&gt;. There is no need to add it though as saved out object include a MUL command near the start by default, you will probably just want to nul the Y part of it.&lt;BR /&gt;
&lt;BR /&gt;
2D Script
&lt;PRE&gt;mul2 A / 8.00000, B / 0.457522&lt;/PRE&gt;
to
&lt;PRE&gt;mul2 A / 8.00000, 1&lt;/PRE&gt;

&lt;BR /&gt;
3D Script
&lt;PRE&gt;mulx	A / 8.00000
muly	B / 0.457522&lt;/PRE&gt;
to
&lt;PRE&gt;mulx	A / 8.00000
muly	1&lt;/PRE&gt;

&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Tue, 24 Sep 2019 01:28:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254776#M2169</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2019-09-24T01:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Symbol Insertion Point using GDL scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254777#M2170</link>
      <description>Thank you for your help. Barry feature 1 worked like a charm so thank you. However for feature 2, something is still not working in the code after I added in the code you've suggested but maybe I have not added in the code correctly. Please see attached the start of the code and the end of the code and the error messageS that I get when I check the code. One of the error messages is before I place the DEL1 code at the bottom of the window frame code but after I added in both DEL1 lines, I get the code that talks about the missing CALL keyword.</description>
      <pubDate>Tue, 24 Sep 2019 04:36:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254777#M2170</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-24T04:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Symbol Insertion Point using GDL scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254778#M2171</link>
      <description>You want your second value in the MUL command to be 1, not 0.&lt;BR /&gt;
&lt;BR /&gt;
You need a space between the DEL and the number. It maybe viable to use "DEL TOP" in this situation.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Tue, 24 Sep 2019 04:56:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254778#M2171</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2019-09-24T04:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Symbol Insertion Point using GDL scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254779#M2172</link>
      <description>&lt;BLOCKQUOTE&gt;Lingwisyer wrote:&lt;BR /&gt;
You want your second value in the MUL command to be 1, not 0.
&lt;/BLOCKQUOTE&gt;

My mistake.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_redface.gif" style="display : inline;" /&gt; &lt;BR /&gt;
I have amended the original post.&lt;BR /&gt;
&lt;BR /&gt;
I am always doing that.&lt;BR /&gt;
Don't need it - make it zero, but in this case it must be 1 to keep the scale as it is.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 24 Sep 2019 05:17:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254779#M2172</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2019-09-24T05:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Symbol Insertion Point using GDL scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254780#M2173</link>
      <description>Thanks for the replies everyone I think we are nearly there. We now have no errors in the code but there seems to be an issue with the scipt. The code now has resized the 2D view to a very small scale and it does not change at all when you change the width of the window. Have I missed out on anything in the code? &lt;BR /&gt;
&lt;BR /&gt;
I've attached some images to show what I mean. The 2D symbol remains the same size even after I've resized the window to 3000mm or 4000mm. &lt;BR /&gt;
&lt;BR /&gt;
Below is the code I have thus far. &lt;BR /&gt;

&lt;PRE&gt;A = -0.09045
B = 19.90796

IF LOD = "Coarse" THEN
!
!   Name     : New Object 1.gsm
!   Date     : Wednesday, 11 September 2019
!   Version  : 22.00
!   Written by ARCHICAD 
!

add2     A,B
MUL2 A3.0, 1
line_property       0
line2    1.540449512792, -20.08295636262, 1.535449512792, -20.08295636262
line2    1.495651223507, -20.08295636262, 0.1612478020773, -20.08295636262
line2    0.1214495127919, -20.08295636262, 0.1164495127919, -20.08295636262
line2    0.06444951279192, -20.08295636262, -1.359550487208, -20.08295636262
line2    -1.409550487208, -20.08295636262, -1.359550487208, -20.08295636262
line2    -1.359550487208, -20.08295636262, -1.359550487208, -20.05422889551
line2    -1.359550487208, -20.05422889551, -1.390350487208, -20.05422889551
line2    -1.390350487208, -20.05422889551, -1.390350487208, -20.01008382972
line2    -1.390350487208, -20.01008382972, -1.359550487208, -20.01008382972
line2    -1.359550487208, -20.01008382972, -1.359550487208, -19.98135636262
line2    -1.359550487208, -19.98135636262, -1.409550487208, -19.98135636262
line2    -1.409550487208, -19.98135636262, -1.409550487208, -20.08295636262
line2    1.501550899651, -20.01785659294, 1.530551204182, -20.01785659294
line2    1.530551204182, -20.01785659294, 1.530444444816, -20.05273660423
line2    1.530444444816, -20.05273660423, 1.540449512792, -20.05273660423
line2    1.540449512792, -20.05273660423, 1.540449512792, -20.08295636262
line2    1.540449512792, -20.08295636262, 1.590449512792, -20.08295636262
line2    1.590449512792, -20.08295636262, 1.590449512792, -19.98135636262
line2    1.590449512792, -19.98135636262, 1.540449512792, -19.98135636262
line2    1.540449512792, -19.98135636262, 1.540449512792, -20.00885659294
line2    1.540449512792, -20.00885659294, 1.499950899651, -20.00885659294
line2    1.499950899651, -20.00885659294, 1.499950899651, -20.02725659271
line2    1.499950899651, -20.02725659271, 1.489950898762, -20.02725659271
line2    1.489950898762, -20.02725659271, 1.489950898762, -20.0288565859
line2    1.489950898762, -20.0288565859, 1.504154523548, -20.0288565859
arc2     1.504150031969, -20.0280565965, 0.0008000020113974, 270.3216865704,           90
line2    1.504150031969, -20.02725659449, 1.501550899651, -20.02725659449
line2    1.501550899651, -20.02725659449, 1.501550899651, -20.01785659294
line2    0.06444951279192, -20.08295636262, 0.1164495127919, -20.08295636262
line2    0.1164495127919, -20.08295636262, 0.1164495127919, -20.05288660423
line2    0.1164495127919, -20.05288660423, 0.1264495127919, -20.05288660423
line2    0.1264495127919, -20.05288660423, 0.1264495127919, -20.01800659294
line2    0.1264495127919, -20.01800659294, 0.1553467308704, -20.01800659294
line2    0.1553467308704, -20.01800659294, 0.1553467308704, -20.02740659449
line2    0.1553467308704, -20.02740659449, 0.1527475985522, -20.02740659449
arc2     0.1527475985522, -20.0282065965, 0.0008000020113972,           90, 269.6783134337
line2    0.1527431069727, -20.0290065859, 0.1669467311665, -20.0290065859
line2    0.1669467311665, -20.0290065859, 0.1669467311665, -20.02740659271
line2    0.1669467311665, -20.02740659271, 0.1569467308704, -20.02740659271
line2    0.1569467308704, -20.02740659271, 0.1569467308704, -20.00900659294
line2    0.1569467308704, -20.00900659294, 0.1164495127919, -20.00900659294
line2    0.1164495127919, -20.00900659294, 0.1164495127919, -19.98135636262
line2    0.1164495127919, -19.98135636262, 0.06444951279192, -19.98135636262
line2    0.06444951279192, -19.98135636262, 0.06444951279192, -20.08295636262
line2    -1.369550487208, -20.04465636262, 0.06444951279192, -20.04465636262
line2    0.06444951279192, -20.03865636262, -1.369550487208, -20.03865636262
line2    -1.369550487208, -20.03865636262, -1.369550487208, -20.04465636262
line2    -1.369550487208, -20.02565636262, 0.06444951279192, -20.02565636262
line2    0.06444951279192, -20.01965636262, -1.369550487208, -20.01965636262
line2    -1.369550487208, -20.01965636262, -1.369550487208, -20.02565636262
line2    0.1541467240547, -20.03299548126, 0.154146710613, -20.04885548023
line2    0.154146710613, -20.04885548023, 0.1561467240548, -20.04885547875
line2    0.1561467240548, -20.04885547875, 0.1561467238532, -20.05784547853
line2    0.1561467238532, -20.05784547853, 0.1338295127919, -20.05784547853
line2    0.1338295127919, -20.05784547853, 0.1338295127919, -20.05584547867
arc2     0.133079512652, -20.05584547867, 0.0007500001399308,            0,          180
line2    0.132329511552, -20.05584547871, 0.132329512792, -20.07603548841
line2    0.132329512792, -20.07603548841, 0.1214495127919, -20.07603548841
line2    0.1214495127919, -20.07603548841, 0.1214495127919, -20.08299547712
line2    0.1214495127919, -20.08299547712, 0.1612478020773, -20.0829954799
line2    0.1612478020773, -20.0829954799, 0.1910916593197, -20.07499884245
line2    0.1910916593197, -20.07499884245, 0.1910916593197, -20.03334046532
line2    0.1910916593197, -20.03334046532, 0.1713268075086, -20.03299546854
line2    0.1713268075086, -20.03299546854, 0.1541467240547, -20.03299548126
line2    1.502752301529, -20.03299548126, 1.485572218075, -20.03299546854
line2    1.485572218075, -20.03299546854, 1.465807366264, -20.03334046532
line2    1.465807366264, -20.03334046532, 1.465807366264, -20.07499884245
line2    1.465807366264, -20.07499884245, 1.495651223507, -20.0829954799
line2    1.495651223507, -20.0829954799, 1.535449512792, -20.08299547712
line2    1.535449512792, -20.08299547712, 1.535449512792, -20.07603548841
line2    1.535449512792, -20.07603548841, 1.524569512792, -20.07603548841
line2    1.524569512792, -20.07603548841, 1.524569514032, -20.05584547871
arc2     1.523819512932, -20.05584547867, 0.0007500001399876,            0,          180
line2    1.523069512792, -20.05584547867, 1.523069512792, -20.05784547853
line2    1.523069512792, -20.05784547853, 1.500752301731, -20.05784547853
line2    1.500752301731, -20.05784547853, 1.500752301529, -20.04885547875
line2    1.500752301529, -20.04885547875, 1.502752314971, -20.04885548023
line2    1.502752314971, -20.04885548023, 1.502752301529, -20.03299548126
line2    0.1910916593197, -20.06875636262, 1.465807366264, -20.06875636262
line2    1.465807366264, -20.06275636262, 0.1910916593197, -20.06275636262
line2    0.1910916593197, -20.04975636262, 1.465807366264, -20.04975636262
line2    1.465807366264, -20.04375636262, 0.1910916593197, -20.04375636262
hotspot2 -1.409550487208, -20.08295636262
hotspot2 1.590449512792, -20.08295636262

DEL TOP

ENDIF&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Sep 2019 08:08:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254780#M2173</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-24T08:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Symbol Insertion Point using GDL scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254781#M2174</link>
      <description>&lt;BLOCKQUOTE&gt;Studioverde wrote:&lt;BR /&gt;MUL2 A3.0, 1&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
You have removed the divide. Also, it should probably be your original width. A negative A value makes no sense as that would mean that your window has no width or negative width.</description>
      <pubDate>Tue, 24 Sep 2019 08:16:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254781#M2174</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2019-09-24T08:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Symbol Insertion Point using GDL scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254782#M2175</link>
      <description>Almost there.&lt;BR /&gt;
&lt;BR /&gt;
Usually 'A' is the width of the window opening and 'B' is the height.&lt;BR /&gt;
They are the length and height parameters in the info box and settings dialogue.&lt;BR /&gt;
&lt;BR /&gt;
You are then changing their values in the 2D script and using them for the ADD2 to move the frame.&lt;BR /&gt;
It will be better to create new variables for these and leave 'A' as the width of the window.&lt;BR /&gt;
&lt;BR /&gt;
The MUL2 command is missing the 'divide' symbol.&lt;BR /&gt;
The frame that you have drawn and used should be default 3.0 long, so when you set A as 3.0 in the settings it will be exactly the right size.&lt;BR /&gt;
Then as you adjust the 'A' parameter the window frame will stretch.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 24 Sep 2019 08:26:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254782#M2175</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2019-09-24T08:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Symbol Insertion Point using GDL scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254783#M2176</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;
Almost there.&lt;BR /&gt;
&lt;BR /&gt;
Usually 'A' is the width of the window opening and 'B' is the height.&lt;BR /&gt;
They are the length and height parameters in the info box and settings dialogue.&lt;BR /&gt;
&lt;BR /&gt;
You are then changing their values in the 2D script and using them for the ADD2 to move the frame.&lt;BR /&gt;
It will be better to create new variables for these and leave 'A' as the width of the window.&lt;BR /&gt;
&lt;BR /&gt;
The MUL2 command is missing the 'divide' symbol.&lt;BR /&gt;
The frame that you have drawn and used should be default 3.0 long, so when you set A as 3.0 in the settings it will be exactly the right size.&lt;BR /&gt;
Then as you adjust the 'A' parameter the window frame will stretch.&lt;BR /&gt;
&lt;BR /&gt;
Barry.
&lt;/BLOCKQUOTE&gt;

Perfect, this worked a charm. The new slight issue now is that when the window is at 3m, the size the 2D symbol was saved originally, it looks fine. When I try and change that to 2m, the 2d symbol does not constrain to the nodes at each end of the wall opening. See image. &lt;BR /&gt;
&lt;BR /&gt;
The new code looks like this.&lt;BR /&gt;

&lt;PRE&gt;C = -0.09045
D = 19.90796

IF LOD = "Coarse" THEN
!
!   Name     : New Object 1.gsm
!   Date     : Wednesday, 11 September 2019
!   Version  : 22.00
!   Written by ARCHICAD 
!

add2     C,D
MUL2 A/3, 1
line_property       0
line2    1.540449512792, -20.08295636262, 1.535449512792, -20.08295636262
line2    1.495651223507, -20.08295636262, 0.1612478020773, -20.08295636262
line2    0.1214495127919, -20.08295636262, 0.1164495127919, -20.08295636262
line2    0.06444951279192, -20.08295636262, -1.359550487208, -20.08295636262
line2    -1.409550487208, -20.08295636262, -1.359550487208, -20.08295636262
line2    -1.359550487208, -20.08295636262, -1.359550487208, -20.05422889551
line2    -1.359550487208, -20.05422889551, -1.390350487208, -20.05422889551
line2    -1.390350487208, -20.05422889551, -1.390350487208, -20.01008382972
line2    -1.390350487208, -20.01008382972, -1.359550487208, -20.01008382972
line2    -1.359550487208, -20.01008382972, -1.359550487208, -19.98135636262
line2    -1.359550487208, -19.98135636262, -1.409550487208, -19.98135636262
line2    -1.409550487208, -19.98135636262, -1.409550487208, -20.08295636262
line2    1.501550899651, -20.01785659294, 1.530551204182, -20.01785659294
line2    1.530551204182, -20.01785659294, 1.530444444816, -20.05273660423
line2    1.530444444816, -20.05273660423, 1.540449512792, -20.05273660423
line2    1.540449512792, -20.05273660423, 1.540449512792, -20.08295636262
line2    1.540449512792, -20.08295636262, 1.590449512792, -20.08295636262
line2    1.590449512792, -20.08295636262, 1.590449512792, -19.98135636262
line2    1.590449512792, -19.98135636262, 1.540449512792, -19.98135636262
line2    1.540449512792, -19.98135636262, 1.540449512792, -20.00885659294
line2    1.540449512792, -20.00885659294, 1.499950899651, -20.00885659294
line2    1.499950899651, -20.00885659294, 1.499950899651, -20.02725659271
line2    1.499950899651, -20.02725659271, 1.489950898762, -20.02725659271
line2    1.489950898762, -20.02725659271, 1.489950898762, -20.0288565859
line2    1.489950898762, -20.0288565859, 1.504154523548, -20.0288565859
arc2     1.504150031969, -20.0280565965, 0.0008000020113974, 270.3216865704,           90
line2    1.504150031969, -20.02725659449, 1.501550899651, -20.02725659449
line2    1.501550899651, -20.02725659449, 1.501550899651, -20.01785659294
line2    0.06444951279192, -20.08295636262, 0.1164495127919, -20.08295636262
line2    0.1164495127919, -20.08295636262, 0.1164495127919, -20.05288660423
line2    0.1164495127919, -20.05288660423, 0.1264495127919, -20.05288660423
line2    0.1264495127919, -20.05288660423, 0.1264495127919, -20.01800659294
line2    0.1264495127919, -20.01800659294, 0.1553467308704, -20.01800659294
line2    0.1553467308704, -20.01800659294, 0.1553467308704, -20.02740659449
line2    0.1553467308704, -20.02740659449, 0.1527475985522, -20.02740659449
arc2     0.1527475985522, -20.0282065965, 0.0008000020113972,           90, 269.6783134337
line2    0.1527431069727, -20.0290065859, 0.1669467311665, -20.0290065859
line2    0.1669467311665, -20.0290065859, 0.1669467311665, -20.02740659271
line2    0.1669467311665, -20.02740659271, 0.1569467308704, -20.02740659271
line2    0.1569467308704, -20.02740659271, 0.1569467308704, -20.00900659294
line2    0.1569467308704, -20.00900659294, 0.1164495127919, -20.00900659294
line2    0.1164495127919, -20.00900659294, 0.1164495127919, -19.98135636262
line2    0.1164495127919, -19.98135636262, 0.06444951279192, -19.98135636262
line2    0.06444951279192, -19.98135636262, 0.06444951279192, -20.08295636262
line2    -1.369550487208, -20.04465636262, 0.06444951279192, -20.04465636262
line2    0.06444951279192, -20.03865636262, -1.369550487208, -20.03865636262
line2    -1.369550487208, -20.03865636262, -1.369550487208, -20.04465636262
line2    -1.369550487208, -20.02565636262, 0.06444951279192, -20.02565636262
line2    0.06444951279192, -20.01965636262, -1.369550487208, -20.01965636262
line2    -1.369550487208, -20.01965636262, -1.369550487208, -20.02565636262
line2    0.1541467240547, -20.03299548126, 0.154146710613, -20.04885548023
line2    0.154146710613, -20.04885548023, 0.1561467240548, -20.04885547875
line2    0.1561467240548, -20.04885547875, 0.1561467238532, -20.05784547853
line2    0.1561467238532, -20.05784547853, 0.1338295127919, -20.05784547853
line2    0.1338295127919, -20.05784547853, 0.1338295127919, -20.05584547867
arc2     0.133079512652, -20.05584547867, 0.0007500001399308,            0,          180
line2    0.132329511552, -20.05584547871, 0.132329512792, -20.07603548841
line2    0.132329512792, -20.07603548841, 0.1214495127919, -20.07603548841
line2    0.1214495127919, -20.07603548841, 0.1214495127919, -20.08299547712
line2    0.1214495127919, -20.08299547712, 0.1612478020773, -20.0829954799
line2    0.1612478020773, -20.0829954799, 0.1910916593197, -20.07499884245
line2    0.1910916593197, -20.07499884245, 0.1910916593197, -20.03334046532
line2    0.1910916593197, -20.03334046532, 0.1713268075086, -20.03299546854
line2    0.1713268075086, -20.03299546854, 0.1541467240547, -20.03299548126
line2    1.502752301529, -20.03299548126, 1.485572218075, -20.03299546854
line2    1.485572218075, -20.03299546854, 1.465807366264, -20.03334046532
line2    1.465807366264, -20.03334046532, 1.465807366264, -20.07499884245
line2    1.465807366264, -20.07499884245, 1.495651223507, -20.0829954799
line2    1.495651223507, -20.0829954799, 1.535449512792, -20.08299547712
line2    1.535449512792, -20.08299547712, 1.535449512792, -20.07603548841
line2    1.535449512792, -20.07603548841, 1.524569512792, -20.07603548841
line2    1.524569512792, -20.07603548841, 1.524569514032, -20.05584547871
arc2     1.523819512932, -20.05584547867, 0.0007500001399876,            0,          180
line2    1.523069512792, -20.05584547867, 1.523069512792, -20.05784547853
line2    1.523069512792, -20.05784547853, 1.500752301731, -20.05784547853
line2    1.500752301731, -20.05784547853, 1.500752301529, -20.04885547875
line2    1.500752301529, -20.04885547875, 1.502752314971, -20.04885548023
line2    1.502752314971, -20.04885548023, 1.502752301529, -20.03299548126
line2    0.1910916593197, -20.06875636262, 1.465807366264, -20.06875636262
line2    1.465807366264, -20.06275636262, 0.1910916593197, -20.06275636262
line2    0.1910916593197, -20.04975636262, 1.465807366264, -20.04975636262
line2    1.465807366264, -20.04375636262, 0.1910916593197, -20.04375636262
hotspot2 -1.409550487208, -20.08295636262
hotspot2 1.590449512792, -20.08295636262

DEL TOP

ENDIF&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Sep 2019 08:35:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254783#M2176</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-24T08:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Symbol Insertion Point using GDL scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254784#M2177</link>
      <description>That would be due to the ADD2 C, D. Why are you creating new variables anyway? The purpose of these is to shift the reference point from the center of the object to the corner. So it should be ADD2 A/2, Z/2. Z being the thickness of your window. You really should read the documentation instead of blindly adding things.</description>
      <pubDate>Tue, 24 Sep 2019 08:44:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254784#M2177</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2019-09-24T08:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Symbol Insertion Point using GDL scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254785#M2178</link>
      <description>Simple solution - we need to scale the offset as well.&lt;BR /&gt;
So swap the ADD2 and MUL2 lines around so the MUL2 happens before the ADD2.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 24 Sep 2019 08:46:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254785#M2178</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2019-09-24T08:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Symbol Insertion Point using GDL scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254786#M2179</link>
      <description>Perfect. It is now working perfectly and see below for the final script. I just wanted to ask for a final favour. Is there no way to add any script to the existing 2D code to force Archicad to scale the width of the 2D symbol from the panel of the window and not the frames? Obviously, as you guys have stated earlier, the current code scales everything including the width of the frames. I know that it is too late to fix this the right way given that the project hand over is scheduled in 5 days times but if there is any way that anyone can think of that does not require days of changing code, I would really appreciate it. &lt;BR /&gt;
&lt;BR /&gt;
I think this exercise has shown me how much I need to learn GDL to make better use of Archicad and that I will be doing in the near future.</description>
      <pubDate>Tue, 24 Sep 2019 08:57:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254786#M2179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-24T08:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Symbol Insertion Point using GDL scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254787#M2180</link>
      <description>&lt;BLOCKQUOTE&gt;Studioverde wrote:&lt;BR /&gt;
Is there no way to add any script to the existing 2D code to force Archicad to scale the width of the 2D symbol from the panel of the window and not the frames? 
&lt;/BLOCKQUOTE&gt;

No, not easily.&lt;BR /&gt;
You would have to isolate the code that draws each of the frames.&lt;BR /&gt;
ADD2 the left frame negative half of the opening width.&lt;BR /&gt;
ADD2 the right frame positive half of the opening width.&lt;BR /&gt;
The centre one can stay at 0,0.&lt;BR /&gt;
&lt;BR /&gt;
The horizontal panel lines in between you probably won't want to MULL any more - you would alter them to half the window width less the frame width.&lt;BR /&gt;
&lt;BR /&gt;
But you will also have to take into consideration your C &amp;amp; D offsets.&lt;BR /&gt;
Then I believe you have 3 other LOD scripts that you would need to do the same for.&lt;BR /&gt;
&lt;BR /&gt;
When ever you create a window from lines on a plan (or you can even model it from slabs, walls, etc.), it is better to centre it on the project origin to avoid the offsets.&lt;BR /&gt;
In the HelpCentre you will find how to model the windows from slabs and save as a window.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://helpcenter.graphisoft.com/knowledgebase/25564/" target="_blank"&gt;https://helpcenter.graphisoft.com/knowledgebase/25564/&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Again these will not be parametric (adjustable) but all the ADDs and MULs will be taken care of for you.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 24 Sep 2019 09:22:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254787#M2180</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2019-09-24T09:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Symbol Insertion Point using GDL scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254788#M2181</link>
      <description>I can now understand what you mean. Thank you all who contributed to my thread and helped me out with this. I hope to learn more GDL and to help somebody else on this forum someday. I really appreciate the help.</description>
      <pubDate>Tue, 24 Sep 2019 11:24:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/2D-Symbol-Insertion-Point-using-GDL-scripting/m-p/254788#M2181</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-24T11:24:29Z</dc:date>
    </item>
  </channel>
</rss>

