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

What math field can deduce equations for a hand-drawn shape?

Suppose I have an Arabic character hand-drawn in Thuluth font, as in: http://arabicletters.info/wp-content/uploads/1.jpg I was thinking of a way I can recreate the same shape but at a much greater height, whilst leaving the other characteristics…
akhalid
  • 87
  • 1
  • 1
  • 7
0
votes
1 answer

Detect each object points in Autocad (.DXF or DWG) exported xml file

I have Autocad files .DXF or .DWG, I export them as XML files from Autocad. The files for example are for a house plan, with garden and pool... I need to be able to upload the xml file on a web application, then read each object, like the pool only,…
ronymattar
  • 149
  • 3
  • 14
-1
votes
1 answer

How to draw roof plan layout without any API

I'm trying to draw roof plan layout with only lines is there any logic or mathematical calculations needed to draw roof plan without any software only with code,below is the example
-1
votes
1 answer

How do I delete objects on a specific layer in AutoCAD drawing using Python?

Erase line on a layer a layer in a cad, using python Hi, I want to select objects on a specific layer in my autocad drawning. After, I want to delete them. I tried a couple thing (using python) with exdxf or pyautocad. Can someone send me line to…
-1
votes
1 answer

How to read excel file column by column

I want to read excel file column by column. but my code read data row by row. On Error GoTo errhand Set ws = oBook.Sheets("Sheet1") Set rngSize = ws.UsedRange Dim row As Range For Each row In rngSize.Rows Dim cell As Range …
S.M_Emamian
  • 17,005
  • 37
  • 135
  • 254
-1
votes
2 answers

How to check if a specific driver is installed using AutoLISP

(My ultimate goal is to verify if a specific database OCDB driver is installed before I run an Autolisp coded connection to a database) I would like to know : How can i check if a driver is installed on a Windows 10 x64 computer, using AutoLISP on…
-1
votes
1 answer

Function in CAD to create a best-fit circle using multiple points

Example circleI have to draw best-fit circle using multiple points (in AutoCAD). The software only allows for three, but no more, points to be selected. Circle_2 is there a code I can write and embed it into CAD? Thank you :)
-1
votes
1 answer

System.IO.FileNotFoundException and AutoCAD Support File Search Path

I'm creating a program that has a "rehost workflowdesigner" (like Autodesk SubAssembly Composer did) and it fails to create the toolbox controls. The error that occurs: System.IO.FileNotFoundException: Could not load file or assembly.... So far I…
-1
votes
2 answers

How create an installer for c# autocad plugin + custom menu

I would like to know how to create a an installer (.exe or .bat) to deploy an AutoCad plugin developed with C #. The installer will have 2 tasks: auto load the plugin DLL and auto load a .cui file which will be created as user interface of the…
Yassin
  • 11
  • 2
-1
votes
1 answer

Open and edit DWG file without AutoCAD

I am trying to open a DWG file in VB.NET forms without opening AutoCAD. However, a problem occurs: The specified module could not be found. (Exception from HRESULT: 0x8007007E) I also want to edit the image in the DWG file, i.e. most probably a…
bhavikkp
  • 1
  • 1
  • 1
-1
votes
3 answers

How to create an application that can interact (draw) in AutoCAD. ObjectARX ? .NET ? AddOn?

I'm planning to program an application (C#) which can draw some things on AutoCAD. After a lot of research I don't understand where i need to start. Can someone explain to me what ObjectARX is ? And if I need to use it ? I want to create an…
Xariien
  • 3
  • 2
-1
votes
1 answer

Get Attributes in dynamic block using ezdxf 0.14.1 and Python 3.8

I made a dynamic block using auotcad as attached and there are several attributes inside, i.e. "RXXX", "COOR". https://drive.google.com/file/d/1c8WdeAql1U5edFBKEK7coupx9ilX_Ga6/view?usp=sharing I would like to extract the attributes following the…
-1
votes
1 answer

AutoCAD VB.Net Color Picker

I am porting some AutoCAD VBA to VB.Net. Several of the modules do a ThisDrawing.SendCommand("_color" & vbCR) to popup an AutoCAD color picker, then process the response by doing a ThisDrawing.GetVariable("CECOLOR") to get the selected color. With…
Steve Reed Sr
  • 2,011
  • 3
  • 18
  • 22
-1
votes
1 answer

Get a list of autocad layers with edzxf

I want to get a list of autocad layer names with ezdxf. I have referenced the ezdxf documentation but I do not know how. The following is described in the documentation, do you use this? Drawing.layout_names()   Get a list of available paper…
leez
  • 85
  • 8
-1
votes
1 answer

Load AutoCad DWG files in Python

There a requirement to rendering AutoCad DWG file in Python. My first Question is, 1:- Is is possible to render/load dwg file in python and view the file/image in python environment? 2:- How can I do that? I tried using arcpy, but as it is a…
Divyansh Goel
  • 29
  • 2
  • 8