.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Excel to AutoCAD

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
conveyor1
1155 Views, 4 Replies

Excel to AutoCAD

Has anyone done any code for sending data in Excel to AutoCAD?  I found example of AutoCAD to Excel but I am looking for a VB.net solution to go from Excel to AutoCAD.

 

Any example would be helpful on how it should be initially set-up.

 

Please let me know your thoughts.

Tags (2)
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: conveyor1


@conveyor1 wrote:

Has anyone done any code for sending data in Excel to AutoCAD?  I found example of AutoCAD to Excel but I am looking for a VB.net solution to go from Excel to AutoCAD.

 

Any example would be helpful on how it should be initially set-up.

 

Please let me know your thoughts.


I have a fair few examples of this, but are you talking about showing all the gridlines etc, or just inserting blocks with information? I think you need to be a bit more specific. What are you trying to achieve?

 

For option 1, rather than write it yourself, there is an excellent program called XL2CAD, from Dotsoft. It does tend to draw too many lines for the grids, but for you to get up and running, it is very good.

 

Message 3 of 5
conveyor1
in reply to: Anonymous

Two different steps.

First would be to pull some block information (name, attributes, position)
from the open active autocad drawing into Excel.

Second would be to push back any attribute updates from modification others
did in excel back into the same drawing.
Message 4 of 5
dgorsman
in reply to: conveyor1

My preference is to treat AutoCAD as the "driving" application and the Excel file as a data source.  AutoCAD is customized to both create the Excel file based on the DWG contents, and to read the Excel file and modify the DWG contents appropriately.  Otherwise you end up having to "drive" AutoCAD from an external application which gets more complicated than it needs to be.

----------------------------------
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.


Message 5 of 5
conveyor1
in reply to: dgorsman

Afternoon,

 

This is what I eventually did.

 

Thank You

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report