Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.

GDL
About building parametric objects with GDL.

GDL Object reads object's properties?

derekjackson
Expert

Hi, I'm trying to develop a GDL object to help us with our residential masterplanning projects. 

 

I need for the object's 'number of storeys' value to affect a number of things:

  • The object's 2D and 3D appearance
  • Accessible by schedules
  • Accessible by Graphic Overrides.

If I store it as a custom Classification Property, I don't think the GDL script can access it to generate the model. If I store it as a GDL parameter then it can't be seen by Graphic Overrides. Schedules can see both.

 

So; I don't want to have it stored in both locations as that gives a risk that the user will enter different values for each. Is there a way to get one to see the other? Can GDL access its own properties? Or can I somehow get a Graphic Override to recognise GDL parameters? Any advice welcome!

http://www.lsiarchitects.co.uk
http://derekjackson.artstation.com
AC19 / 21 / 23 / 27
Windows 7 Intel Xeon 18Gb
5 REPLIES 5

I use the element Id, I can modify an object and use properties to pull the same Information for labels and such.  I don't think that what you're after is possible to do with out some python scripting.

derekjackson
Expert

Thanks, that's useful - planning on getting my head around Python some point soon anyway. Please could you explain your first sentence a bit more? So if I put the data in the ID, what do you mean by 'modify the object'?

http://www.lsiarchitects.co.uk
http://derekjackson.artstation.com
AC19 / 21 / 23 / 27
Windows 7 Intel Xeon 18Gb

i basically have code in the master script that separates my predefined id system into parameters and then changes the objects parameters.

i use this to say change my siding type, which then using properties and my custom label, i can have my elevation labels change automatically with my wall covering.

or i can control my cabinets type, style, and color just by changing a couple letters or words in the id.

Amazing - so that sounds like the root of the solution I need. So may I ask - how do you access the ID info from within the Master Script? Is it using one of the REQUEST commands?

 

Edit: I think I've got there - referencing GLOB_ID pulls the main ID into the GDL so can do some calcs from there 🙂 Thanks for the help!

http://www.lsiarchitects.co.uk
http://derekjackson.artstation.com
AC19 / 21 / 23 / 27
Windows 7 Intel Xeon 18Gb

No problem, if you need more examples just look at the master script of my wall coverings