Difference between revisions of "VS:ClassNum"

From Vectorworks Developer
Jump to: navigation, search
m (1 revision)
m (in python procedures without arguments always need parentheses ())
 
(One intermediate revision by one user not shown)
Line 21: Line 21:
 
-----------------------------------------------------------------------------------------------------------
 
-----------------------------------------------------------------------------------------------------------
 
<sample>
 
<sample>
 +
==== VectorScript ====
 
<code lang="pas">
 
<code lang="pas">
 
numOfClasses:= ClassNum;
 
numOfClasses:= ClassNum;
 +
</code>
 +
==== Python ====
 +
<code lang="py">
 +
numOfClasses = vs.ClassNum()
 
</code>
 
</code>
 
</sample>
 
</sample>

Latest revision as of 08:34, 28 December 2018

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


Description

Returns the total number of classes in the active document.
FUNCTION ClassNum : LONGINT;
def vs.ClassNum():
    return LONGINT

Example

VectorScript

numOfClasses:= ClassNum;

Python

numOfClasses = vs.ClassNum()

Version

Availability: from All Versions
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox