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

AutoCAD overrules and osnap

Is it possible to enable osnaps on geometry drawn using WorldDraw in a DrawableOverrule? I am creating geometry that displays a line as a conveyor section. The only geometry that is snap-able is the original line. None of the overruled geometry…
1
vote
1 answer

Do derived classes still depend on the imports of the parent class, even if the method referencing another assembly is being overridden?

I have a parent class that references an outside assembly (AutoCAD) using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Autodesk.AutoCAD.EditorInput; namespace WBPlugin { …
Nick
  • 71
  • 9
1
vote
0 answers

AutoCAD - accoreconsole.exe won't exit after executing the script file

We created a tool which depends on AutoCAD's accoreconsole.exe to batch process AutoCAD drawing files. We have the processing logic in a .NET DLL that will be NETLOAD from the script (.scr) file. It was working fine for the past 1.5 years, but…
Dhilip H
  • 594
  • 4
  • 10
1
vote
0 answers

SQLite C++ statement giving weird runtime error

I am testing a simple C++ SQLite piece of code: sqlite3* db; if (sqlite3_open("SteelTable.db", &db) != SQLITE_OK) { sqlite3_close(db); return 0; } std::string createQuery = "CREATE TABLE WFPROFILE (" "ID INT PRIMARY KEY NOT…
sidb
  • 11
  • 2
1
vote
2 answers

Automatically convert rectangle into concave arcs with a known degree

I am wanting to automatically convert all sides of a rectangle drawn by the user into concave arcs (about 10 degrees all around). I found this wonderful routine written by Marko Ribar (sorry if that's not correct credit) that does exactly what I'm…
Robert
  • 63
  • 6
1
vote
1 answer

How to sync viewports from model space in AutoCAD 2020?

Greetings Community of experts, I am trying to synchronize the movement and zoom in two windows of AutoCAD models, that is, in two different planes open .dwg divided into two windows one active and the other inactive synchronize the zoom (scroll +…
1
vote
1 answer

C# How to close Autocad pop-up when saving an XRef programmatically?

I am new in using AutoCAD and I am trying to work with its API in C#. At some point, I am trying to send a list of commands to save an external reference without the interference of the user. SendCommand("_-REFEDIT OK All Yes REFCLOSE Save "); But…
do.ma
  • 11
  • 2
1
vote
1 answer

Why do viewports created using commands in ObjectARX not save to the database?

Summary I'm trying to write a C# ObjectARX script to create a viewport that fits the extents of the layout using the -VPORTS Fit command, but for some reason the new viewport shows in AutoCAD but is never saved to the output drawing. Some things…
1
vote
2 answers

breaking polylines on join spot in autocad - any lisp function?

i am trying to break a poly line where an other poly line has joined the first line. for example in three ways that there are two lines, (one main road and one by-way) i want to break the main road on the joint spot of two poly lines and make 3…
MoienGK
  • 4,544
  • 11
  • 58
  • 92
1
vote
2 answers

My release dll is not working on other devices vb.net autocad

I am working on a project to make an Autocad addon for our engineering department. The project is nearly finished, but when I build the project and send the dll to my colleagues for them to add in autocad, it is not working for them. I can not seem…
Kris Pain
  • 15
  • 4
1
vote
1 answer

AutoLISP - Change Layers Automatically

I want to make a simple AutoLISP routine where I draw lines in layer "0" and afterwards change back to the original layer. With the code below, I can draw a line but it will stay in the current layer. If I let out the last code line, I draw the…
1
vote
1 answer

Hatching list of selected circles in Autocad

I'm currently working with Autocad plugin development and I want to select circles and the selected circles turn into hatches using C#. Should I make a list of hatches that contains all the selected circles or what? I've tried this but I'm getting…
Waseememe
  • 17
  • 1
  • 6
1
vote
1 answer

How to delete all Attributes from all Blocks with AutoLISP using ObjectDBX

I want to delete all attribute of block inside drawing using AutoLISP ObjectDBX method. The below program works well: it deletes the attributes of all blocks inside the drawing, but when I edit this block in the Block Editor, I see all the…
1
vote
1 answer

C# Revit API - How to pull info from autocad File

I've been working on this for the past month and am trying to get the final connection. so far, I can open Revit, execute an Autocad DLL from a Revit button however I don't know how to pull the information back into the Revit API. I have tried a…
Cflux
  • 1,423
  • 3
  • 19
  • 39
1
vote
1 answer

Extract all the external links that have a CAD file

Is there any way to extract all the external links files that have a CAD file? Any library in c# or another programming language? Thanks in advance.
karrtojal
  • 796
  • 7
  • 16