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

Unable to Determine what causes VBA to fail when attempting to load a Form

Here is a full video explanation of the problem. It begins by throwing up the Autocad Help for some reason. Then Shows a message that says "Could not load an object because it is not available on this machine" Then I get a message like this: The…
jth41
  • 3,808
  • 9
  • 59
  • 109
0
votes
2 answers

Re-order AutoCAD Attributes

I am trying to re-order the attributes in the AutoCAD blocks. Everytime i edit a existing block or try to create a new block the order in which the attributes are displayed is shuffled completely. I have tried AUTOCAD commands like 'BATTMAN'…
Uday
  • 3
  • 3
0
votes
1 answer

TrueColor property in VBA AutoCAD doesn't work

I would like to change TrueColor property of a line object in AutoCAD 2013 using VBA. I used the code which I found in Developer's guide, but it won't work. The code is: Dim VozniCrtaDesna As AcadLine Set VozniCrtaDesna =…
Liz
  • 363
  • 3
  • 12
0
votes
1 answer

Hide block selection dialog on bedit command

I need to open block editor for block by its name, so I execute command in this way: document.SendStringToExecute("_BEDIT "+blockName+"\n", true, false, false); After running this line of code "selection of block" dialog appears, but I need the…
FLCL
  • 2,445
  • 2
  • 24
  • 45
0
votes
1 answer

VBA Connection not available on Windows 8

I am portingcode to Autocad 2014 on a Windows 8 Machine from Autocad 2000i on a Windows XP machine. (A big jump, I know). When I attempt to run a vba command, It takes me to the VBA debugger and highlights this line and gives this error: What can I…
jth41
  • 3,808
  • 9
  • 59
  • 109
0
votes
1 answer

vb.net autocad 2007 selection set has no Items

In OS WIn 7 using Autocad 2007 I try to select items then do stuff Problem is that there are no ITEMS in the selection set ssetObj - not sure why! Code: works in vba but not standalone vb.net Private Sub CommandButton1_Click() Dim myapp As…
0
votes
0 answers

Autocad: how to export a file with XREF to .stl

I am trying to export the following .dwg file to .stl format but the object that has been externally referenced does not make into the .stl file. Could someone tell me what am I doing wrong? The files in .dwg
Marci-man
  • 2,113
  • 3
  • 28
  • 76
0
votes
1 answer

How to add reference Autocad typelibrary in runtime using vb6.0?

I am using vb6.0 application to interact with autocad. i am using autocad2007. While i run my application in autocad2007 no problem it's working fine. When i need to interact with autocad2010 my application doesn't work. So i changed reference…
Sivaperuman
  • 239
  • 1
  • 4
  • 21
0
votes
1 answer

Reading Attached Image directly form memory using Autocad .Net API

I have a large JPEG image (10000*11000px), attached to an Autocad drawing, that I want to crop multiple times. I cannot load it into memory using .Net, I get an out of memory exception. the only thing I think I can do is read it directly from…
dioslibre
  • 177
  • 1
  • 5
0
votes
2 answers

Importing Autodesk.AutoCAD in VB.NET

For my project, I need to generate CAD drawing (almost a blueprint of a tank) through my VB.NET application. The app takes in some user input & based on this, it generates the geometry of the tank. I am using Microsoft Visual Studio Professional…
shad0w_wa1k3r
  • 12,955
  • 8
  • 67
  • 90
0
votes
0 answers

Autocad 2014 - Positioning electrical objects for plans (icons and symbols, not actual objects)

I am using Autocad to design my home. I am at a phase where I want to set the location for the switches, lighting fixtures, power sockets, communication sockets etc. I am thinking of something like this…
Gabe
  • 630
  • 1
  • 9
  • 25
0
votes
1 answer

How to open autocad drawings in vb.net and run scripts?

I'm trying to open all .dwg files in a folder with AutoCad and run a previous written script. In order to do that, I built the following code: Dim myapp As New Autodesk.AutoCAD.Interop.AcadApplication Dim docMgr As AutoCAD.Interop.AcadDocuments =…
Totalys
  • 445
  • 2
  • 10
  • 25
0
votes
1 answer

How do you access the notes property in AutoCAD

I've been researching for the past few days and have tried countless different methods of accessing the notes field from an entity in AutoCAD with C#, all to no avail. I am having our drafters label certain items in the notes field with some…
ejkt
  • 101
  • 8
0
votes
1 answer

How to change Color of Block reference in autocad using interop COM

I have problem to change the color of the acadblock. But i can able to change the color for line and arc etc. But when i try to change the block color it does not change. Can any body tell me how to do? Here i have mentioned my code: …
Sivaperuman
  • 239
  • 1
  • 4
  • 21
0
votes
2 answers

custom variables in object creation

Is it possible to use variables in the creation of objects in AutoCAD? For example, I would like to create a number of circles and have their diameter property determined by a custom variable. This would allow me to easily change the value of…
DakotaD
  • 371
  • 3
  • 18