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

VBA6 -> VBA7 - Problems converting code to 64 bit - Bring window to foreground (AutoCAD 2014)

I am working on converting some very old VBA code to run on AutoCAD 2014. I have so far converted everything but there is an issue with the forms (they are modeless and require an activation callback to modify the window propertis). The following is…
jducreux
  • 107
  • 2
  • 9
1
vote
2 answers

Autocad API detect shapes inside layer

I am using Autocad 2012 with the API provided. I am developing in c#. What I am trying to do is select a certain layer, and "detect" all rectangles / squares in that layer. Ultimateley, I would like to be able to draw inside of all of those…
1
vote
1 answer

How To Resize AutoCAD Palette Set

Goal Resize the palette set on plugin start up so that it looks like so: Everything is correctly adjusted here and looks nice. This setup is saved when I close AutoCAD manually. Although, my goal would be to make the program make it start up like…
Alex
  • 4,821
  • 16
  • 65
  • 106
1
vote
2 answers

Invoke ObjectARX acedDisableDefaultARXExceptionHandler from c#

I'm developing an AutoCAD Plugin, and I can't capture unhandled exceptions. Tried to use CurrentDomain.UnhandledException and Application.ThreadException, but none of this work. I would like try the solution suggested in this post: How to catch…
1
vote
1 answer

How to represent IFC models on Android?

I have to represent IFC files on an Android application. First I have to get them from a server (I will use BIM Server), and then extract the geometry out of the IFC file, and try to display them. The parsing is my first concern at this point. Is…
user1191284
1
vote
1 answer

How to Copy or Clone a viewport?

What is the correct way of copying an existing viewport, What I am actually doing is that to clone a layout by copying what is inside it, everything works smoothly except for the viewports. I tried to use the clone method, but it didn't work, I also…
Maher Assi
  • 75
  • 3
  • 10
1
vote
1 answer

Execute multiple commands in LISP sequentially

I am running an .arx application in AutoCAD. When we click on the customized tab in AutoCAD it runs the program in AutoCAD's commandline. The LISP function that we execute is as follows; (defun c:XYZ_program() (command) (command) (arxload…
JNL
  • 4,683
  • 18
  • 29
1
vote
2 answers

Get all selected objects in acitve Autocad document

How can I get all selected objects on the active Autocad drawing in my c# Autocad plug-in application? I have tried to get a selection set as follows: SelectionSet Selection =…
Demir
  • 1,787
  • 1
  • 29
  • 42
1
vote
1 answer

Get Mtext data from dwg file

I have some interesting task. In one of drawings i've got a MText field. So, my plugin needs to know, how to get exactly that field from this drawing and others. Is there any attributes or smth, what i can use for determining Mtext field on…
Denis Ionov
  • 127
  • 1
  • 2
  • 8
1
vote
3 answers

AutoCAD crashes trying to open a Modal Dialog from .Net command

I'm developing an AutoCAD .Net plugin which contains a command that opens a modal window. The window should display a web page. But it has a strange bug, here is a simple code to reproduce it: [CommandMethod("TEST_BROWSER")] public void…
reinwolf
  • 13
  • 3
1
vote
1 answer

How to enumerate through Autocad Entities without using Autocad.Interop?

I'd like to enumerate all entities in an Autocad Drawing, but not using Autocad.Interop reference. With Interop I could just pick: IAcadApplication App = (IAcadApplication)Application.AcadApplication; IAcadDocument Doc = App.ActiveDocument; foreach…
Daniel Möller
  • 84,878
  • 18
  • 192
  • 214
1
vote
1 answer

Is there any browser plugin or js library that allows rotate 3D DWG objects?

Have you seen somthing like this? I tryed http://www.autodwg.com/dwg-viewer/dwgviewx.htm, but it seems it supports just 2D objects Another problem is taht it should work under IE8.
Odoakr
  • 382
  • 1
  • 13
1
vote
0 answers

Copy 64 bit project to 32 bit project

Is there an easy way to copy a 64 bit Visual Studio 2010 project to a 32 bit project without needing to set some properties again??? (Or even make a project that works for both 32 bit and 64 bit machines???) See details: I have a project I compile…
Daniel Möller
  • 84,878
  • 18
  • 192
  • 214
1
vote
2 answers

Algorithm to find polygon that encloses a point - Only lines are defined

I have a 2D drawing with many straight lines. All those lines are mathematically known. And they are independent of the others. You can consider I know start and end point of each line and I can make them intersect to find all intersection…
Daniel Möller
  • 84,878
  • 18
  • 192
  • 214
1
vote
1 answer

log4net not logging from Autocad Plugin on deployment

I am developing an AutoCAD 2012 plugin using .net API"s of autocad. The Autocad plugin's are dll which are loaded into the Autocad runtime when the Autocad is started. I have been able to successfully log from log4net using Visual Studio…
Jatin
  • 4,023
  • 10
  • 60
  • 107