Difference between revisions of "VS:IFC DefPsetBegin"

From Vectorworks Developer
Jump to: navigation, search
Line 69: Line 69:
 
[[VS:IFC_DefPsetEnd|IFC_DefPsetEnd]]
 
[[VS:IFC_DefPsetEnd|IFC_DefPsetEnd]]
 
[[VS:IFC_DefPsetImport|IFC_DefPsetImport]]
 
[[VS:IFC_DefPsetImport|IFC_DefPsetImport]]
 
 
[[VS:IFC_DefPsetAddMember|IFC_DefPsetAddMember]]
 
[[VS:IFC_DefPsetAddMember|IFC_DefPsetAddMember]]
 
</seeAlso>
 
</seeAlso>

Revision as of 03:47, 13 November 2018

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix

Description

Marks the beginning of creation of a new Custom Object Property set (PSet).
FUNCTION IFC_DefPsetBegin(
psetName  :STRING) : BOOLEAN;
def vs.IFC_DefPsetBegin(psetName):
    return BOOLEAN

Parameters

psetName STRING The name of the Custom PSet.

Remarks

Return Values

TRUE on success, FALSE indicates failure.

Example

VectorScript

PROCEDURE Test;
VAR
	ok	: BOOLEAN;
	psetName: STRING;
	
BEGIN
	psetName:= 'My Custom Pset';

	ok	:= IFC_DefPsetBegin( psetName );
	ok	:= IFC_DefPsetAddMember( psetName, 'Field', 'IfcInteger' );
	ok	:= IFC_DefPsetEnd( psetName );
END;

RUN(Test);

Python

psetName	= "My Custom Pset"

ok	= vs.IFC_DefPsetBegin( psetName )
ok	= vs.IFC_DefPsetAddMember( psetName, "Field", "IfcInteger" )
ok	= vs.IFC_DefPsetEnd( psetName )

Version

Availability: from Vectorworks 2016

See Also

IFC_DefPsetEnd

IFC_DefPsetImport IFC_DefPsetAddMember

[[VS:IFC_DefPsetEnd|IFC_DefPsetEnd]]

[[VS:IFC_DefPsetImport|IFC_DefPsetImport]]

[[VS:IFC_DefPsetAddMember|IFC_DefPsetAddMember]]
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox