Questions tagged [autocad]

Drafting and design software.

AutoCAD is produced by Autodesk Inc. It is a base product for many of their software offerings that are designed for specific tasks such as architectural, mechanical and civil drafting. AutoCAD is customizable by means of several APIs.

  • Autolisp - A flavor of LISP.
  • VBA - Microsoft VBA became available as an API during the release of AutoCAD 14 prior to 2000. Autodesk has warned that VBA will not be supported in releases after 2012... but it is, even in native 64-bit for the 1st time in v2014.
  • Managed .NET - A managed .NET API is currently the customization platform of choice for many AutoCAD programmers. Of the .NET languages C# is currently the most popular but VB.NET has a stronger-than-usual following because of AutoCAD's VBA history.
  • the JavaScript API was introduced in v2014.
  • ObjectARX/ObjectDBX - A native C++ based API that became available during the release of AutoCAD 13. Less popular than the .NET API because it requires writing much more code and more complex code to accomplish most tasks. Some types of projects (complex custom objects) can only be done via this API.

Autodesk also licenses two stand-alone AutoCAD environments to develop on top of, RealDWG and AutoCAD OEM. OEM has a user interface and RealDWG does not. The licensing model for each is very different - OEM is licensed as a percentage of each sale, RealDWG has fixed license costs.

There is an independent reverse-engineered library that is compatible with AutoCAD made by the Open Design Alliance. Compatibility can lag a little when Autodesk does its 3-yearly binary shuffle and changes the file format. AutoCAD v 2013 changed the application's internal structure, as well as the file format.

The ODA is not open-source nor is it free (as in beer but it is free as in speech) and is not necessarily cheaper than Autodesk's licensing, depending on if / how many sales you make. ODA's Teigha is used as the basis for products like IntelliCAD etc. You can build stand-alone applications on it.

Resources

1395 questions
5
votes
4 answers

Interfacing AutoCAD with JAVA

Any idea on interfacing with AutoCAD through a JAVA program. I am looking for a solution that can directly interface with an AutoCAD session (even start one), the way it works with the .NET extensions of AutoCAD. Or any way to work with ObjectARX…
sangupta
  • 2,396
  • 3
  • 23
  • 37
5
votes
2 answers

Using VBA from Access 2007 to search in AutoCAD (dwg) files

I have hundreds of DWG, AutoCAD files that I would like search and catalog into an MS Access Database. Basically, I would like to search the DWG's and extract whatever description is in the Title box as well as the Date and bring everything over to…
AKKAweb
  • 3,795
  • 4
  • 33
  • 64
5
votes
1 answer

online editors for various file types, doc, dwg, image

I have a media archive with various file types on my server. If a user wants to update that file, he has to download the file to his local machine, edit it with his desktop software (Word, AutoCAD, etc), then reupload the file. It's kind of a pain…
Landon
  • 4,088
  • 3
  • 28
  • 42
5
votes
1 answer

Autocad .NET - expand command line

I'm developing an Autocad .NET plugin (.dll loaded via NETLOAD), and I'm using a lot the Document.Editor object to get user inputs, like strings, numbers, points and entities. I want some of my prompts to show several options for the user to select…
Daniel Möller
  • 84,878
  • 18
  • 192
  • 214
5
votes
2 answers

A better VBA editor for Autocad

I'm developing some VBA macros in Autocad. The built-in editor is obsolete, but I wasn't able to find any better way to edit the .dvb files. A .dvb file does contains many other source files packed in, and so far I think that Autocad is the only…
Artur Iwan
  • 1,151
  • 2
  • 10
  • 17
5
votes
2 answers

ObjectARX, RealDWG or Teigha?

I'm planning on developing a piece of software that reads & manipulates data in a .dwg file. Instead of writing my own library that handles the 'reading' of the data file, I've decided to use either RealDWG or Teigha, however I'm struggling to…
Joe Morgan
  • 430
  • 2
  • 8
  • 19
5
votes
4 answers

AutoCAD - Is it possible to analyze .dwg file?

I want to analyze dwg file. Is it possible? I'm trying to write a some program that could analyze the content of the .dwg file. for example the program could say if a door in a building model could be opened. I've found this article that explains…
No Idea For Name
  • 11,411
  • 10
  • 42
  • 70
5
votes
4 answers

DXF File - Won't Open in Autodesk Viewer

We're building a DXF exporter and from what I've read, this extremely simple file should be valid. We don't have any CAD tools to test with, so I'm very limited in my abilities to debug. This opens fine in the Proficad online viewer but I get an…
jenni-mm2
  • 185
  • 1
  • 2
  • 11
5
votes
1 answer

Setting up .xml to load .dvb plugin on AutoCAD startup

I am trying to set up a .bundle folder to load a series of plugins I've designed for AutoCAD. One of these plugins is a .dvb file so in the PackageContents.xml I have the following XML code
Nick Gilbert
  • 4,159
  • 8
  • 43
  • 90
5
votes
4 answers

Serialization Code Causes Unhandled Exception

I am attempting to create a some code that can serialize and deserialize a library of Classes into an AutoCAD drawing. This question has little to do with AutoCAD other than it being the reason why I cannot debug it by normal means. I started this…
5
votes
2 answers

What's the main difference between B-Rep and Mesh index represation

I know B-Rep (ParaSolid) is the popular solid representation. From my past experience, I always touch the triangle mesh representation like OBJ, STL file format. I am wondering why B-Rep is better than mesh representation? What's the main…
Adam Lee
  • 24,710
  • 51
  • 156
  • 236
5
votes
1 answer

Best way to create custom building's map for iOS

I see some ways to do it: 1) Draw using OpenGL programmatically. 2) Draw using QuartzCore and CoreAnimation programmatically. 3) Draw map in AutoCad and then somehow connect it to iOS. 4) Draw map using SVG. Requirments are supporting pathfinding…
Aft3rmath
  • 669
  • 2
  • 12
  • 21
5
votes
2 answers

Javascript/canvas renderer for CAD/AutoCAD files

Does anyone know if there's a parser for autocad/cad formatted files in javascript? Or perhaps something server side which can translate cad files to collada so that three.js (and some of the other engines) could read them? Thanks very much for any…
Alex
  • 3,732
  • 5
  • 37
  • 59
4
votes
4 answers

How to make autocad addon run on many autocad version

i make an autocad add on with dot net 3.50 and i reference to acdbmgd.dll,acmgd.dll from autocad 2012 what can I do to make it run on both autocad 2010 and autocad 2011 if i should reference to acdbmgd.dll,acmgd.dll from autocad 2010 where can i…
Khalid Omar
  • 2,353
  • 5
  • 35
  • 46
4
votes
1 answer

Generating AutoCAD files with java?

Does anyone have any tips how I can generate AutoCAD drawings with Java? Is dfx a good interface or should we go for dwg files? I can't find any useful information on this on the net. The Open Design Alliance have libraries for generating dwg, but…
Henrik
  • 3,757
  • 1
  • 19
  • 18
1 2
3
92 93