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

Copy objects (array command) with increasing distance in AutoCAD

I try to draw a field of circles. The density of the circles (ratio area circle to interstitial space) should increase continuously (gradient). Has anyone an idea how to do that, maybe using other programs scripts etc. The result should look like…
Hans
  • 141
  • 3
  • 10
0
votes
1 answer

One user can't run program while others can

i am having an issue a little bit strange. I installed autocad lt 2015 in some computers in my network with administrator account, and i'm having issues with one user in particular. When he starts autocad, nothing happen, although if i run as…
0
votes
1 answer

Check if autocad 2014 is open

We have recently switched from autocad 2010 to autocad 2014, and are encountering some annoying problems. Every drawing we open, is now opening in a separate application. So, instead of multiple drawings per application, it is opening each and every…
Jens
  • 879
  • 12
  • 34
0
votes
1 answer

AutoCAD 2015 cloud of 22k points

i have cad file with almost 22k points and i need make circles with the same diameter (30mm) around all of of them, but making it manually will took so long.is there some better way? Some autocad addon od macro? Thanks for any help
0
votes
1 answer

Get the count of items inside a drawing in autocad using VBA

I am trying to get the number of items present inside the model space. If i am not mistaken the Count does that trick, but I am not able to make it work (I might be wrong). For example, Set entity = ThisDrawing.ModelSpace.Item(0) gets only the first…
tony9099
  • 4,567
  • 9
  • 44
  • 73
0
votes
1 answer

What does the ISAVEPERCENT variable do in AutoCad?

Currently, my save times can vary from 10 seconds to 3 minutes depending on the size of the file I am working on. Therefore, I have been attempting to decrease the save time for larger files for myself and others at my company and I came across the…
0
votes
1 answer

Where is the documentation for Autodesk.AutoCAD.Interop?

I've looked in the ObjectARX SDK, in AutoCAD Help, on the Autodesk Developer Network, in SO and the broader internet, but I can't find documentation for the Autodesk.AutoCAD.Interop dll, only documentation for the in-process .NET API. For example,…
MattDG
  • 373
  • 3
  • 14
0
votes
1 answer

Dialog modal in Autocad Map (2013)

I have a plan with a building and I was wondering if there is any way to attach to that entity something like a dialog modal (pop up). When you click on the centroid (or on the contour of the building) I want to open a pop up asking you to select…
radubogdan
  • 2,744
  • 1
  • 19
  • 27
0
votes
2 answers

Unable to perform Select object in given drawing in autocad using C#?

I need to open the given path drawing file and then select the All lines of the drawing and then list number of the lines. I cannot do these things because while i open and then set the MdiActiveDocument method is returned. Below lines are not…
Sivaperuman
  • 239
  • 1
  • 4
  • 21
0
votes
2 answers

AutoCAD Vault Connectivity c#

I had created a project to access the properties of SheetSet and as well as AutoCAD Vault functionalites including Checkin to Server, CheckOut from server and all. It was developed using C# based on AutoCAD 2012 .dll files. And tested using…
user1966548
0
votes
1 answer

Split poylines with a grid in AutoCAD

I have a layer in AutoCAD which consists of many rectangle polygons (created with polylines) with the same size that touch each other. So it's like a grid. And I also have another layer on the bottom of it which consists of many polylines - city…
Stefanos
  • 179
  • 1
  • 10
0
votes
1 answer

Triangulates all objects in Autocad

I need to render Autocad models(drawing), meaning all the renderable objects on the scene, through ray casting technic. Therefore I need to triangulate the model to intersect ray-triangle. Is there any way to access triangles in the model(as I…
ali
  • 529
  • 4
  • 26
0
votes
0 answers

Return first six characters of a binary file

I'm looking for a fast/easy way to return the first six characters of a binary file inside Windows 7. Opening the file in a hex editor to inspect the first few characters is too slow for our use. Ideally, we'd be able to right click a file to get…
DrDavid
  • 904
  • 3
  • 9
  • 18
0
votes
1 answer

How to create Acad Proxy Entity in Autocad.net 2007?

i have a proxy object like this But i don't know how to create the same with C# (autocad.net)
Ly Nam
  • 23
  • 4
0
votes
1 answer

Code to perform multiple copies of AutoCad Electrical template drawings and rename

I am trying to create a script that will make copies of a template.dwg from AutoCAD Electrical multiple times (10 - 100 times) and rename it at the same time. I have seen programs like this online for excel workbooks but unsure if it will work…
excelSU
  • 33
  • 1
  • 1
  • 5