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

c# autocad dialog box to detect a new active drawing

I have a modeless dialog box displaying drawing information. is there a way to detect when another drawing is active and update the dialog box to show the new drawings information?
-2
votes
1 answer

2d viewing in Autocad productions

I have a question related to 2d viewing and 3d viewing in cad and modeling products. What is is 2d viewing and 3d viewing in Fusion ? or other modeling tools. Please explain. Thank you
-2
votes
2 answers

Type Mismatch in VBA

I am getting the error "type mismatch" when I try to run this VBA code in Autocad. The line Theatts(TagNumber).TextString = BTextString is highlighted. Public acad As Object Public doc As Object Public ms As Object Public ss As Object Public ssnew…
tmccar
  • 85
  • 11
-2
votes
3 answers

C# .NET assembly dependency AutoCAD API

I would like to build AutoCAD 2010 plugin on .NET 3.5 because .NET 4.0 is not support in 2010. After loading AutoCAD 2010 API library I can't build the solution because of a dependency. Could you help me who to figure it out? Error Message: Warning…
-2
votes
1 answer

Automate AutoCAD 3D model generation

I want to use AutoCAD to generate a 3D model which is composed of many basic 3D geometries such as sphere, cube, etc. I have the dimensions and the origin and orientation of the local coordinate system of the basic geometries. The data are stored in…
user19041
  • 1
  • 1
-2
votes
1 answer

Create 3D / dynamic Diagrams in Asp.net

i am working on my final project and i need to create online diagrams on user input. The sample which is given to me is below. if you fill all form and give input in hight, lenght and eave hight etc , it will generate diagram on input. i want to…
Baruit
  • 1
-3
votes
1 answer

Convert DWG to DXF using API v3 and .Net

My requirement is to convert DWG to DXF , need quick help to understand the process using Design API v3 and .net c# , and I want to use all DWG files from local computer and output also should happen locally. There is no reference for this anywhere…
-3
votes
2 answers

Where can I get all supported formats of AUTOCAD?

Where can I get all supported formats of AUTOCAD? Here is a list of all supported AUTOCAD formats are mentioned in the list.
-3
votes
1 answer

Is c# compatible with autocad lt?

I've looked for this question several times but there's no answer. Lisp is a language that is exclusive to the full version of autocad, I wonder if c# is as well or if I can run c# on a lt version of autocad.
-3
votes
1 answer

Drawing to PDF create Blank white Page

using Auto Cad 2012 I am trying to export layout to PDF but I am getting white PDF! can you please let me know why this is happening?
Suffii
  • 5,694
  • 15
  • 55
  • 92
-4
votes
1 answer

Look for file in directory that contains a certain substring

I'm attempting to loop through a specific directory until I find a file containing a certain substring. The file in question is an XML file used for parameter communication between Python and an Autocad C# Plugin. Here's what I've completed so…
asdf
  • 2,927
  • 2
  • 21
  • 42
-5
votes
1 answer

VBA vs pyautocad speed when communicating with autocad and excel

I have created a program that gets objects from autocad (e.g. line, blocks) then analyze the objects using VBA then write the results of the analysis in excel workbooks. I use VBA because it's available in excel. But the speed of communication from…
-6
votes
2 answers

Updating C# application for Autocad 2016

I added the references C:\Program Files\Autodesk\AutoCAD 2016\Autodesk.AutoCAD.Interop.dll and C:\Program Files\Autodesk\AutoCAD 2016\Autodesk.AutoCAD.Interop.Common.dll Getting this error Error 3 Argument 1: cannot convert from…
-7
votes
1 answer

how to open .dwg files?

I am writing an application to open and read a .dwg file in android os. the IDE I am using is eclipse I wanted to know if I had the source code of a reader or a . har file, then how to include it in my application. Can somebody help?
Anuja
  • 1
  • 1
1 2 3
92
93