VS:IFC SetIFCEntity: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 38: | Line 38: | ||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
< | <return>TRUE on success, FALSE indicates failure – incorrect handle or IFC entity name. | ||
TRUE 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. | Note that, if an IFC record, attached to that handle already exists, it will be deleted, prior to attaching the new one.</return> | ||
</remark> | |||
----------------------------------------------------------------------------------------------------------- | |||
<remark></remark> | |||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
Latest revision as of 19:02, 17 December 2018
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
This function creates and attaches to hObject an IFC Record with the given IFC entity.
FUNCTION IFC_SetIFCEntity(
hObject :HANDLE;
inStrIfcName :STRING) : BOOLEAN;
def vs.IFC_SetIFCEntity(hObject, inStrIfcName): return BOOLEAN
Parameters
hObject HANDLE Handle to object inStrIfcName STRING Name of the IFC entity
Return Value
TRUE 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.
Example
Assume we have an object, which we want to be exported as furniture:
VectorScript
IFC_SetIFCEntity(hObject, ‘IfcFurnishingElement’);
Python
ok = vs.IFC_SetIFCEntity(hObject, ‘IfcFurnishingElement’)
Version
Availability: from Vectorworks 2014