Difference between revisions of "VS:IFC CreateObjGUID"

From Vectorworks Developer
Jump to: navigation, search
m (1 revision)
Line 25: Line 25:
 
hObject
 
hObject
 
HANDLE
 
HANDLE
 
+
Handle to the object.
 
</line>
 
</line>
 
</lineList>
 
</lineList>
Line 34: Line 34:
  
 
-----------------------------------------------------------------------------------------------------------
 
-----------------------------------------------------------------------------------------------------------
<sample></sample>
+
<sample>
 +
==== VectorScript ====
 +
<code lang="pas">
 +
PROCEDURE Test;
 +
VAR
 +
hObject : HANDLE;
 +
ok : BOOLEAN;
 +
BEGIN
 +
hObject := FSActLayer;
 +
ok := IFC_CreateObjGUID(hObject);
 +
END;
 +
 
 +
RUN(Test);
 +
</code>
 +
==== Python ====
 +
<code lang="py">
 +
hObject = vs.FSActLayer()
 +
ok = vs.IFC_CreateObjGUID(hObject)
 +
</code>
 +
</sample>
  
 
-----------------------------------------------------------------------------------------------------------
 
-----------------------------------------------------------------------------------------------------------

Revision as of 07:53, 19 October 2018

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

Description

Create a Tag record for the specified object if it doesn't have any IFC info.
FUNCTION IFC_CreateObjGUID(
hObject  :HANDLE) : BOOLEAN;
def vs.IFC_CreateObjGUID(hObject):
    return BOOLEAN

Parameters

hObject HANDLE Handle to the object.

Example

VectorScript

PROCEDURE Test;
VAR
	hObject : HANDLE;
	ok : BOOLEAN;
BEGIN
	hObject := FSActLayer;
	ok := IFC_CreateObjGUID(hObject);
END;

RUN(Test);

Python

hObject = vs.FSActLayer()
ok = vs.IFC_CreateObjGUID(hObject)

Version

Availability: from Vectorworks 2018
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox