<?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: GDL Parametric Scripting Problem in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parametric-Scripting-Problem/m-p/292228#M5710</link>
    <description>&lt;BLOCKQUOTE&gt;I just tried to test this and it seems that I can adjust any parametric parameters that I set up in the GDL script in addition to the A, B, and zzyzx dimensions.&lt;/BLOCKQUOTE&gt;
...within the door leaf itself, but typically not from the door where that custom leaf has been placed.&lt;BR /&gt;
Unless the door object is scripted to pass those parameters down to the CALLed custom leaf, like in the case of default libraries and predefined door leaves. That's why it's best to rely on A, B and ZZYZX and make the custom door leaf act in a smart way based on these three, as much as you can.</description>
    <pubDate>Thu, 22 Jun 2017 19:05:09 GMT</pubDate>
    <dc:creator>matjashka</dc:creator>
    <dc:date>2017-06-22T19:05:09Z</dc:date>
    <item>
      <title>GDL Parametric Scripting Problem</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parametric-Scripting-Problem/m-p/292222#M5704</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;So, I made a parametric door using GDL script for a project.  I placed a door into the project and I imported my GDL door into the Embedded Library.  After that, I chose to use a Custom Door Leaf and picked my parametric GDL door.  The problem is that my custom door leaf comes in as the size I parametrically modeled it and doesn't adjust like I thought it would if I changed the door size.  Why doesn't this work this way and is there any way I can get my custom GDL door leaf to do what I have described?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2023 08:00:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parametric-Scripting-Problem/m-p/292222#M5704</guid>
      <dc:creator>toman311</dc:creator>
      <dc:date>2023-05-24T08:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Parametric Scripting Problem</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parametric-Scripting-Problem/m-p/292223#M5705</link>
      <description>Use the default width, length and height parameters as follows and you are set:&lt;BR /&gt;
&lt;BR /&gt;
A = leaf width&lt;BR /&gt;
B = leaf height&lt;BR /&gt;
zzyzx = leaf thickness&lt;BR /&gt;
&lt;BR /&gt;
So if you are looking at the panel in 3D window of the object:&lt;BR /&gt;
x-axis is the width&lt;BR /&gt;
y-axis is the height&lt;BR /&gt;
z-axis is the thickness&lt;BR /&gt;
&lt;BR /&gt;
Depending on how you scripted your door, you may need to rotate it in the 3D script.</description>
      <pubDate>Wed, 21 Jun 2017 06:29:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parametric-Scripting-Problem/m-p/292223#M5705</guid>
      <dc:creator>Erwin Edel</dc:creator>
      <dc:date>2017-06-21T06:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Parametric Scripting Problem</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parametric-Scripting-Problem/m-p/292224#M5706</link>
      <description>Everything that Erwin said above, plus:&lt;BR /&gt;
&lt;BR /&gt;
After you script your own parametric door leaf, once you call it in the Door you basically have no access to modify any of the parameters, and the Door on the plan will mostly pass A, B and ZZYZX down to the leaf. Some Doors scripts may be written to pass more parameters down to the custom door leaf, like finish and material, I haven't had much success with that in older versions and haven't tried any new tricks since.&lt;BR /&gt;
&lt;BR /&gt;
Your door leaf must rely mostly on those three to auto-adjust other proportions -- in other words, all the panels or glass/muntin spacing in the leaf depend mainly on A and B, and then some ZZYZX.</description>
      <pubDate>Wed, 21 Jun 2017 15:19:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parametric-Scripting-Problem/m-p/292224#M5706</guid>
      <dc:creator>matjashka</dc:creator>
      <dc:date>2017-06-21T15:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Parametric Scripting Problem</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parametric-Scripting-Problem/m-p/292225#M5707</link>
      <description>Sometimes it is easier to just create a door from slabs in plan and then save as a door component object.&lt;BR /&gt;
Then it will scale automatically with you door frame object.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 22 Jun 2017 07:25:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parametric-Scripting-Problem/m-p/292225#M5707</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-06-22T07:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Parametric Scripting Problem</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parametric-Scripting-Problem/m-p/292226#M5708</link>
      <description>Thanks, this is very useful.&lt;BR /&gt;
