VS:SetDashStyle: Difference between revisions
Jump to navigation
Jump to search
(Edited example to show the correct number of pairs.) |
m (1 revision) |
(No difference)
|
Revision as of 14:37, 12 August 2013
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
Procedure SetDashStyle creates a new linestyle in a VectorWorks document. Parameter swt defines whether the linestyle will be scaled with thickness, and parameter numPairs specifies the number of length pairs defining the linestyle.
The linestyle is defined by up to five black/white length pairs, which are specified in parameters b1,w1 through b5,w5. The minimum length of any given black or white parameter is 1 point, or 1/72 of an inch, and the line specification must be in pairs.
PROCEDURE SetDashStyle(
swt :BOOLEAN;
numPairs :INTEGER;
pair1 :REAL;
pair2 :REAL;
pair3 :REAL;
pair4 :REAL;
pair5 :REAL);
def vs.SetDashStyle(swt, numPairs, pair1, pair2, pair3, pair4, pair5): return None
Parameters
swt BOOLEAN numPairs INTEGER pair1 REAL pair2 REAL pair3 REAL pair4 REAL pair5 REAL
Example
VectorScript
SetDashStyle(True,4,1",1/4",1/4",1/4");
Python
Version
Availability: from MiniCAD4.0