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

How to open a .DWG file in Autocad 2014 through C#

Hi I have a requirement in which I have to open a drawing file stored in C:\Temp Folder. I tried the following code public void launchacad(string pth) //pth is the path to the .DWG file { const string progID =…
Professor
  • 610
  • 4
  • 20
0
votes
1 answer

Keyboard shortcuts for 3D views in autocad?

I'm considering a switch to AutoCad from TurboCad and I'm trying a trial of AutoCad 2014 for Mac. I feel stupid for having to ask this, but googling hasn't turned up any answers and keyboard shortcut lists don't seem to include commands for…
user3147697
  • 91
  • 1
  • 9
0
votes
1 answer

How To Implement AutoCAD Color Chooser In External Application

Goal I want to be able to access AutoCAD's Color chooser from an external application. This means that I will not be using AutoCAD to make the color chooser dialog popup. Instead, I will be using a VB.Net application to manage these…
Alex
  • 4,821
  • 16
  • 65
  • 106
0
votes
1 answer

Autolisp, difference of two dxf files

I want to get the difference of two dxf files and want to save it in third file. I want to set the limitation also. If my text shifts upto certain units , it shouldn't be shown in difference. 'DWG diff' partially does the job. It is not flexible. I…
Shahgee
  • 3,303
  • 8
  • 49
  • 81
0
votes
1 answer

read Dxf file with java

can we read with calculating object surface as example of a drawing autocad forms using java? I found some package that can read and display the dxf file
m3asmi
  • 1,252
  • 1
  • 16
  • 36
0
votes
2 answers

AutoCAD 2014: System.Runtime.InteropServices.COMException (0x80029C4A) (TYPE_E_CANTLOADLIBRARY))

I have created classLibrary dll in vb.net 2013 for AutoCAD 2013 using ObjectARX 2013. It works fine in AutoCAD 2013 32bit & 64 bit (winxp, win7, win8). The same program I copied for AutoCAD 2014 and libraries used ObjectARX 2014. But it give this…
user3573690
  • 3
  • 1
  • 2
0
votes
1 answer

VBA Sort AlphaNumeric

I have a function in VBA that is supposed to sort text based on a "Bubble sort". If the text were just text then it would be fine, but my text is actually an alpha numeric string. I tried to rewrite it to account for the number part but something…
Richard S.
  • 713
  • 1
  • 9
  • 24
0
votes
0 answers

Autocad/C#: How to scale geometry in drawing and move attributes?

I am absolute noob in this area but I decided to do something with it. I'd like to achieve this: there is a drawing with a geometry - lets say a circle - and attribute definition. What I like to do is to scale everything in the drawing by 2 and…
krn
  • 3
  • 4
0
votes
1 answer

Changing point size in autocad

I don't know if its right forum. I'm posting question related to autocad. So please share link of forum (if I'm not allowed to ask it here) How can I change point size (single point size 1/2/3) of point cloud (imported as pcg) in autocad.
Shahgee
  • 3,303
  • 8
  • 49
  • 81
0
votes
1 answer

Proper "container" for data display/modification

I'm creating a windows form where a user will run a command in Autocad, it will prompt them to select an object(specifically 3d polylines). A 3d polyline can have a very wide range of Vertex's. I want each Vertex to be on/create it's own row. …
smakfactor1
  • 71
  • 1
  • 6
0
votes
1 answer

Create STEP/IGES or whatever file from .NET

From my application (.NET 2.0 c#) I need to export a 3D object to a file importable in AutoCAD. I created my DirectX 9 Mesh and I show it in a DirectX control, but with SlimDX I am not able to create a .X file, that anywhay can not be imported…
0
votes
2 answers

Autocad Instance not creating after deployment

I am getting an issue regarding running autocad application using C#. As i am beginner most of my code is copy pasted from net. The problem is i am developing an web application using c# which will create an instantiate autocad instance at runtime.…
Iftikhar Ali Ansari
  • 1,650
  • 1
  • 17
  • 27
0
votes
1 answer

Work with AutoCad blocks in c#

Is there any way to get the position of a specified AcadAttribute in a specified title block in an existing drawing with C#? Edit : My code is something like bellow, AcadBlock myBlock = myAcadDoc.Database.Blocks.Items(block_Name); AcadAttribute…
M_Mogharrabi
  • 1,369
  • 5
  • 29
  • 57
0
votes
1 answer

Working with autocad in c#

Is there any way to insert one kind of image files such as png or jpg to a drawing, programmatically in c# by using Autodesk.Autocad.Interop and Autodesk.Autocad.Interop.common dlls? I have tried AcadDocument.Database.ModelSpace.InsertBlock() but it…
M_Mogharrabi
  • 1,369
  • 5
  • 29
  • 57
0
votes
1 answer

Get dimension objects using acad.net

I need to get the bounding box detail of a dimension text in ACAD using .NET, Is there any in-built options available?
user2408848
  • 151
  • 7