2022-06-16 06:05 PM
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:
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!
2022-06-16 07:48 PM
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.
2022-06-17 11:32 AM
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'?
2022-06-17 06:28 PM
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.
2022-06-21 12:13 PM - edited 2022-06-21 04:52 PM
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!
2022-06-21 05:43 PM
No problem, if you need more examples just look at the master script of my wall coverings