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

How to export 3D object in autocad 3D

I created 3D object in Autocad 3D. The visual style (Realistic) when in autocad is perfect. However, when I export it into file .eps. This 3D object automatic change to 2D wireframe and missing some object?? All I want is export this object (with…
Dai Tran
  • 3
  • 3
-1
votes
2 answers

AutoCAD 2006 vs. 2012

I'm looking to learn AutoCAD. I have found several videos online that relate to 2006 AutoCAD - but is there a difference to any of of the versions. I have seen job postings asking to know AutoCAD 2008 -- what happens if I only know 2011 or even…
Amy
  • 1
-1
votes
1 answer

.Net AutoCAD add customer attributes

Below is command result: command --> (entget(car(entsel))(list "*")) ((-1 . ) (0 . "LWPOLYLINE") (330 . ) (5 . "5968") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "LayerName") (6 . "Continuous") (100 .…
edwardlim
  • 3
  • 3
-1
votes
2 answers

How to convert an LSP into objectarx C# to close Autocad polylines?

I need to create a C# objectarx function that will check if a polyline is connected and open. If so then close they polyline. This sample code cannot be used because this will not check if it is connected: if (polyline.Closed == false) { //…
Robert Smith
  • 634
  • 1
  • 8
  • 22
-1
votes
1 answer

VBA - compare elements in mutli-dimensional array

In an AutoCAD VBA routine i have made, the program searches for dynamic blocks with a certain name and extracts some dynamic properties - width and height. What i have so far is a list of all the blocks and their properties but they are not sorted -…
-1
votes
1 answer

I am trying to find the slope of a polyline in autocad in a simpler way

My title pretty much says it all. I am trying to find the slope of a drawn polyline in a faster way than I am currently doing it. Right now I have to draw the line, check the distance in properties, than use the contours I have in the drawing to get…
spmoose
  • 63
  • 1
  • 12
-1
votes
1 answer

I am trying to get privately provided contours to be recognized by arcmap as such

I have a contour map that is provided to me by a private company. it comes in the form of a .dwg that works for autocad. In the past i have gotten contour data from usgs but the data provided to me is much more accurate. I want these contours in the…
spmoose
  • 63
  • 1
  • 12
-1
votes
1 answer

Auto Cad MEP 2011

How to Get Device StyleName in Autocad MEP 2011 through c#
user633558
  • 15
  • 2
  • 3
-1
votes
1 answer

Load line type autocad using excel vba

I try load line type by using excel VBA as: Call acadDoc.ModelSpace.Linetypes.Load("HIDDEN", "acad.lin") Or Set acadLineTypes = acadDoc.ModelSpace.Linetypes.Load("HIDDEN", "acad.lin") but impossible.
-1
votes
1 answer

autocad Install Error (Failed to install)

I Tried to reinstall AutoCAD 2014 in my computer, but It doesn't work. It produces a log file like followings. 2018/4/15:00:05:57 Thaw Mobile DESKTOP-16NE0KO === Setup started on DESKTOP-16NE0KO by Thaw Mobile === 2018/4/15:00:05:57 Thaw Mobile…
peteroo
  • 23
  • 9
-1
votes
2 answers

why when converted dxf file to svg using inkscape the dimensions of the diagram disappears?

This is the image is done in AutoCAD 2018: This is how the converted SVG image appears: How do I fix it? I have also checked various online DXF to SVG converters but experience the same issue.
Ram
  • 1
  • 4
-1
votes
1 answer

Generate Unique Id on Autocad MAP File

Hello i hope your are fine . i have problem i have a map file which is created in Auto cad and this is a Housing Society MAP . I want unique id off any part which is in map .(Can i generate auto unique id of every part) . when user click any map…
master
  • 1
-1
votes
1 answer

AutoCad - one layout to multiple pages PDF

My project is made with all pages (sheets) in one layout (screenshots in attachment). I tried everything to export (or plot) the project in PDF with every page on different sheet (ready for printing) with no luck. P.S. It looks like project is…
Mladen M.
  • 13
  • 4
-1
votes
2 answers

Generated DXF file opens in AutoCAD but crashes BricsCAD

I am working on a DXF (AC1021 version) exporter in Delphi and I ran into some problems. I was looking closely at ezdxf for minimum file structure and I was able to successfully generate it in delphi. Now the problem I have is that the generated file…
skrat
  • 648
  • 2
  • 10
  • 27
-1
votes
1 answer

Creating a customized toolbar to control autoCAD with C#

I need to create an application that has some autoCAD functions like enter, esc, offset, etc. I have this example to work on: GUI example So basically the toolbar stays always on top of every window then, when I open autoCAD and press any button,…