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

How do I use Excel to insert blocks into AutoCAD drawings?

I'm trying to use Excel to create AutoCAD drawings. I have a list of product numbers and I'd like to use VBA so that upon hitting a button it will find a block or a drawing file of every product on the list and paste them into an AutoCAD drawing (to…
SgtSeamonkey
  • 25
  • 2
  • 8
0
votes
0 answers

A Acdx.Dll In My Reference Is Getting Vanished From The References Folder in visual studio If I Debug The Solution

I am trying to develop an application for autocad. i am using the following namespaces : System; System.IO; System.Text; System.Collections; System.Windows.Forms; System.Collections.Generic; System.Runtime.InteropServices; Autodesk.AutoCAD; …
0
votes
2 answers

AUTOCAD: TEXT becomes very small and vertical when placed in title block in layout screen

I am using AUTOCAD 2014, and trying to set up a simple title block (name and date of drawing etc.). The problem is that when I input the text using MTEXT or DTEXT and press escape to end that command the text then becomes very small and barely…
0
votes
1 answer

How to view/render autocad files (.dwg/.eps/.dwf) in android

Does anyone successfully render/view the autocad files(dwg/dwf/eps) in android? or any particular libraries out there? I just want to display it in android and be able to read the embedded gps location in that drawing, like it will match the current…
Samoka
  • 1,283
  • 2
  • 12
  • 23
0
votes
1 answer

Autocad dll Strong signing error

I have built an app using Visual Studio 2012,.Net ver 4. It runs fine using debug until I try to build or publish it. I get error messages about AutoCAD dll files needing to be strong signed in order to be marked as a prerequisite if I have the…
jobinelv
  • 23
  • 1
  • 1
  • 8
0
votes
3 answers

Reading, Writing and controlling Autocad using external VBA

I'm using MS-Access 2010 and Autocad 2012 64bit and work in manufacturing. I want to be able to at the very least, populate fields in a title block, better still I would like to use data in my access database to write data into a sheet set (the…
Ian Jackson
  • 41
  • 3
  • 10
0
votes
1 answer

Zooming specific point of a DWG File

I am new to Autocad. I have a dwg drawing which include information related to a plan of an area. I am developing a small Windows Application where the user can input a desired city and the application will open the dwg file in a Autocad.exe zooming…
user2475467
  • 129
  • 1
  • 10
0
votes
1 answer

Batch load files in AutoCAD

I'm running into problems writing an application to batch load and export files in AutoCAD using a C#. I've received numerous errors listed below whenever I point to a folder full of .dxf files. I've been able to narrow the problem down to the point…
KDhyne
  • 126
  • 1
  • 1
  • 14
0
votes
0 answers

VB.NET Exception handling in class library project

I am doing class library project with vb.net to work with AutoCAD The problem is, Message box isn't working inside catch block but works fine anywhere in code. I tried the following lines and I got message box in try and default dialog box in…
0
votes
2 answers

Stuck in AutoLISP using polar

Well I'm sort of stuck and don't know what to do. I need to write program using AutoLisp, which would draw five-pointed star. I don't have any knowledge in AutoLisp programming, but managed to write this and it seems to me, correct, but AutoCAD…
0
votes
1 answer

Android: Autocad Coordinates are too large

I'm working on Autocad files reader for android , now I Only read DXF files using Kabeja library and it works great but when i draw simple shape in Autocad and try to draw it on Android it doesn't appear when i look to Autocad coordinates i find…
Ma7moud El-Naggar
  • 548
  • 1
  • 6
  • 18
0
votes
1 answer

Debugging in the subchild process doesn't work

I write the plugins for AutoCAD. But it is unpossible to write the unit tests for AutoCAD plugins as the MS Visual Studio tests. Because they must work in the acad.exe process. For solving its problem I use Gallio. It has own plugin for testing of…
Andrey Bushman
  • 11,712
  • 17
  • 87
  • 182
0
votes
2 answers

What is the most efficient method in converting AutoLISP legacy code to C#?

I am engaged in a project that works mainly in AutoCAD to design and manufacture prefabricated building components such as roofing trusses. One of our goals is to redesign a program that was written in LISP that functions in designing roofing…
Archer
  • 492
  • 1
  • 4
  • 12
0
votes
1 answer

AutoLISP drag n drop command

I am writing a lisp for autocad and I am in the final stage to create it. I want to write a command that is the same as dragging and dropping a text file into your drawing (this creates an mtext in your drawing with the content of the text file as…
Tony
  • 469
  • 1
  • 6
  • 18
0
votes
1 answer

Checkout a dwg file using Vault Api

I am using the following code to checkout a file but it works rarely. It works for a particular file while it doesnt work for some files. My code is oSettings.DefaultAcquisitionOption =…
Professor
  • 610
  • 4
  • 20