We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Bill of Materials

Anonymous
Not applicable
I am building a Bill of Material database. I have created a few "super" parts, is there a way for me to script in the part to select the correct properties based on a set of parameters? (i.e.- a window ID of 3046 will choose a 3046) What is the variable that relates to the "Link Properties" in the parts? Thanks.

Barry
6 REPLIES 6
Anonymous
Not applicable
Barry,
Have you looked at the "Special Functions" in the
GDL reference manual ?
One of the REQUEST functions may be what you are looking for.
Peter Devlin
Anonymous
Not applicable
Peter,

I don't think I'm explaining the question properly. I have a window part that I have added manufacturers part numbers to. This allows the drafter to choose the window part number they want and the script adjusts everything else for them. What I need the part to do now is take the manufacturers ID that was chosen by the drafter and associate it to a property that I have created in the database, thereby creating a bill of materials return. I have started trying it another way, by creating criteria for the property to be selected. What I need to figure out now is how to get the glod_id to be equal to my parameter man_id, or any way that I can get the listing id to duplicate the man_id without the drafter having to manually enter it. I am trying to keep this "simple/stupid" for the drafter. Thanks.

Barry
Anonymous
Not applicable
Have you considered using Favorites? You might be able to do this a lot more easily using Favorites.

woodster
Anonymous
Not applicable
Woodster,

I don't think favorites will help with Bill of Materials issue. The drafters have the ability to choose the part number from a pick box in the part. My problem is getting a single library part to list multiple types of properties in the calculation part of the program. Typically each library part has only one property assigned to it. I want the library part to select the needed property by the values assigned in the part. Thanks for your help.

Barry
Karl Ottenstein
Moderator
Barry wrote:
I am building a Bill of Material database. I have created a few "super" parts, is there a way for me to script in the part to select the correct properties based on a set of parameters? (i.e.- a window ID of 3046 will choose a 3046) What is the variable that relates to the "Link Properties" in the parts? Thanks.
Barry,

I believe you want to write a custom Property script inside the window object (or CALL such as script from the Property script inside the object).

This is different than linking a stand-alone Property Object to an element based on criteria. In doing that linkage, you cannot have dynamic adjustments as you are describing AFAIK ... (without using user global variables, perhaps...although I haven't experimented with the evaluation order to see if even that would work).

HTH,
Karl

PS We're starting to have various overlapping forums in which to address these kinds of questions. The Components, Descriptors and Property Script portions of a GDL object clearly fall into this forum, but they also fall into the new Calculate forum (and, to some extent, Data Exchange). Whew.
One of the forum moderators
AC 28 USA and earlier   •   macOS Sonoma 14.7.1, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Anonymous
Not applicable
Karl,

Thanks you for your input. It appears not many Archicad users actually use the Bill of Materials component of the program. I might have to rely more on the drafters than I previously hoped to. Thanks again.

Barry