Problem with rotation of drawing

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
lolena1888
Posts: 19
Joined: 03 Dec 2008, 20:04

Problem with rotation of drawing

Post by lolena1888 » 09 Jan 2009, 23:27

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

support
Posts: 3253
Joined: 30 Mar 2005, 11:36
Contact:

Re: Problem with rotation of drawing

Post by support » 12 Jan 2009, 15:25

Hello Elena,

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

Sergey.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

lolena1888
Posts: 19
Joined: 03 Dec 2008, 20:04

Re: Problem with rotation of drawing

Post by lolena1888 » 14 Jan 2009, 20:59

Do you have an estimate on when this problem will be resolved?

Is there a work around for this issue?

Thank you.

support
Posts: 3253
Joined: 30 Mar 2005, 11:36
Contact:

Re: Problem with rotation of drawing

Post by support » 16 Jan 2009, 12:36

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.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

jb2020
Posts: 1
Joined: 23 Jan 2009, 15:16

Re: Problem with rotation of drawing

Post by jb2020 » 23 Jan 2009, 16:06

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

support
Posts: 3253
Joined: 30 Mar 2005, 11:36
Contact:

Re: Problem with rotation of drawing

Post by support » 26 Jan 2009, 10:18

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.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply