VS:SetPolyPt

From Vectorworks Developer
Revision as of 10:38, 12 August 2013 by Root (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

Description

Procedure SetPolyPt sets the location a specified vertex in the referenced polygon.
PROCEDURE SetPolyPt(
objectHd  :HANDLE;
index  :INTEGER;
xR  :REAL;
yR  :REAL);
def vs.SetPolyPt(objectHd, index, xR, yR):
    return None

Parameters

objectHd HANDLE Handle to polygon.
index INTEGER Index of vertex.
xR REAL New X coordinate of vertex.
yR REAL New Y coordinate of vertex.

Remarks

(Gerard Jonker, 2007 Jan. 8) Please have a look at my comments on the VectorLab regarding this function, concerning index and origin.

(Orso, 2010 Dec. 25) From Raymond Mullin: It only works for Polygons, and not for Polylines.. Using this function on polylines will rise an invalid handle warning. Please be careful on conversions from polygon to polyline through InsertVertex or other routines. See SetPolylineVertex. I thus remove the word polylines from the description above.

Version

Availability: from All Versions

See Also

For polygons:

For polylines:

For polygons:
  • [[VS:GetPolyPt| GetPolyPt]]

For polylines:

  • [[VS:GetPolylineVertex| GetPolylineVertex]]
  • [[VS:SetPolylineVertex| SetPolylineVertex]]
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox