VS:GetCVis

From Vectorworks Developer
Jump to: navigation, search

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

Description

Returns the visibility status of the specified class.
FUNCTION GetCVis(
className  :STRING) : INTEGER;
def vs.GetCVis(className):
    return INTEGER

Parameters

className STRING Name of class.

Return Value

Returns one of:
Visibility Index Value
Visible 0
Hidden -1
Grayed 2

Remarks

Also, though a warning is generated, passing a string to a non-existent class returns 0.

Example

VectorScript

PROCEDURE Example;
BEGIN
Message(GetCVis('Dimension'));
END;
RUN(Example);

Python

def Example():
	vs.Message(vs.GetCVis('Dimension'))
Example()

Version

Availability: from All Versions
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox