Jump to content
Developer Wiki and Function Reference Links ×

CreateExtrudeAlongPath


Recommended Posts

Hi,

I can't seem to make the CreateExtrudeAlongPath to work. I have a simple arc and a rectangular on the screen. The was testing out the scrip below but I don't see any new extruded along path object after running the script. Please help!

PROCEDURE SuperExtrPath;

VAR

p,n,h:HANDLE;

a,b:INTEGER;

BEGIN

p:=FObject;

n:=NextObj(p);

h:=CreateExtrudeAlongPath(p,n);

END;

RUN(SuperExtrPath);

Thank you

Link to comment

From the VSFR for CreateExtrudeAlongPath:

???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.

Try the following:

PROCEDURE SuperExtrPath;
VAR
p ,n, h :HANDLE;
a, b :INTEGER;
BEGIN
p := FObject;				{ arc }
n := NextObj(p);			{ rect }
p := ConvertToNURBS(p, true);		{ arc -> NURBS, keep original }
h := CreateExtrudeAlongPath(p, n);
delobject(p);				{ delete NURBS path }
END;
RUN(SuperExtrPath);

Note:

The position of the final extrude relative to the path will be determined by the how far the center of the profile object is from the origin.

Also, handle "h" only points to one surface of the final EAP. In your example, there are 6 NURBS surfaces in the result. You can count the number of objects before and after the operation and collect the top N objects (the difference in the counts) into a GROUP, a solid, or some other container if you want to process the EAP further.

HTH,

Raymond

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...