VS:IFC DeleteIFCInfo: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 6: | Line 6: | ||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<desc> | <desc> | ||
Deletes all IFC data, attached to the object.</desc> | |||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<def> | <def> | ||
<funcDef lang="vs"> | <funcDef lang="vs"> | ||
PROCEDURE IFC_DeleteIFCInfo(hObject:HANDLE, true); | |||
</funcDef> | </funcDef> | ||
<funcDef lang="py"> | <funcDef lang="py"> | ||
def vs.IFC_DeleteIFCInfo(hObject, | def vs.IFC_DeleteIFCInfo(hObject:HANDLE, true); | ||
return | return None | ||
</funcDef> | </funcDef> | ||
</def> | </def> | ||
Line 25: | Line 25: | ||
hObject | hObject | ||
HANDLE | HANDLE | ||
Handle to the object. | |||
</line> | </line> | ||
<line> | <line> | ||
bDoUndo | bDoUndo | ||
BOOLEAN | BOOLEAN | ||
Use undo or not. | |||
</line> | </line> | ||
</lineList> | </lineList> | ||
</params> | </params> | ||
----------------------------------------------------------------------------------------------------------- | |||
<return></return> | |||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
Line 39: | Line 42: | ||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<sample></sample> | <sample> | ||
==== VectorScript ==== | |||
<code lang="pas"> | |||
PROCEDURE DeleteIFCInfo; | |||
VAR | |||
bUndo : BOOLEAN | |||
bOK : BOOLEAN | |||
hObject : HANDLE | |||
BEGIN | |||
{We suggest that we have a handle to an object that has IFC data attached and we want to remove it and have the option to UNDO the change} | |||
bUndo := TRUE; | |||
bOK := IFC_DeleteIFCInfo( hObject, bUndo ); | |||
END; | |||
RUN(DeleteIFCInfo); | |||
</code> | |||
==== Python ==== | |||
<code lang="py"> | |||
# We suggest that we have a handle to an object that has IFC data attached and we want to remove it and have the option to UNDO the change | |||
ok = vs.IFC_DeleteIFCInfo( hObject, true ); | |||
</code> | |||
</sample> | |||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
Revision as of 15:33, 18 January 2019
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
Deletes all IFC data, attached to the object.
PROCEDURE IFC_DeleteIFCInfo(
hObject :HANDLE, true);
def vs.IFC_DeleteIFCInfo(hObject:HANDLE, true); return None
Parameters
hObject HANDLE Handle to the object. bDoUndo BOOLEAN Use undo or not.
Example
VectorScript
PROCEDURE DeleteIFCInfo; VAR bUndo : BOOLEAN bOK : BOOLEAN hObject : HANDLE BEGIN {We suggest that we have a handle to an object that has IFC data attached and we want to remove it and have the option to UNDO the change} bUndo := TRUE; bOK := IFC_DeleteIFCInfo( hObject, bUndo ); END; RUN(DeleteIFCInfo);
Python
# We suggest that we have a handle to an object that has IFC data attached and we want to remove it and have the option to UNDO the change ok = vs.IFC_DeleteIFCInfo( hObject, true );
Version
Availability: from Vectorworks 2017