Difference between revisions of "VS:IFC DefPsetBegin"

From Vectorworks Developer
Jump to: navigation, search
Line 40: Line 40:
 
==== VectorScript ====
 
==== VectorScript ====
 
<code lang="pas">
 
<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>
 
</code>
 
==== Python ====
 
==== Python ====

Revision as of 03:39, 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


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