We use an exact same custom door many times, so I thought I would GDL script it and put it in our library.  I guess I could also put it in a project file to copy and paste out of too.  We actually have two custom doors we use many times.  I just want it to scale proportionally with the changes in sizes.  Plus, the parametric abilities of the GDL will help when adjusting the horizontal parts of the door.</description>
      <pubDate>Thu, 22 Jun 2017 18:47:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parametric-Scripting-Problem/m-p/292226#M5708</guid>
      <dc:creator>toman311</dc:creator>
      <dc:date>2017-06-22T18:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Parametric Scripting Problem</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parametric-Scripting-Problem/m-p/292227#M5709</link>
      <description>&lt;BLOCKQUOTE&gt;matjashka wrote:&lt;BR /&gt;Everything that Erwin said above, plus:&lt;BR /&gt;
&lt;BR /&gt;
After you script your own parametric door leaf, once you call it in the Door you basically have no access to modify any of the parameters, and the Door on the plan will mostly pass A, B and ZZYZX down to the leaf. Some Doors scripts may be written to pass more parameters down to the custom door leaf, like finish and material, I haven't had much success with that in older versions and haven't tried any new tricks since.&lt;BR /&gt;
&lt;BR /&gt;
Your door leaf must rely mostly on those three to auto-adjust other proportions -- in other words, all the panels or glass/muntin spacing in the leaf depend mainly on A and B, and then some ZZYZX.&lt;/BLOCKQUOTE&gt;
I just tried to test this and it seems that I can adjust any parametric parameters that I set up in the GDL script in addition to the A, B, and zzyzx dimensions.</description>
      <pubDate>Thu, 22 Jun 2017 18:56:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parametric-Scripting-Problem/m-p/292227#M5709</guid>
      <dc:creator>toman311</dc:creator>
      <dc:date>2017-06-22T18:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Parametric Scripting Problem</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parametric-Scripting-Problem/m-p/292228#M5710</link>
      <description>&lt;BLOCKQUOTE&gt;I just tried to test this and it seems that I can adjust any parametric parameters that I set up in the GDL script in addition to the A, B, and zzyzx dimensions.&lt;/BLOCKQUOTE&gt;
...within the door leaf itself, but typically not from the door where that custom leaf has been placed.&lt;BR /&gt;
Unless the door object is scripted to pass those parameters down to the CALLed custom leaf, like in the case of default libraries and predefined door leaves. That's why it's best to rely on A, B and ZZYZX and make the custom door leaf act in a smart way based on these three, as much as you can.</description>
      <pubDate>Thu, 22 Jun 2017 19:05:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parametric-Scripting-Problem/m-p/292228#M5710</guid>
      <dc:creator>matjashka</dc:creator>
      <dc:date>2017-06-22T19:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Parametric Scripting Problem</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parametric-Scripting-Problem/m-p/292229#M5711</link>
      <description>Ah, I see.  I guess the reason I am able to adjust is because I saved the GDL object as a door.  I original tried to do the Custom Door Leaf, than I experimented with just a door.  It seems if I want it to be a door with casing, I got some learning to do...</description>
      <pubDate>Thu, 22 Jun 2017 19:15:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parametric-Scripting-Problem/m-p/292229#M5711</guid>
      <dc:creator>toman311</dc:creator>
      <dc:date>2017-06-22T19:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Parametric Scripting Problem</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parametric-Scripting-Problem/m-p/292230#M5712</link>
      <description>If you are not afraid to edit a bit of GDL, it is very easy to just list the parameters at the top of your script.&lt;BR /&gt;
&lt;BR /&gt;
I typically use some actual variable parameters for the surfaces. As these don't get passed on to the custom leaf (sadly!!).&lt;BR /&gt;
&lt;BR /&gt;
Any parameters to do with proportions of trims, panels etc I just put in the 3d script at the top so I can adjust them as needed from the script.&lt;BR /&gt;
&lt;BR /&gt;
Below is a custom panel that works fine. You just need to set the object's subtype to custom door leaf for it to get recognized by doors from the library.&lt;BR /&gt;
&lt;BR /&gt;
For this one I use two parameters for surfaces 'mat1' (glass) and 'mat2' (the leaf colour inside and outside).&lt;BR /&gt;
&lt;BR /&gt;
Some of the listed parameters are old and no longer needed, as these panels have been kicking about in our library for many years over many versions of ArchiCAD and from when the Dutch version was using their own library parts. I just can't be bothered trimming it down.&lt;BR /&gt;

&lt;PRE&gt;addx a/2
c=zzyzx
ddd=c


a=a
b=b
!v=d
!mat1=e
!handtype=f
!g=g
!mat2=g


tsz=0
roehor=2
roever=3
links=0.150
rechts=0.150
bov=0.150
ond=0.285
tus=0.180
mid=1.100
paneelrandbuiten=0.010
paneelrand=0.060
paneelrandraam=0.040
raamb=0.056
raambov=0.499
raamond=1.652
glaslat=0.030

material mat2

!! hoofdvorm
prism_   10, ddd,
	-a/2, 0, 15,
	 a/2, 0, 15,
	 a/2, b, 15,
	-a/2, b, 15,
	-a/2, 0, -1,

!! gat in hoofdvorm
	-a/2+links, ond, 15,
	 a/2-rechts, ond, 15,
	 a/2-rechts, b-bov, 15,
	-a/2+links, b-bov, 15,
	-a/2+links, ond, -1

!! binnenste paneel
prism_  10, ddd,
	-a/2+links+paneelrand,ond+paneelrand, 15,
	 a/2-(rechts+paneelrand),ond+paneelrand, 15,
	 a/2-(rechts+paneelrand), b-bov-paneelrand, 15,
	-a/2+links+paneelrand, b-bov-paneelrand, 15,
	-a/2+links+paneelrand,ond+paneelrand, -1,

!! gat in paneel
	-raamb/2-glaslat-paneelrandbuiten-paneelrandraam, raamond-glaslat-paneelrandbuiten-paneelrandraam, 15,
	 raamb/2+glaslat+paneelrandbuiten+paneelrandraam, raamond-glaslat-paneelrandbuiten-paneelrandraam, 15,
	 raamb/2+glaslat+paneelrandbuiten+paneelrandraam, b-raambov+glaslat+paneelrandbuiten+paneelrandraam, 15,
	-raamb/2-glaslat-paneelrandbuiten-paneelrandraam, b-raambov+glaslat+paneelrandbuiten+paneelrandraam, 15,
	-raamb/2-glaslat-paneelrandbuiten-paneelrandraam, raamond-glaslat-paneelrandbuiten-paneelrandraam, -1

!! rand raam
prism_  10, ddd,
	-raamb/2-glaslat-paneelrandbuiten, raamond-glaslat-paneelrandbuiten, 15,
	 raamb/2+glaslat+paneelrandbuiten, raamond-glaslat-paneelrandbuiten, 15,
	 raamb/2+glaslat+paneelrandbuiten, b-raambov+glaslat+paneelrandbuiten, 15,
	-raamb/2-glaslat-paneelrandbuiten, b-raambov+glaslat+paneelrandbuiten, 15,
	-raamb/2-glaslat-paneelrandbuiten, raamond-glaslat-paneelrandbuiten, -1,

!! gat in paneel
	-raamb/2-paneelrandbuiten, raamond-paneelrandbuiten, 15,
	 raamb/2+paneelrandbuiten, raamond-paneelrandbuiten, 15,
	 raamb/2+paneelrandbuiten, b-raambov+paneelrandbuiten, 15,
	-raamb/2-paneelrandbuiten, b-raambov+paneelrandbuiten, 15,
	-raamb/2-paneelrandbuiten, raamond-paneelrandbuiten, -1


addz 0.0125

!! verdiepte rand paneel
prism_ 10, ddd-0.025,
	-a/2+links+paneelrandbuiten, ond+paneelrandbuiten, 15,
	 a/2-rechts-paneelrandbuiten, ond+paneelrandbuiten, 15,
	 a/2-rechts-paneelrandbuiten, b-bov-paneelrandbuiten, 15,
	-a/2+links+paneelrandbuiten, b-bov-paneelrandbuiten, 15,
	-a/2+links+paneelrandbuiten, ond+paneelrandbuiten, -1,


	-a/2+links+paneelrand,ond+paneelrand, 15,
	 a/2-(rechts+paneelrand),ond+paneelrand, 15,
	 a/2-(rechts+paneelrand), b-bov-paneelrand, 15,
	-a/2+links+paneelrand, b-bov-paneelrand, 15,
	-a/2+links+paneelrand,ond+paneelrand, -1

