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

AutoCad with .net : how to capture Alt key event while select item by click

I am developing a plugin for AutoCad. In a command loop , user will select some text objects by clicking them or By window. for example : text1 , text2 , text3 , text4 , text5 , text6 , text7 User type command: multiselect user click on text1 user…
adam
  • 19
  • 5
0
votes
1 answer

Block insert loop error !dbobji.cpp@8638: eNotOpenForWrite

Good Day, I'm creating a program to do a few calculations and insert a block at a point the user clicks on, then repeats the calc and insert at any other point the user clicks on until the user cancels (See program below). The program does…
Cald
  • 201
  • 2
  • 6
0
votes
2 answers

Block inserting loop error

Good Day, I'm creating an Autocad csharp program for to calculate a few levels and insert a block at a point the user clicks on, and doing this on a while loop so the user can keep on selecting new points to calculate and insert. Only it works…
Cald
  • 201
  • 2
  • 6
0
votes
1 answer

Inserting existing block with predefined attributes

I'm working on a c# program designed to insert a block already on the autocad drawing to any place the user clicks on and automatically add a string value to the first custom attribute. I've done part of this by creating a new block reference with…
Cald
  • 201
  • 2
  • 6
0
votes
1 answer

Convert Autocad (DXF) file to transparent image

I would like to convert an Autocad file (DXF) to an image based on the following criteria: I would like to specify the viewport from the autocad file. I would like to specify the width and height of the resulting image in pixel. resulting image…
user836026
  • 10,608
  • 15
  • 73
  • 129
0
votes
1 answer

opencad how to draw lines with values from excel

I am new to opencad, I got a task to draw hundreds of dash lines, each dash line is contracuted with two points, and the values of the points are saved in an excel file like this: 1075 7755 1075 7541 1075 7340 1075 7114 1075 6936 1075…
Tom
  • 385
  • 3
  • 7
  • 17
0
votes
1 answer

Missing referencies in VBA: how to "include" modules?

I have a legacy code - some macro for Autocad - and I got it running on Autocad 2015 with enabled VBA. There are some string-related function as Trim, Mid, etc. And these functions are missing references, VBA can't find their definitions. I can find…
Pavel Oganesyan
  • 6,774
  • 4
  • 46
  • 84
0
votes
1 answer

How do i load a lsp file from standalone C# application into AutoCAD and waiting for it to finish

first time poster here. I'm building a standalone application in C# where I can drop a set of .dwg's and select which .lsp files I want to run on that set. I can figure out how to open a dwg, load a .lsp file, save the dwg and close it. What I can't…
0
votes
1 answer

Automate inserting OLE into Autocad drawings using web based programming language

I am trying to insert and Excel object into and Autocad file (DWG), I need to do this by running some sort of script that will open the DWG file, import he Excel Sheet and then save the DWG file. I need to do this using a web based programming…
gmann1982
  • 97
  • 1
  • 9
0
votes
1 answer

AutoCAD script not reproducible

I wrote an AutoCAD script that is supposed to draw me two independent, spatially separated 3D polylines. After executing the script, however, I get connecions between the polylines. The funny thing is that two consecutive runs of the script may…
zeus300
  • 1,017
  • 2
  • 12
  • 30
0
votes
1 answer

Access the calling instance of AutoCAD using C# generated DLL library

I want help regarding a data extraction program that I am using to obtain attribute information from blocks inside the dwg files. I got the basic code online which I modified to suit my needs. Still, this portion is exactly the same. (Link of the…
Govinda
  • 61
  • 11
0
votes
0 answers

RegAsm: Warning RA0000: Could not load file or assembly 'Autodesk.AutoCAD.Interop.Common Version=17.0.54.0?

I have created one .net COM dll which refer Autocad files. While i try to Register that Dll in Client Pc an error Occurred like this. **RegAsm: Warning RA0000: Could not load file or assembly 'Autodesk.AutoCAD.Interop.Common, Version=17.0.54.0,…
Sivaperuman
  • 239
  • 1
  • 4
  • 21
0
votes
1 answer

I have table in autocad but drawn as lines. I wanted to export this table into execl sheet

I have table in autocad but drawn as lines. I wanted to export this table into execl sheet. Itried to group the lines to make it table and tried to export it to execl but i failed. The picture is attaced. ![the table][1]
mariam
  • 1
0
votes
1 answer

AutoLISP program giving inconsistent results

Software: AutoCAD 2012 (Japanese language) System: MS Windows 7 (Japanese language) The Situation I have made a .LSP file which defines a new function "C:MAKEATABLE". It asks the user to select a .CSV file and then it imports its data to the…
Govinda
  • 61
  • 11
0
votes
1 answer

AutoCAD displays `question mark` instead of tab character when using AutoLISP

Software: AutoCAD 2012 (Japanese language) System: MS Windows 7 (Japanese language) I have made a .LSP file which defines a new function "C:MAKEATABLE". I am trying to print a string which contains a tab character, using AutoLISP. But that character…
Govinda
  • 61
  • 11