Difference between revisions of "VS:IFC DMIsObjEnabled"

From Vectorworks Developer
Jump to: navigation, search
m
Line 38: Line 38:
 
==== VectorScript ====
 
==== VectorScript ====
 
<code lang="pas">
 
<code lang="pas">
PROCEDURE isObjEnabled;
+
PROCEDURE IsObjEnabled;
 
VAR
 
VAR
 
bOk : BOOLEAN;
 
bOk : BOOLEAN;
Line 45: Line 45:
 
END;
 
END;
  
RUN(GetEntriesCnt);
+
RUN(IsObjEnabled);
 
</code>
 
</code>
  

Revision as of 10:08, 1 November 2018

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

Description

Returns a flag that shows whether the provided object is enabled in the current mapping settings.
FUNCTION IFC_DMIsObjEnabled(
inStrObjName  :STRING) : BOOLEAN;
def vs.IFC_DMIsObjEnabled(inStrObjName):
    return BOOLEAN

Parameters

inStrObjName STRING Object's name.

Example

VectorScript

PROCEDURE IsObjEnabled;
VAR
	bOk : BOOLEAN;
BEGIN
	bOk   = IFC_DMIsObjEnabled('Space'); {bOk determines if the Space Object is enabled in the current mapping}
END;

RUN(IsObjEnabled);

Python

bOk = vs.IFC_DMIsObjEnabled('Space'); #bOk determines if the Space Object is enabled in the current mapping

Version

Available from: Vectorworks 2017

See Also

VS Functions:

VS:IFC_DMEnableObject

VS Functions: [[VS:IFC_DMEnableObject]]
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox