Questions tagged [autocad-plugin]

External libraries (AutoLISP, ObjectARX, .NET) that can be integrated into AutoCAD for customization.

AutoCAD can be customized/enhanced using AutoCAD plugins, which are external libraries that can be developed and integrated into AutoCAD. The three widely used customization API's include AutoLISP, ObjectARX and AutoCAD.Net.

368 questions
0
votes
2 answers

How to list the names of all the blocks of a .dwg file in AutoCAD CORE console?

i will get custom block in a .dwg file from a list of blocks which I will parse programmatically in Java.
user3336544
  • 211
  • 1
  • 4
  • 11
0
votes
2 answers

Autocad C# - On Undo, the object Xdata becomes null

This is in AutoCAD 2016 We have a problem with xdata being shown as null on Undo. We use Xdata to track the custom objects/blocks. We have started noticing this after we moved to AutoCAD2016. I have included an example. Running the command…
nonexistent myth
  • 135
  • 1
  • 14
0
votes
2 answers

Could not load type 'System.Windows.Input.ICommand'

I am writing extension for AutoCad using Object ARX 2015 and .Net Framework. On my computer everything work good. But when i try to use my .dll on other computer. I get this error: Exception Text System.TypeLoadException: Could not load type …
0
votes
1 answer

Is it clean code to use a class wide field?

I am working on an AutoCAD plugin. I have several methods that use Document doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument; Database dataBase = doc.Database; Editor editor = doc.Editor; Would it be clean…
user2479356
0
votes
3 answers

Why does AutoCAD throw a fatal error when I try to read line start and end points?

I am writing a plug in to pull as much data out of a CAD as possible. The main issue I am having right now is when I try to access StartPoint.X, for example, the script fails without catching an exception with "FATAL ERROR: Unhandled Access…
Brady
  • 33
  • 4
0
votes
2 answers

AutoCAD C# Select objects after SendStringtoExecute

Does anyone know how to select objects after SendStringtoExecute? The best for me is select object using fence or a point. Here's the part of my code: foreach (ObjectId objId in NormalblkTblRec) { if (objId.ObjectClass.Name == "AcDbArc") { …
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

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
3 answers

Hide parent window, but show child window

I'm working on an application that should do the following on start-up: Connect to an external application using COM (AutoCAD). Send message to the application to run some DLL code (opens a window). Hide AutoCAD's window, but keep the DLL's window…
Nicholas Miller
  • 4,205
  • 2
  • 39
  • 62
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

char to ACHAR + objectARX

I am trying to convert previous code to VS 2010. The code I am trying to convert is mentioned below. The function addCommand is defined like addCommand(const ACHAR * cmdGroupName, const ACHAR * cmdGlobalName, const ACHAR * cmdLocalName,…
Aanand
  • 1
  • 2
0
votes
1 answer

3D Line Graph manipulation

I am writing software for a device that would plot a 3D graph/line plot of where someone has traveled. This plotting will be during post-processing of the data, so real time is not a requirement. My key problem is, I can't find suitable tools or…
Opender Singh
  • 305
  • 2
  • 10
0
votes
1 answer

how to use openfiledialog in autocad using vb.net for dll application

how to use openfiledialog in auctocad using vb.net in a dll application for opening a file. Because no forms i used in the dll application. i am using imports autodesk.autocad.windows in the application.
user3060904
  • 21
  • 1
  • 7
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