VS:GetClFPat: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 42: | Line 42: | ||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<sample> | <sample> | ||
==== VectorScript ==== | |||
<code lang="pas"> | <code lang="pas"> | ||
PROCEDURE Example; | PROCEDURE Example; | ||
BEGIN | BEGIN | ||
Message(GetClFPat(' | Message(GetClFPat('Dimension')); | ||
END; | END; | ||
RUN(Example); | RUN(Example); | ||
</code> | </code> | ||
==== Python ==== | |||
<code lang="py"> | <code lang="py"> | ||
def Example(): | def Example(): | ||
Line 56: | Line 56: | ||
Example(); | Example(); | ||
</code> | </code> | ||
</sample> | |||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<version> | <version> |
Latest revision as of 19:53, 19 June 2014
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
Returns the fill or hatch pattern of the specified class.
A positive return value in a range of 0 to 71 is the index of the bitmap fill pattern of the class. A negative value is the negative of the fill pattern index (index * -1).
Fill patterns and their associated constants can be found in the Function Reference Appendix.
FUNCTION GetClFPat(
className :STRING) : LONGINT;
def vs.GetClFPat(className): return LONGINT
Parameters
className STRING Name of class.
Remarks
Returns the fill pattern of the class named className.
Example
VectorScript
PROCEDURE Example; BEGIN Message(GetClFPat('Dimension')); END; RUN(Example);
Python
def Example(): vs.Message(vs.GetClFPat('Dimension')); Example();
Version
Availability: from VectorWorks8.0