.NET

Reply
New Member
dcvman
Posts: 2
Registered: ‎07-21-2014
Message 1 of 8 (347 Views)
Accepted Solution

Programming language to change Autocad items

347 Views, 7 Replies
07-21-2014 09:01 AM

Hi,

 

I would like to know which programming language is the best to pilot Autocad DWG files.

 

For instance, to have a software programmed in C, C++, C# or Java and inject automatically the length to some items in the DWG drawing.

 

Do you know any subject or web page to help me to start?

 

Regards,

 

Thierry

 

 

It sounds like you want to access drawing data stored in *.dwg file, and it also sounds that you are not very familia with AutoCAD programming.

 

There are different ways to access drawing data in DWG files, depending on the situation of how and where the DWG file is accessed.

 

In most commom situation, you need to have AutoCAD installed. Once you have AutoCAD installed, you can access drawingdata inside AutoCAD's exe process (in-process application). This type of app can be written in various language AutoCAD supports: C++, .NET languages (VB.NET, C#, F#...), AutoLISP, AutoCAD VBA. You can also automate AutoCAD vir its COM API (.NET COM interop, or classical VB), or any COM-able language.

 

However, if you do not want to run AutoCAD in order to access drawing data, you need to get very expensive RealDwg SDK lisence, with which you can use C++ or .NET languages.

 

 

*Expert Elite*
norman.yuan
Posts: 1,045
Registered: ‎04-27-2009
Message 2 of 8 (322 Views)

Re: Programming language to change Autocad items

07-21-2014 02:30 PM in reply to: dcvman

It sounds like you want to access drawing data stored in *.dwg file, and it also sounds that you are not very familia with AutoCAD programming.

 

There are different ways to access drawing data in DWG files, depending on the situation of how and where the DWG file is accessed.

 

In most commom situation, you need to have AutoCAD installed. Once you have AutoCAD installed, you can access drawingdata inside AutoCAD's exe process (in-process application). This type of app can be written in various language AutoCAD supports: C++, .NET languages (VB.NET, C#, F#...), AutoLISP, AutoCAD VBA. You can also automate AutoCAD vir its COM API (.NET COM interop, or classical VB), or any COM-able language.

 

However, if you do not want to run AutoCAD in order to access drawing data, you need to get very expensive RealDwg SDK lisence, with which you can use C++ or .NET languages.

 

 

New Member
dcvman
Posts: 2
Registered: ‎07-21-2014
Message 3 of 8 (290 Views)

Re: Programming language to change Autocad items

07-22-2014 02:41 AM in reply to: norman.yuan

Hi norman,

 

Thanks a lot for your answer and you understood correctly.

 

My goal is to develop a calculation software of structure that I can sold or give to my customers so then they are able choose the right confiiguration of parts of the structure.

 

Since all my customers have Autocad but in different versions (2011, 2012, 2014 even previous ones), I need a program that works with any version modifying the autocad dimensions/drawings.

 

But maybe the best would be to use the oldest autocad version with the integrates programming code. BTW, my autocad version has VBA editor, how can I get the editor of other programming software?

 

Option 3: create Excel data sheets with some programming codes and then exports the data from Excel to Autocad.

 

In case I use the integrating VBA (or other) editor, is it possible to create a licence system, so then only the authorized customer would be able to use it in their computer...

 

I really appreciate your help.

 

Regards,

 

Thierry

 

Regards,

 

Thierry

 

Active Member
paavo
Posts: 9
Registered: ‎05-19-2014
Message 4 of 8 (207 Views)

Re: Programming language to change Autocad items

08-14-2014 06:11 AM in reply to: norman.yuan

Norman -

You're correct about the various options for Thierry. I'd just like to comment on the RealDWG toolkit being expensive. It used to be quite expensive some years ago. The toolkit is more affordable today, especially if you're writing a commercial application.

It's actually only $5000 for the 1st year and $2500 for the 2nd and further years. You'll always have the latest versions and upgrades of proprietary software for unlimited distribution, without any royalties - in my mind that's a complete steal! Well, at least in comparison with other CAD-readers out there, it's a bargain.

Depending on the purpose and intended use, some people may still consider it expensive though. I just wanted to add this information since you are highly reputable member of this forum, so other members might get the notion that RealDWG is not an option due to high costs.

Thanks,
Paavo

Mentor
khoa.ho
Posts: 224
Registered: ‎09-15-2011
Message 5 of 8 (193 Views)

Re: Programming language to change Autocad items

08-14-2014 07:05 AM in reply to: paavo

One vote for RealDWG. I am working with it everyday and it is a "real" DWG file processing from Autodesk. If you consider AutoCAD over alternatives, RealDWG is the same thing. RealDWG has everything you need from AutoCAD except the Windows interface.

 

RealDWG is heavy and has slower performance to work on the web server. The cost is a little high comparing to other notable CAD-reader libraries but you pay for what you get. This is a complete solution for commercial advanced CAD applications.

 

Depending on the scale of your application and budget, you can decide which CAD library to go.

 

Active Member
cadcoke5
Posts: 9
Registered: ‎10-03-2013
Message 6 of 8 (124 Views)

Re: Programming language to change Autocad items

09-12-2014 06:25 AM in reply to: khoa.ho

I am not certain of the original poster's end purpose, but perhaps we have the same end goals.  

 

I am searching for a solution that will allow a customer to go to our web site, and after choosing some options, obtain a custom part drawing and perhaps even place an order.  In essence this would be a front-end for driving an AutoCAD parametric model.  I recall seeing advertisements for software like this, perhps 20 years ago or more.  But, I have not been able for find one now.

 

I have seen a demonstration of a program by Tacton, that works with SolidWorks to do this, but 2D drawings are really sufficient for our product. So, I am hoping to find an AutoCAD solution.

 

Any suggestions?

 

Active Member
cadcoke5
Posts: 9
Registered: ‎10-03-2013
Message 7 of 8 (117 Views)

Re: Programming language to change Autocad items

09-12-2014 06:53 AM in reply to: cadcoke5

I think I findally came across the product like what I have been searching for.  It has been difficult since the search terms I use are common terms on the internet. As Autodesk's product lineup has increased, with some products having similar functions, it is difficult to sort them out.

 

It seems that Configurator 360 is what I was searching for. However, since it seems to be based on Autodesk hosting the design, it is not attractive to us. So, I am still searching for a solution   I hope my difficulties finding those applications have not been because that Autodesk put them out of business when it started competing with them.

 

Mentor
khoa.ho
Posts: 224
Registered: ‎09-15-2011
Message 8 of 8 (114 Views)

Re: Programming language to change Autocad items

09-12-2014 07:04 AM in reply to: cadcoke5

I am working on the new web front-end platform to drive AutoCAD, which may be the one you are looking for. This solution will be ready before Autodesk University 2014.

 

You can make your own solution by making a web application with RealDWG backend. The web front-end will do data input, the RealDWG back-end will process data output.

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!