Graphisoft®

API Development KitVersion: 18

Save data into the Library Parts


This paper give hints on how you can store additional information / own data section in a Library Part.

 

Possibilities

As written in the Library Part Database, a Library Part is built from independent sections. Every section has a unique four-byte identifier. There are predefined IDs which correspond to the sections owned by ArchiCAD. Other IDs are free for use to save your own data.

 

Example

Third party products which create Library Parts often use this possibility.

A good example is the StairMaker application, which creates Library Parts representing stairs. The user must define several parameters in StairMaker to get the stair which fits their needs. These parameters are saved into a custom section of the created Library Part. ArchiCAD uses the standard sections only, while operating on it. Later when the user wants to modify the definition of the stair for some reason, StairMaker can reproduce the previous parameters from its own data section.