VS:CreateExtrudeAlongPath: Difference between revisions
No edit summary |
m (1 revision) |
(No difference)
|
Revision as of 14:25, 12 August 2013
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
Creates a new path extrude object in the document. The profile defines the shape of the cross-section, and is extruded along the path to generate the resulting object.
The path argument must be a handle to a NURBS Curve object (type 111). The profile argument must be a handle to an object of one of the following types: NURBS Curve, Polygon, Polyline, Arc, Rectangle, Rounded Rectangle, Line, Oval.
FUNCTION CreateExtrudeAlongPath(
pathHandle :HANDLE;
profileHandle :HANDLE) : HANDLE;
def vs.CreateExtrudeAlongPath(pathHandle, profileHandle): return HANDLE
Parameters
pathHandle HANDLE Handle to the path object. profileHandle HANDLE Handle to the profile object.
Return Value
Returns a HANDLE to the new path extrude if successful, otherwise returns NIL.
Remarks
The following objects are supported as profile objects:
Line | 2 |
Box | 3 |
Oval | 4 |
Polygon | 5 |
Arc | 6 |
Freehand | 8 |
R Rect | 13 |
Polyline | 21 |
3D Poly | 25 |
NURBS Curve | 111 |
This works from inside a VSO, but I couldn't get it to work using an oval. I was able to get it to work with an arc.
This will fail if the NURBS curve has two consecutive segments which are colinear, or nearly colinear. In the example that I tested, the failure occured if the segments were colinear within .375 degree, but I don't know if the failure criterion is the angular difference or a combination of other factors (length, width of profile, shape of profile, etc.).
In VW2011 this will generate a number of NURBS surfaces instead of an extrude along path object.
Version
Availability: from VectorWorks9.0