VS:FMarker: Difference between revisions
mNo edit summary |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<desc> | <desc> | ||
<b>OBSOLETE for VW 2008: Use [[VS:GetDefaultBeginningMarker| GetDefaultBeginningMarker]] and/or [[VS:GetDefaultEndMarker| GetDefaultEndMarker]] instead.</b> | |||
Procedure FMarker returns the active marker style parameters. | Procedure FMarker returns the active marker style parameters. | ||
Line 44: | Line 45: | ||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<remark> | <remark> | ||
OBSOLETE for | OBSOLETE for VW 2008: Use [[VS:GetDefaultBeginningMarker| GetDefaultBeginningMarker]] and/or [[VS:GetDefaultEndMarker| GetDefaultEndMarker]] instead. | ||
Style is an 8 bit quantity interpreted as follows: | Style is an 8 bit quantity interpreted as follows: | ||
Bit 0 indicates the visibility of a marker at the start of the line. | * Bit 0 indicates the visibility of a marker at the start of the line. | ||
Bit 1 indicates the visibility of a marker at the end of the line. | * Bit 1 indicates the visibility of a marker at the end of the line. | ||
Bits 2 - 7 indicate the index of the marker style to be used. | * Bits 2 - 7 indicate the index of the marker style to be used. | ||
Size is in page-inches. Legal values are 0.0 to 2.0. | Size is in page-inches. Legal values are 0.0 to 2.0. | ||
Line 58: | Line 59: | ||
Actually, the Style is returning: | Actually, the Style is returning: | ||
*0 for solid arrow, | * 0 for solid arrow, | ||
*4 for empty arrow* | * 4 for empty arrow* | ||
*8 for open arrow | * 8 for open arrow | ||
*12 for dot, etc. | * 12 for dot, etc. | ||
</remark> | </remark> | ||
Line 90: | Line 91: | ||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<version> | <version> | ||
FMarker is obsolete as of | FMarker is obsolete as of VectorWorks 13.0 | ||
Availability: from MiniCAD 6.0 | |||
</version> | |||
</ | ----------------------------------------------------------------------------------------------------------- | ||
<seeAlso> | |||
VS Functions: | |||
* [[VS:GetDefaultBeginningMarker| GetDefaultBeginningMarker]] | |||
* [[VS:GetDefaultEndMarker| GetDefaultEndMarker]] | |||
</seeAlso> | |||
</vwDoc> | </vwDoc> |
Latest revision as of 20:41, 11 November 2015
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
OBSOLETE for VW 2008: Use GetDefaultBeginningMarker and/or GetDefaultEndMarker instead.
Procedure FMarker returns the active marker style parameters.
A complete listing of marker styles can be found in the Appendix.
PROCEDURE FMarker(
VAR style :INTEGER;
VAR size :REAL;
VAR ang :INTEGER);
def vs.FMarker(): return (style, size, ang)
Parameters
style INTEGER Returns marker style. size REAL Returns marker size in inches measured in page space. ang INTEGER Returns marker angle (in degrees).
Remarks
OBSOLETE for VW 2008: Use GetDefaultBeginningMarker and/or GetDefaultEndMarker instead.
Style is an 8 bit quantity interpreted as follows:
- Bit 0 indicates the visibility of a marker at the start of the line.
- Bit 1 indicates the visibility of a marker at the end of the line.
- Bits 2 - 7 indicate the index of the marker style to be used.
Size is in page-inches. Legal values are 0.0 to 2.0.
Angle is in degrees.
The parameter Style is currently returning 0-6, 0 for solid arrow, 1 for empty arrow, etc. and not the 8 bit quantity as described above.
Actually, the Style is returning:
- 0 for solid arrow,
- 4 for empty arrow*
- 8 for open arrow
- 12 for dot, etc.
Example
VectorScript
PROCEDURE Example; VAR style :INTEGER; size :REAL; ang :INTEGER; BEGIN FMarker(style, size, ang); Message(style, ' ', size, ' ', ang); END; RUN(Example);
Python
def Example(): style, size, ang = vs.FMarker() vs.Message(style, ' ', size, ' ', ang) Example()
Version
FMarker is obsolete as of VectorWorks 13.0
Availability: from MiniCAD 6.0
See Also
VS Functions:
- [[VS:GetDefaultBeginningMarker| GetDefaultBeginningMarker]]
- [[VS:GetDefaultEndMarker| GetDefaultEndMarker]]