Difference between revisions of "VS:IFC DefPsetEnd"

From Vectorworks Developer
Jump to: navigation, search
 
(One intermediate revision by one user not shown)
Line 6: Line 6:
 
-----------------------------------------------------------------------------------------------------------
 
-----------------------------------------------------------------------------------------------------------
 
<desc>
 
<desc>
Marks the end of creation of a new Custom Object Preset.</desc>
+
Marks the end of creation of a new Custom Object Property set (PSet).</desc>
  
 
-----------------------------------------------------------------------------------------------------------
 
-----------------------------------------------------------------------------------------------------------
Line 25: Line 25:
 
psetName
 
psetName
 
STRING
 
STRING
 
+
The name of the Custom PSet.
 
</line>
 
</line>
 
</lineList>
 
</lineList>
 
</params>
 
</params>
 +
 +
-----------------------------------------------------------------------------------------------------------
 +
<return>TRUE on success, FALSE indicates failure.</return>
  
 
-----------------------------------------------------------------------------------------------------------
 
-----------------------------------------------------------------------------------------------------------
Line 34: Line 37:
  
 
-----------------------------------------------------------------------------------------------------------
 
-----------------------------------------------------------------------------------------------------------
<sample></sample>
+
<sample>
 +
==== VectorScript ====
 +
<code lang="pas">
 +
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);
 +
</code>
 +
==== Python ====
 +
<code lang="py">
 +
psetName = "My Custom Pset"
 +
 
 +
ok = vs.IFC_DefPsetBegin( psetName )
 +
ok = vs.IFC_DefPsetAddMember( psetName, "Field", "IfcInteger" )
 +
ok = vs.IFC_DefPsetEnd( psetName )
 +
 
 +
</code>
 +
</sample>
  
 
-----------------------------------------------------------------------------------------------------------
 
-----------------------------------------------------------------------------------------------------------

Latest revision as of 04:56, 17 December 2018

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

Description

Marks the end of creation of a new Custom Object Property set (PSet).
FUNCTION IFC_DefPsetEnd(
psetName  :STRING) : BOOLEAN;
def vs.IFC_DefPsetEnd(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_DefPsetBegin

IFC_DefPsetImport

IFC_DefPsetAddMember

[[VS:IFC_DefPsetBegin|IFC_DefPsetBegin]]

[[VS:IFC_DefPsetImport|IFC_DefPsetImport]]

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

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox