VS:IFC ClearPset: Difference between revisions
Jump to navigation
Jump to search
NBeshevliev (talk | contribs) No edit summary |
NBeshevliev (talk | contribs) No edit summary |
||
Line 44: | Line 44: | ||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<sample> | <sample> | ||
Assume we want to clear a "PSet_WallCommon" from Object which has already attached Ifc Record with that Property Set: | |||
==== VectorScript ==== | ==== VectorScript ==== | ||
<code lang="pas"> | <code lang="pas"> |
Revision as of 13:01, 16 October 2018
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
Removes a Property Set from the object's attached Ifc Record.
FUNCTION IFC_ClearPset(
hObject :HANDLE;
inStrPsetName :STRING) : BOOLEAN;
def vs.IFC_ClearPset(hObject, inStrPsetName): return BOOLEAN
Parameters
hObject HANDLE Handle to the object. inStrPsetName STRING The name of the Property Set.
Remarks
Return Values
TRUE on success, FALSE indicates failure.
Example
Assume we want to clear a "PSet_WallCommon" from Object which has already attached Ifc Record with that Property Set:
VectorScript
PROCEDURE Test; VAR hObject : HANDLE; ok : BOOLEAN; BEGIN hObject := FSActLayer; ok := IFC_ClearPset(hObject, 'PSet_WallCommon'); END; RUN(Test);
Python
hObject = vs.FSActLayer() ok = vs.IFC_ClearPset(hObject, 'PSet_WallCommon')
Version
Available from: Vectorworks 2016