Jump to content

.NET insert object with Autocad in background


tryingmybest

Recommended Posts

I am new to Autocad customization, so would appreciate any help!

 

We want to be able to insert an object with data attributes into an Autocad drawing based on whether a field in a database requests it or not. Ideally, the command would not be initiated by Autocad, but another program running outside of Autocad (VB or C#) and an SQL database, but Autocad can be running in the background somewhere. The drawing would be stored in a directory and the program would open the drawing, insert the object, revise the data, then close the drawing.

 

Is this possible, and is it straightforward? Is using the .NET framework the best approach?

 

Would appreciate some beginning weblinks or tutorials to help me start researching this.

 

Thank you in advance!

Link to comment
Share on other sites

Welcome to CADTutor.

 

Yes, you'll find several threads here that address this topic... Getting-or-creating an instance of AutoCAD, interfacing with it via COM (via .NET).

 

Another option in 2013+, is that you can utilize Core Console for automated tasks as well, in series (single-threaded) or parallel (multi-threaded), depending on the requirements. Simple attributed block insertion *should* not be an issue, AFAIK.

 

Cheers

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...