I have question about Sweep result.. from these
- create circle in XY plane and use top point of circle as base point
- create simple 3D line as path
- use AcDb3dSolid::createSweptSolid()
The point is
A. if the 3D line is from (0,0,100) to (10,10,100) then TOP of pipe is at level 100
B. if the 3D line is (0,0,100) to (-10,-10,100) then BOTTOM of pipe is at level 100
if I would like to get B with TOP of pipe at level 100, how to do that? path have to create that way can't change.. I'm asking for Swept Options (or some technics)
Hello Owen, thank for your reply. BUT your advise can't be done in my case.. I alway have the section in 2D (XY Plane) but the path is in 3D Space (also far away).. Give some more advise please..
You need to either create the section in the correct position and orientation, or more likely, transform it after it is created.
I thought that 'transform the profile to perpendicular with the start of path' is all I need.. BUT no!!
I create the red circle and white 3d polyline in the code, then doing 3D rotate and translate the circle to the start of 3D polyline.. It seem to work for most of the case I tested.. but some are not..
(margenta lines are just draw manually to check if the input circle is twist or not, they are not)
IF I do the Sweep command in ACAD for this drawing, it give ok result.. But if I do by arx, it give the green pipe as in the picture.. which options I missing ?
Thanks again in advance..
It's mistake in the code... after change the concept of process by adding transforming section to the path.. I forget to re-set on SweepOptions..
So, confirm that transform section to perpendicular with start of path is really help..
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.