- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am brand new to AutoCAD programming and am struggling to even get out of the gate.
I am creating a custom program written in C# that our project engineers can use to graphically build an electrical panel and basic attached utilities (lights, receptacles, etc.). I have the program generating an excel breakdown of the components for purchasing, and a pdf schematic for the PMs to send to the customer. What I would like to do next is auto-generate a dwg file of the schematic for our electrical drafters to open and modify/add to as the specifics of the job require.
Ideally, this would happen with a silent instance of AutoCAD instead of a visible instance of the app. I do not want this to be a plug-in for AutoCAD. From my understanding, I am looking for an out-of-process stand alone .exe that will create a new .dwg, insert pre-existing blocks, and newly created objects into the new file, then save the file.
I have dug through dozens of articles on this site, watched dozens of videos, etc. And I am confused as to how I am even supposed to start on this.
I am using Visual Studio and have already used NuGet to install AutoCAD.Net (and AutoCAD.NET.Core and AutoCAD.NET.Model) which automatically placed references for AcCoreMgd, AcDbMgd, and AcMgd into the project. However, these are stored in the project, and neither referencing the same from the AutoCAD installation location nor the ObjectARX installation.
At this point, I haven't been able to even get a reference to a running instance of AutoCAD nor create a new instance. The tutorials all seem to be very basic and assume that a plug-in is being created, or a new command is being created to be ran inside of AutoCAD; or they are very complex and don't bother with basic things like properly setting up references for non-plugins or dlls.
I think that I have a decent enough grasp on the object model to build the drawing once I can figure out how to get the app/db/whatever running and linked to?
Thanks for any help with this.
Michael
Solved! Go to Solution.