!! raam
material mat1
prism_ 5, ddd-0.025,
	-raamb/2, raamond, 15,
	 raamb/2, raamond, 15,
	 raamb/2, b-raambov, 15,
	-raamb/2, b-raambov, 15,
	-raamb/2, raamond, -1

material mat2
del 1

addz -0.005

!! buitenste rand paneel
prism_ 10, ddd+0.01,
	-a/2+links, ond, 15,
	 a/2-rechts, ond, 15,
	 a/2-rechts, b-bov, 15,
	-a/2+links, b-bov, 15,
	-a/2+links, ond, -1,


	-a/2+links+paneelrandbuiten,ond+paneelrandbuiten, 15,
	 a/2-(rechts+paneelrandbuiten),ond+paneelrandbuiten, 15,
	 a/2-(rechts+paneelrandbuiten), b-bov-paneelrandbuiten, 15,
	-a/2+links+paneelrandbuiten, b-bov-paneelrandbuiten, 15,
	-a/2+links+paneelrandbuiten,ond+paneelrandbuiten, -1

!! brede rand raam
prism_ 10, ddd+0.01,
	-raamb/2-glaslat-paneelrandbuiten-paneelrandraam, raamond-glaslat-paneelrandbuiten-paneelrandraam, 15,
	 raamb/2+glaslat+paneelrandbuiten+paneelrandraam, raamond-glaslat-paneelrandbuiten-paneelrandraam, 15,
	 raamb/2+glaslat+paneelrandbuiten+paneelrandraam, b-raambov+glaslat+paneelrandbuiten+paneelrandraam, 15,
	-raamb/2-glaslat-paneelrandbuiten-paneelrandraam, b-raambov+glaslat+paneelrandbuiten+paneelrandraam, 15,
	-raamb/2-glaslat-paneelrandbuiten-paneelrandraam, raamond-glaslat-paneelrandbuiten-paneelrandraam, -1,


	-raamb/2-glaslat-paneelrandbuiten, raamond-glaslat-paneelrandbuiten, 15,
	 raamb/2+glaslat+paneelrandbuiten, raamond-glaslat-paneelrandbuiten, 15,
	 raamb/2+glaslat+paneelrandbuiten, b-raambov+glaslat+paneelrandbuiten, 15,
	-raamb/2-glaslat-paneelrandbuiten, b-raambov+glaslat+paneelrandbuiten, 15,
	-raamb/2-glaslat-paneelrandbuiten, raamond-glaslat-paneelrandbuiten, -1


!! rand raam
prism_ 10, ddd+0.01,
	-raamb/2-paneelrandbuiten, raamond-paneelrandbuiten, 15,
	 raamb/2+paneelrandbuiten, raamond-paneelrandbuiten, 15,
	 raamb/2+paneelrandbuiten, b-raambov+paneelrandbuiten, 15,
	-raamb/2-paneelrandbuiten, b-raambov+paneelrandbuiten, 15,
	-raamb/2-paneelrandbuiten, raamond-paneelrandbuiten, -1,

	-raamb/2, raamond, 15,
	 raamb/2, raamond, 15,
	 raamb/2, b-raambov, 15,
	-raamb/2, b-raambov, 15,
	-raamb/2, raamond, -1

del 1


!! neus
addz ddd
addx a/2
addy 0.01
roty -90
rotz 90

addz 0.017

prism_   5, a-0.034,
	  0, 0, 15,
	  0.07, 0, 15,
	  0.07, -0.005, 15,
	  0.05, -0.02, 15,
	  0, -0.02, 15

del top
end&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Jun 2017 09:35:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parametric-Scripting-Problem/m-p/292230#M5712</guid>
      <dc:creator>Erwin Edel</dc:creator>
      <dc:date>2017-06-26T09:35:23Z</dc:date>
    </item>
  </channel>
</rss>

