Syntax
public const string ifcenginedll = @"ifcengine.dll"; [DllImport(ifcenginedll, EntryPoint = "engiGetEntityNoArguments")] public static extern Int32 engiGetEntityNoArguments(int_t entity);
Property entity
Size: 32 bit / 4 byte (value)
Example (based on pure API calls)
Here you can find code snippets that show how the API call engiGetEntityNoArguments can be used.
using RDF; // include at least IFCEngine.cs within your solution Int64 WriteEntityStructure(Int64 ifcEntity) { if (ifcEntity != 0) { // // Iterate over the parents // Int64 attributeCnt = WriteEntityStructure(RDF.IFCEngine.engiGetEntityParent(ifcEntity)); // // Print Entity name // IntPtr entityName = RDF.IFCEngine.engiGetEntityName(ifcEntity); Console.WriteLine("Entity " + entityName); // // Walk over attributes // while (attributeCnt < RDF.IFCEngine.engiGetEntityNoArguments(ifcEntity)) { string attributeName = RDF.IFCEngine.engiGetEntityArgumentName(ifcEntity, attributeCnt); Int64 attributeType = 0; RDF.IFCEngine.engiGetEntityArgumentType(ifcEntity, attributeCnt, out attributeType); Console.Write(" " + attributeName + " "); switch (attributeType) { case RDF.IFCEngine.sdaiSTRING: Console.WriteLine("STRING"); break; ... default: break; } attributeCnt++; } return attributeCnt; } return 0; }