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
0
votes
1 answer

C# change windows form to ontop after opening an AutoCAD drawing

I have written a C# plugin for AutoCAD where the user can enter some information and afterwards the appropriate drawing should be openend. The actual workflow should be: I start my plugin in AutoCAD The user can input some information in a windows…
Metalhead89
  • 1,740
  • 9
  • 30
  • 58
0
votes
1 answer

AutoCAD only works with one file when trying to plot multiple files using plugin written in C# .NET. How to solve it?

everybody! I wrote this code: // (C) Copyright 2013 by // using System; using Autodesk.AutoCAD.Runtime; using Autodesk.AutoCAD.ApplicationServices; using Autodesk.AutoCAD.DatabaseServices; using Autodesk.AutoCAD.Geometry; using…
Flávio Schuindt
  • 403
  • 1
  • 7
  • 15
0
votes
1 answer

Autocad format viewer on iOS

I would like to be able to render autocad DWF and/or DWG files in a UIView within iOS. Autodesk has a mac-based library, but it does not have iOS support. Any ideas? Thanks!
bbrame
  • 18,031
  • 10
  • 35
  • 52
0
votes
1 answer

running unit tests within a host application in .net

Im developing an addin for AutoCAD to process DWGs. Now, i would like to run unit tests for my code. The problem is that i cannot load the autocad api without having a running instance of autocad console. My DLL has a custom entry point method, so…
Henrik
  • 11
  • 3
0
votes
1 answer

How to extract components from DXF created in AutoCAD?

I'm trying to find some way how I could obtain some concrete components from .dxf file created by AutoCAD. Concretely, there will be a building drawn in AutoCAD with windows, doors and other similar components specified. I found some libraries like…
Reshi
  • 799
  • 4
  • 15
  • 32
0
votes
2 answers

Can AutoCAD entities be serialized?

Using ObjectARX (C++) for AutoCAD 2010, can AutoCAD entities be serialized? We need to save the serialized entity in a field in a database (Oracle, PostgreSQL, etc., not AcDbDatabase). It'OK if you show me how to save them in disk, something like…
Javi Mollá
  • 786
  • 7
  • 18
0
votes
1 answer

Why the entnext command returns nil?

I am pretty new to AutoLISP and also AutoCAD. I want to get the vertices of a polyline, so that I can change their widths. Here is a piece of code I have written. I want to know why it doesn't work. The "entnext" part seems to cause the…
Fatima
  • 869
  • 10
  • 35
0
votes
2 answers

How to hide Entity from AutoCad draw?

How to hide DBEntity from being drawn? If I mark some object as erased with ent.erase() call in transaction, it can be removed from drawing, when I, for example, save the file. So is any way to safely hide some object without changing it's ObjectId…
FLCL
  • 2,445
  • 2
  • 24
  • 45
0
votes
1 answer

autocad 3d object animation with iPhone

I need to know what autocad extentions are used in iPhone development, actually, I need to create an iPhone animation with autocad 3d objects. thanks
CHAKRI
  • 203
  • 1
  • 3
  • 9
0
votes
1 answer

How change text width in table cell using autocad .net api C#?

I create Table using Autocad .net api C#. var table = new Table(); In single text(class DBText), change text width of the property - WidthFactor. How change text width in table cell using autocad .net api C#? [Image - different text width in…
0
votes
1 answer

adding libs ONCE for lifetime in autocad 2012

I am using Autocad 2012. I need to upload libs everytime when I open the Autocad. Is there any way how to avoid this and load libs file by-default when Autocad 2012 is opened? Please let me know what needs to be done. Note : some libs are there…
user1203613
0
votes
1 answer

AutoCAD: Drag and Drop *.dwg files from my ListBox hosted in Palettset

I'm hosting my .Net ListView control using PalettSet in AutoCAD 2012. The Tag property of ListView items holds the path to *.dwg files. I want to drag from ListView, while picking the dwg file using Item.Tag property and drop it on AutoCAD drawing…
Farrukh Waheed
  • 2,163
  • 2
  • 29
  • 59
0
votes
1 answer

how to use same name dll in one application

To build an Autocad application I use C# 4.0. My application has two module one for 2005 and another for 2010 autocad. it uses special dll's of autocad ,but face some difficulty of finishing it up .All should be universal for 2005 and 2010 autocad…
shamim
  • 6,640
  • 20
  • 85
  • 151
0
votes
1 answer

DirectX viewer in AutoCAD makes AutoCAD stop functioning normally

I'm working on a 3D part previewer for an application that is embedded in AutoCAD. The 3D is implemented using DirectX via SlimDX (2.0 version). I'm using .NET Framework 3.5 The following code initializes the DirectX Device foreach (var item in…
jawsware
  • 924
  • 6
  • 13
0
votes
3 answers

AutoCAD infobox functionality

I would like to create infobox functionality in AutoCAD. Same as you hover some feature in Google Earth, it shows you infobox with picture. Something like this I was thinking about using palette, but I'm not sure how to adjust it to looks like…
Minja
  • 1,222
  • 1
  • 19
  • 28