zuken86 Posted June 24, 2013 Share Posted June 24, 2013 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 Quote Link to comment
MullinRJ Posted June 25, 2013 Share Posted June 25, 2013 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 Quote Link to comment
zuken86 Posted June 25, 2013 Author Share Posted June 25, 2013 Thanks Raymond. This is very helpful! Quote Link to comment
Musisback Posted June 26, 2013 Share Posted June 26, 2013 EAP:= createcustomObjectPath('Extrude Along path',pathHd,ProfileHD); works also. Its much easier to use I think... Just make sure both poathHD and rofileHD are NURBS 1 Quote Link to comment
Recommended Posts
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.