We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2007-06-13 08:53 AM - last edited on 2023-08-07 10:34 AM by Doreena Deng
2007-06-13 03:32 PM
csh wrote:ACAPI_Element_Get only retrieves some of the element data because the overheads for loading all the information could be significant (if you don't need it). You need to look elsewhere to retrieve the rest. For example, to retrieve the name of an object you could use the object index (libInd) from the API_ObjectType data with ACAPI_LibPart_Get.
It's not clear from the ACAPI_Element_Get... API how, for example, I could retrieve the name ("Armchair 01 10") of the element.
2007-06-13 10:07 PM
2007-06-14 02:13 AM
2007-06-14 03:57 PM
csh wrote:That's a bit messier, but same idea. Essentially you are looking for the Fill type defined for the wall/column/etc. For a wall, you would use the 'fillInd' value from the API_WallType data. This is an index to the fill attribute. However, you need to first look a the index sign - negative means a composite and positive means a plain fill. Use ACAPI_Attribute_Get to retrieve the attribute data (including the name).
What about the structural information?
Wall/Beam/Column...
Structure: Concrete Structural
2007-06-14 06:56 PM
2007-06-22 10:14 AM
csh wrote:The fillInd determines the 2D representation on floor plan drawings, and also the structural information (composite fills). The tendency is to assign real 3D meaning to these 'skins', so that you could use them for calculations, for example.
Huh, Iwasgoing to go there, but resisted because I didn't think that Graphisoft would mix metaphors: in other words, I thought they'd keep fill (a graphical representation) and the actual material separate.