DXF Import .NET - extract every element

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
Evgeny
Posts: 115
Joined: 16 Mar 2004, 11:04
Location: Russia

DXF Import .NET - extract every element

Post by Evgeny » 23 Sep 2005, 08:40

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Replaced from http://www.cadsofttools.com/forum/topic ... hpage=2</i>
[/quote]

I'm evaluating "DXF Import .NET" and I'd like to know if it's posible to import an autocad drawing but not as a complete Graphic, i need to extract every element of the cad drawing so that i can traduct it to my drawing application and edit the drawing in it.


Can you guys show me some example of how can i do to import entity by entity?

THX

Pablo

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

Post by support » 23 Sep 2005, 09:11

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by pablomac</i>


I'm evaluating "DXF Import .NET" and I'd like to know if it's posible to import an autocad drawing but not as a complete Graphic, i need to extract every element of the cad drawing so that i can traduct it to my drawing application and edit the drawing in it.


Can you guys show me some example of how can i do to import entity by entity?
THX
Pablo
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">

Hi,

Folder DXFImportNET\C#\SimpleImport includes a demo with example how to import entities data.

This package is available on: http://www.cadsofttools.com/download/DXFImportNET.zip

The same demo in VB will be available soon.

Sergey.

please post questions to the forum or write to support@cadsofttools.com

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

Post by support » 27 Sep 2005, 11:47

Hi,

Package DXFImportNET.zip includes now SimpleImport demo in VB (DXFImportNET\VB.Net\SimpleImport folder).

Sergey.

please post questions to the forum or write to support@cadsofttools.com

pablomac
Posts: 10
Joined: 22 Sep 2005, 16:34
Location: Argentina

Post by pablomac » 27 Sep 2005, 16:19

How can I do to draw an equivalent Arc in GDI+ respect the original from CAD? because the angles in both systems have different coordinates origin? Did anyone find some kind of equivalence?!

THX
Pablo[:p]

pablomac
Posts: 10
Joined: 22 Sep 2005, 16:34
Location: Argentina

Post by pablomac » 27 Sep 2005, 16:22

Am i wrong or it's seems to be some kind of problem with the starts and end angles in the DXFEllipse entity!?. I'm saying this because in CAD i have an Ellipse with a startangle of 45Ñ” and when i traslate it with de DXFImport .NET that angles apears as an angle of 71,36452Ñ”!!

THX
Pablo [:p]

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

Post by support » 28 Sep 2005, 16:14

Hi,

Could you please send to us on support@cadsofttolls.com part of your problematic code and file with which this thing occures.

Sergey.

please post questions to the forum or write to support@cadsofttools.com

pablomac
Posts: 10
Joined: 22 Sep 2005, 16:34
Location: Argentina

Post by pablomac » 29 Sep 2005, 16:15

In a poliline entity, how can i do to know the start and end with of the line?

THX
Pablo

pablomac
Posts: 10
Joined: 22 Sep 2005, 16:34
Location: Argentina

Post by pablomac » 29 Sep 2005, 16:16

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by pablomac</i>
<br />In a poliline entity, how can i do to know the start and end with of the line?

THX
Pablo
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">

I mean "width" no with. jajaja , sorry [:p]

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

Post by support » 03 Oct 2005, 11:54

Hi,

DXFPolyline in Autocad(TM) DXF consists of Vertexes. Every Vertex (i.e. DXFVertex in DXFPolyline.Entities) can include startWidth and endWidth (see DXFImport.NET Help).

Sergey.

please post questions to the forum or write to support@cadsofttools.com

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

Post by support » 03 Oct 2005, 12:13

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by pablomac</i>
<br />Am i wrong or it's seems to be some kind of problem with the starts and end angles in the DXFEllipse entity!?. I'm saying this because in CAD i have an Ellipse with a startangle of 45Ñ” and when i traslate it with de DXFImport .NET that angles apears as an angle of 71,36452Ñ”!!

THX
Pablo [:p]
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">

Hi,

About Ellipses:

Corners in Ellipse are being set concerning to big half-axle. Besides of this DXF may include Extrusion (direction of Z axis in Object Coordinate System) that cause distortion of initial view of ellipse.
If you could send to us the problem file it should help us to give you more exact and full explanations.

Sergey.

please post questions to the forum or write to support@cadsofttools.com

Post Reply