Difference between revisions of "VS:GetMarker"

From Vectorworks Developer
Jump to: navigation, search
m (1 revision)
(wikify)
Line 60: Line 60:
 
-----------------------------------------------------------------------------------------------------------
 
-----------------------------------------------------------------------------------------------------------
 
<remark>
 
<remark>
OBSOLETE for VW2008: Use GetObjBeginningMarker and/or GetObjEndMarker instead.
+
OBSOLETE for VW2008: Use [[VS:GetObjBeginningMarker| GetObjBeginningMarker]] and/or [[VS:GetObjEndMarker| GetObjEndMarker]] instead.
For a one inch marker pass in a size value equal to 16384. If you pass NIL for the obj parameter, this call will set the marker defaults for this document.  angle must be in range 0 to 90 degrees.</remark>
+
For a one inch marker pass in a size value equal to 16384. If you pass NIL for the obj parameter, this call will set the marker defaults for this document.  angle must be in range 0 to 90 degrees.
 +
</remark>
  
 
-----------------------------------------------------------------------------------------------------------
 
-----------------------------------------------------------------------------------------------------------
 
<sample>
 
<sample>
 +
 
==== VectorScript ====
 
==== VectorScript ====
 
<code lang="pas">
 
<code lang="pas">
Line 80: Line 82:
 
RUN(CheckMarker);
 
RUN(CheckMarker);
 
</code>
 
</code>
 +
 
==== Python ====
 
==== Python ====
 
<code lang="py">
 
<code lang="py">
Line 94: Line 97:
 
<seeAlso>
 
<seeAlso>
 
VS Functions:
 
VS Functions:
[[VS:SetMarker]]  
+
* [[VS:SetMarker]]
 +
* [[VS:GetObjBeginningMarker| GetObjBeginningMarker]]
 +
* [[VS:GetObjEndMarker| GetObjEndMarker]]
 
</seeAlso>
 
</seeAlso>
  
 
-----------------------------------------------------------------------------------------------------------
 
-----------------------------------------------------------------------------------------------------------
 
<version>
 
<version>
GetMarker is obsolete as of VectorWorks13.0<P>
+
GetMarker is obsolete as of VectorWorks 13.0
 
+
  
Availability: from VectorWorks10.0
+
Availability: from VectorWorks 10.0
  
 
</version>
 
</version>

Revision as of 23:29, 16 June 2015

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


Description

Returns marker information on the referenced object.
PROCEDURE GetMarker(
h  :HANDLE;
VAR start  :BOOLEAN;
VAR END  :BOOLEAN;
VAR style  :INTEGER;
VAR size  :REAL);
def vs.GetMarker(h):
    return (start, end, style, size)

Parameters

h HANDLE Handle to the object.
start BOOLEAN True if a marker is visible at start of object.
end BOOLEAN True if a marker is visible at end of object.
style INTEGER Marker style:
size REAL Size of marker.

Remarks

OBSOLETE for VW2008: Use GetObjBeginningMarker and/or GetObjEndMarker instead.

For a one inch marker pass in a size value equal to 16384. If you pass NIL for the obj parameter, this call will set the marker defaults for this document. angle must be in range 0 to 90 degrees.

Example

VectorScript

PROCEDURE CheckMarker;
VAR
h: HANDLE;
MarkerStyle: INTEGER;
StartMark, EndMark: BOOLEAN;
Size: REAL;
BEGIN
h := FSActLayer;
GetMarker(H, StartMark, EndMark, MarkerStyle, Size);
Message('StartMark: ', StartMark, ' EndMark:', EndMark, ' MarkerStyle:', MarkerStyle, ' Size:', Size);
END;
RUN(CheckMarker);

Python

def CheckMarker():
	h = vs.FSActLayer()
	StartMark, EndMark, MarkerStyle, Size = vs.GetMarker(h)
	vs.Message('StartMark: ', StartMark, ' EndMark:', EndMark, ' MarkerStyle:', MarkerStyle, ' Size:', Size)

CheckMarker()

Version

GetMarker is obsolete as of VectorWorks 13.0

Availability: from VectorWorks 10.0

See Also

VS Functions:
VS Functions:
  • [[VS:SetMarker]]
  • [[VS:GetObjBeginningMarker| GetObjBeginningMarker]]
  • [[VS:GetObjEndMarker| GetObjEndMarker]]
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox