Skip to content

Latest commit

 

History

History
58 lines (46 loc) · 1.38 KB

File metadata and controls

58 lines (46 loc) · 1.38 KB

IFC_DefPsetAddMember

Description

Adds a new member to the currently defined Custom Object Preset.

FUNCTION IFC_DefPsetAddMember(
				psetName : STRING;
				propName : STRING;
				propType : STRING): BOOLEAN;
def vs.IFC_DefPsetAddMember(psetName, propName, propType):
    return BOOLEAN

Parameters

Name Type Description
psetName STRING The Custom Property Set Name.
propName STRING Member Name.
propType STRING Member type.

Remarks

The possible values for the member type are 'IfcReal', 'IfcInteger', 'IfcText', 'IfcBoolean'.

Examples

==== VectorScript ====

PROCEDURE PsetAddMember;
VAR
        bOK : BOOLEAN
BEGIN
        {We suggest that 'Chair Details' is a Custom Pset and we want to add 'Height' member with type 'IfcReal'}
	bOK := IFC_DefPsetAddMember( 'Chair Details', 'Height', 'IfcReal');
END;

RUN(PsetAddMember);

==== Python ====

# We suggest that 'Chair Details' is a Custom Pset and we want to add 'Height' member with type 'IfcReal'
ok = vs.IFC_DefPsetAddMember( 'Chair Details', 'Height', 'IfcReal');

See Also

IFC_DefPsetBegin|IFC_DefPsetBegin IFC_DefPsetEnd|IFC_DefPsetEnd

IFC_DefPsetImport|IFC_DefPsetImport

Version

Availability: from Vectorworks 2016.

Category

  • IFC