Skip to content

Latest commit

 

History

History
52 lines (44 loc) · 1.19 KB

File metadata and controls

52 lines (44 loc) · 1.19 KB

IFC_SetEntityProp

Description

This function sets a value to the selected property of the IFC entity.

FUNCTION IFC_SetEntityProp(
				hObject        : HANDLE;
				inStrPropName  : STRING;
				inStrPropValue : STRING): BOOLEAN;
def vs.IFC_SetEntityProp(hObject, inStrPropName, inStrPropValue):
    return BOOLEAN

Parameters

Name Type Description
hObject HANDLE Handle to object
inStrPropName STRING Name of the property
inStrPropValue STRING Value of the property

Examples

Assume we have an extrude, that we want to be exported as a slab. IfcSlab has a property with enumeration value (“PredefinedType”), so it’s necessary to be set:

VectorScript

PROCEDURE Test;
VAR
	hExtrude : HANDLE;
	ok : BOOLEAN;
begin
	hExtrude := FSActLayer;
	ok := IFC_SetIFCEntity(hExtrude, 'IfcSlab');
	ok := IFC_SetEntityProp(hExtrude, 'PredefinedType', 'BASESLAB');
end;

Run(Test);

Python

hExtrude = vs.FSActLayer()
ok = vs.IFC_SetIFCEntity(hExtrude, 'IfcSlab')
ok = vs.IFC_SetEntityProp(hExtrude, 'PredefinedType', 'BASESLAB')

Version

Availability: from Vectorworks 2014

Category