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

Unable to Determine what causes VBA to fail when attempting to load a Form

Here is a full video explanation of the problem. It begins by throwing up the Autocad Help for some reason. Then Shows a message that says "Could not load an object because it is not available on this machine" Then I get a message like this: The…
jth41
  • 3,808
  • 9
  • 59
  • 109
0
votes
1 answer

Hide block selection dialog on bedit command

I need to open block editor for block by its name, so I execute command in this way: document.SendStringToExecute("_BEDIT "+blockName+"\n", true, false, false); After running this line of code "selection of block" dialog appears, but I need the…
FLCL
  • 2,445
  • 2
  • 24
  • 45
0
votes
2 answers

WPF Application failing outside of Debug (release/debug) mode

Just to clarify, I have fixed this problem temperately and just wanted to see if someone could expand on why this happened and possibly give me some insight as to how to fix it permanently. I am building a plugin for AutoCAD and have ran into some…
Trae Moore
  • 1,759
  • 3
  • 17
  • 32
0
votes
2 answers

Importing Autodesk.AutoCAD in VB.NET

For my project, I need to generate CAD drawing (almost a blueprint of a tank) through my VB.NET application. The app takes in some user input & based on this, it generates the geometry of the tank. I am using Microsoft Visual Studio Professional…
shad0w_wa1k3r
  • 12,955
  • 8
  • 67
  • 90
0
votes
1 answer

How do you access the notes property in AutoCAD

I've been researching for the past few days and have tried countless different methods of accessing the notes field from an entity in AutoCAD with C#, all to no avail. I am having our drafters label certain items in the notes field with some…
ejkt
  • 101
  • 8
0
votes
1 answer

C# DataGridView and Windows Form

I'm writing AutoCAD 2013 .NET plug-in with Windows Form, using C#. When I using modeless form in the command Autodesk.AutoCAD.ApplicationServices.Application.ShowModelessDialog (new Form1 ()); instead of next…
Kirill Golikov
  • 1,354
  • 1
  • 13
  • 27
0
votes
0 answers

Can't handle exception Errorstatus.EInvalidKey in Autocad

Ok, so as usual Autodesk has little to no documentation on the subject so I'm trying to glean from my seniors here. I'm attempting to write a bit of code that will perform a WBlock operation on a List of xrefs in a file. When I try to go through the…
prestonsmith
  • 758
  • 1
  • 9
  • 29
0
votes
1 answer

customize the save as dialog window in autocad 2013

I need to customize the save as dialog in autocad 2013 but I haven't any idea to do it. When the user clicks on the "Save As" menu, the customized dialog should appear instead of the built-in one. How can achieve this ? This link may be usefull but…
h.ralitera
  • 1
  • 1
  • 2
0
votes
1 answer

Autocad right click event handler

I have written this code: int count = 1; while (true) { pointOptions.Message = "\nEnter the end point of the line: "; pointOptions.UseBasePoint = true; pointOptions.BasePoint = drawnLine.EndPoint; pointResult =…
Antonio Papa
  • 1,596
  • 3
  • 20
  • 38
0
votes
1 answer

Edit AutoCAD database, adding new tables

I'm developing an AutoCAD plugin and I want to create new objects and new information. How can I access the AutoCAD database for example adding a new table and getting information from it? Is this possible? Is there another way to store information?
Antonio Papa
  • 1,596
  • 3
  • 20
  • 38
0
votes
2 answers

AutoCAD .net save custom object

I have created a custom class using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Autodesk.AutoCAD.ApplicationServices; using Autodesk.AutoCAD.DatabaseServices; using…
Antonio Papa
  • 1,596
  • 3
  • 20
  • 38
0
votes
3 answers

How to combine 2 entities as 1 in Autocad .net

I'm making an autocad plugin and i want to create a new entity that is a combination of a line and the text.If i select the line the text is selected and backwords when i delete the line delete the text etc etc.How to treat them as one object…
Antonio Papa
  • 1,596
  • 3
  • 20
  • 38
0
votes
1 answer

Where should I put the commands in an Autocad VB.NET project?

I'm very new to Autocad programming, few months new, but I managed to write an application with about 10 Autocad commands. Most of these commands show a window and everything else is done from that window. I try to make my application MVVM..ish.…
Andrei
  • 961
  • 1
  • 9
  • 29
0
votes
1 answer

Loading (and executing) a lisp-file in autocad using .NET

I'm currently in the process of rewriting some old AutoCAD plugins from VBA to VB.NET. As it turns out, a (rather large) part of said plugin is implemented in LISP, and I've been told to leave that be. So the problem became running LISP-code in…
Alxandr
  • 12,345
  • 10
  • 59
  • 95
0
votes
1 answer

Getting information from a USB activation program

My colleagues work with AutoCAD 2010 plugin called RCAD ( not sure if it is the correct name), but it works only on Windows XP installed on a Virtual Machine and It activates when they insert a specific usb.I need to develop the same pluggin in…
Antonio Papa
  • 1,596
  • 3
  • 20
  • 38