From Vectorworks Developer
Revision as of 14:02, 17 December 2018 by Sasha
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
DescriptionThis function creates and attaches to hObject an IFC Record with the given IFC entity.
inStrIfcName :STRING) : BOOLEAN;
def vs.IFC_SetIFCEntity(hObject, inStrIfcName): return BOOLEAN
hObject HANDLE Handle to object inStrIfcName STRING Name of the IFC entity
Return ValueTRUE on success, FALSE indicates failure – incorrect handle or IFC entity name.
Note that, if an IFC record, attached to that handle already exists, it will be deleted, prior to attaching the new one.
ExampleAssume we have an object, which we want to be exported as furniture:
ok = vs.IFC_SetIFCEntity(hObject, ‘IfcFurnishingElement’)