VCOM:VectorWorks:IFCLib:IIFCSupport::IFC GetIFCEntity2

From Vectorworks Developer
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

.SDK|SDK ..SDK:Types|SDK Types ..VCOM:VCOM (Vectorworks Component Object Model)|VCOM Basics ..VCOM:Class Reference|VCOM Class Reference


namespace VectorWorks::IFCLib

Member of IIFCSupport

Returns the IFC entity name attached/mapped to an object.

VCOMError IFC_GetIFCEntity2(
MCObjectHandle hObject,
short& iIfcRecordType,
TXString& strIfcNameByRecord,
TXString& strIfcNameByMap);


hObject MCObjectHandle Handle to object.
iIfcRecordType short Returns the type of record. Possible values: 0(no record attached), 1(tag data record attached), 2(IFC data record attached)
strIfcNameByRecord TXString Returns the IFC name according to the record attached. Empty if no record attached to the object.
strIfcNameByMap TXString Returns the IFC name according to the mapping. Empty if no mapping assigned to the object

Return Value

Uses standard VCOM Error Reporting.

Return value meaning:

kVCOMError_NoError The function succeeded. No Error!
kVCOMError_Failed Routine failed.


Use this function via global pointer gIFC.


Available from: Vectorworks 2018