Difference between revisions of "VS:ActSymDef"

From Vectorworks Developer
Jump to: navigation, search
m (1 revision)
 
m (Corrected error in Python example)
 
(One intermediate revision by one user not shown)
Line 34: Line 34:
 
<code lang="py">
 
<code lang="py">
 
def Example():
 
def Example():
HandleToActiveSym = vs.ActSymDef
+
HandleToActiveSym = vs.ActSymDef()
 
Example()
 
Example()
 
</code>
 
</code>

Latest revision as of 19:55, 6 May 2018

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


Description

Function ActSymDef returns a handle to the currently active symbol.
FUNCTION ActSymDef : HANDLE;
def vs.ActSymDef():
    return HANDLE

Example

VectorScript

PROCEDURE Example;
VAR HandleToActiveSym : HANDLE;
BEGIN
HandleToActiveSym:=ActSymDef;
END;
RUN(Example);

Python

def Example():
	HandleToActiveSym = vs.ActSymDef()
Example()

Version

Availability: from All Versions

See Also

VS Functions:

VS:ActLayer | VS:ActiveClass

VS Functions:

[[VS:ActLayer]]

| [[VS:ActiveClass]]
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox