Page 1 of 1

Problem with rotation of drawing

Posted: 09 Jan 2009, 23:27
by lolena1888
Sergey,
I have a big problem with X-axis rotation. Can you clarify me this issue?

I created 3D shape with copying one polyline to another adding some height to Z-axis vertexes...
Both polylines were added to block, so as I understand they should behave the same while making X-axis rotation (the shape just revolves on its axis)...
If the heights from both sides are the same, X-axis rotation seems realistic; however, if one side of the shape is longer than another, copied polyline is distorted and looks ugly. Can you help me to understand what is wrong? Is this some kind of designed behaviour or is it a bug?

Rotation doesn't look good even if I remove Bulges.
Here are some data in case to check:

X Y Z Bulge
1 pline 34000 -31607 -9600 -0.41
50392 -36000 -12000 0
60784 -30000 -12000 0.41
28000 -21215 -9600 0

2 pline 34000 -31607 0 -0.41
50392 -36000 0 0
60784 -30000 0 0.41
28000 -21215 0 0

I do rotation as follows:

Code: Select all

cadImage.Rotate(CADImport.FaceModule.Axes.X, 20);
Thanks in advance.
Elena

Re: Problem with rotation of drawing

Posted: 12 Jan 2009, 15:25
by support
Hello Elena,

We caught this problem. We will inform you when it is solved.

Sergey.

Re: Problem with rotation of drawing

Posted: 14 Jan 2009, 20:59
by lolena1888
Do you have an estimate on when this problem will be resolved?

Is there a work around for this issue?

Thank you.

Re: Problem with rotation of drawing

Posted: 16 Jan 2009, 12:36
by support
Hello Elena,

Accordingly to AutoCAD DXF Reference "Bulge" is set for LWPolyline only. LWPolyline is 2D entity. Polyline (CADPolyLine in CAD Import .NET) is 3D entity. It mustn't take this parameter. Thus as a temporary solution we recommend to set Bulge = 0 for CADPolyLine or to creat CADLWPolyLine entities.

Sergey.

Re: Problem with rotation of drawing

Posted: 23 Jan 2009, 16:06
by jb2020
support wrote:Hello Elena,

Accordingly to AutoCAD DXF Reference "Bulge" is set for LWPolyline only. LWPolyline is 2D entity. Polyline (CADPolyLine in CAD Import .NET) is 3D entity. It mustn't take this parameter. Thus as a temporary solution we recommend to set Bulge = 0 for CADPolyLine or to creat CADLWPolyLine entities.

Sergey.
What if bulge can not be set to zero to draw the entity correctly? Is there any way to draw a 3D entity using the sample data giving by Elena without setting bulge to zero and have CADImport.NET draw it correctly? Is there a timetable for correcting this issue or some other workaround that can be suggested?

Thank you.

-JB

Re: Problem with rotation of drawing

Posted: 26 Jan 2009, 10:18
by support
Hello!
What if bulge can not be set to zero to draw the entity correctly? Is there any way to draw a 3D entity using the sample data giving by Elena without setting bulge to zero and have CADImport.NET draw it correctly?
There are two ways:
  • to create CADLWPolyLine with bulges but with Z=0 for vertexes;
  • to create CADPolyLine with different Z coordinates for vertexes and with bulges = 0.
Is there a timetable for correcting this issue or some other workaround that can be suggested?
This task requires detailed elaboration. It can not be solved "on the fly" as this might possibly harm other customers using CAD Import .NET. We can not say exactly how long it is going to take to study the problem.
Nevertheless we do thank you for your suggestion and your help. We'll inform you when the update is ready.

Sergey.