Difference between revisions of "VS:IFC DefPsetBegin"

From Vectorworks Developer
Jump to: navigation, search
 
Line 31: Line 31:
  
 
-----------------------------------------------------------------------------------------------------------
 
-----------------------------------------------------------------------------------------------------------
<remark>
+
<return>TRUE on success, FALSE indicates failure.</return>
===== Return Values =====
+
 
TRUE on success, FALSE indicates failure.
+
-----------------------------------------------------------------------------------------------------------
</remark>
+
<remark></remark>
  
 
-----------------------------------------------------------------------------------------------------------
 
-----------------------------------------------------------------------------------------------------------

Latest revision as of 04:56, 17 December 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.

Return Value

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