How to create AUTOCAD drawing and draw objects programatically .net API

How to create AUTOCAD drawing and draw objects programatically .net API

Anonymous
Not applicable
1,743 Views
3 Replies
Message 1 of 4

How to create AUTOCAD drawing and draw objects programatically .net API

Anonymous
Not applicable

Dear Experts,

 

I need to convert XML based drawing (ISO 15926 standard) to AutoCAD drawing with Attribute sets and values using .Net framework and AutoCAD .net APIs.

 

XML has all Drawing object details including x,y coordinate point and attribute sets details of each drawing object.

 

Can someone shed some light on how to Create an AutoCAD drawing and draw all objects with attribute sets using AutoCAD APIs programatically.

 

Regards,

Sravan

0 Likes
1,744 Views
3 Replies
Replies (3)
Message 2 of 4

dgorsman
Consultant
Consultant

Should be possible.  You'll need to know:

  • how to create AutoCAD entities
  • the ISO 15926 schema or, at least, the variant being used
  • which elements in the schema will be represented by what AutoCAD entities

 

Then again, it might just be easier to get SmartPlant to export a DWG or DXF file.  I'd strongly recommend looking into the iRing for assistance if you decide to go the programmatic route.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


0 Likes
Message 3 of 4

Anonymous
Not applicable

Thank you for your reply.

 

SmartPlant P&ID is exporting PID to DWG without any attribute sets (SPID and other SPPID properties). This makes us impossible to read properties of selected object in AutoCAD as each drawing object has its own GUID.

 

So we are thinking to convert SPPID XML (ISO 15926) to AutoCAD Dwg with attribute sets.

 

Is there any Plugin available in AutoCAD to convert ISP 15926 XML drawing to AutoCAD DWG drawing?

 

 

0 Likes
Message 4 of 4

dgorsman
Consultant
Consultant

Not commonly available that I know of.  ISO 15296 is more of a data sharing format than a drawing conversion format.  There's a slight chance there's one available from one of the iRing members but odds are you're going to have to code it yourself.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


0 Likes