sdaiGetEntityExtent
Syntax
public const string enginedll = @"engine.dll"; [DllImport(enginedll, EntryPoint = "sdaiGetEntityExtent")] public static extern Int32 x86_sdaiGetEntityExtent(Int32 model, Int32 entity); [DllImport(enginedll, EntryPoint = "sdaiGetEntityExtent")] public static extern Int32 x64_sdaiGetEntityExtent(Int64 model, Int64 entity); public static Int32 sdaiGetEntityExtent(Int64 model, Int64 entity) { if (IntPtr.Size == 4) { var _result = x86_sdaiGetEntityExtent((Int32)model, (Int32)entity); return _result; } else { return x64_sdaiGetEntityExtent(model, entity); } }
Property model
Size: 32 bit / 4 byte (value)Property entity
Size: 32 bit / 4 byte (value)
Example (based on pure API calls)
Here you can find code snippits that show how the API call sdaiGetEntityExtent can be used.
using RDF; // include at least engine.cs within your solution Int64 localGetEntityExtentBN(Int64 model, byte[] entityName) { // // This function is an alternative to the API call sdaiGetEntityExtentBN() // based on sdaiGetEntityExtent(). // // Use of sdaiGetEntityExtent() can lead to performance improvement compared to sdaiGetEntityExtentBN(). // Int64 entity = ifcengine.sdaiGetEntity(model, entityName); return ifcengine.sdaiGetEntityExtent(model, entity); }