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

How to open a DWG and directly send a command to AutoCADLT?

I have to open a dwg and then execute an AutoCADLT command, immediately after the program load the file. I know that there is a switch to open a "script", but since the LT version of the program can't handle scripts, I'm wondering if there is a…
Bob404
  • 11
  • 4
1
vote
1 answer

Filtering block by attribute after I have already filtered by another

I am creating a console that finds blocks with a certain attribute value and replace it with another (akin to find(textbox1) and replace(textbox2) in Word). For Each blk In ss If (blk.HasAttributes) Then attr =…
Pedro
  • 49
  • 8
1
vote
1 answer

Creating PropertySet in active design document in AutoCAD using C# SDK

I am trying to create a PropertySet in currently active design document in AutoCAD, but I am getting an exception eInvalidInput in the following line, var dictionaryPropertyDataFormat = new DictionaryPropertyDataFormat(database); The whole method…
Umar
  • 478
  • 3
  • 10
1
vote
1 answer

Script to run an AutoLISP File

I want to draw about 1000 shapes of two circles with tangents using this lisp file, which draws one shape a time. I wrote a script to draw all shapes (see below), however it waits after the first argument for the next argument although it is there…
1
vote
1 answer

Copy an INSERT entity from one dxf file to another dxf file using ezdxf?

I have a dxf file blocks.dxf containing multiple block entities. I have another dxf file in.dxf into which I need to import the block entities of the previous dxf file blocks.dxf. How do I copy the block entities from one file to another using ezdxf…
1
vote
2 answers

How to convert dwg file of autocad to png format using python ,Is there is any way?

Is there any way to change dwg file AutoCAD to png format or pdf format using python. I tried looking many documentation none of them answered my question ``` from __future__ import print_function from os.path import join, dirname, abspath from…
Nithish Albin
  • 352
  • 5
  • 20
1
vote
1 answer

How to BlockReference object attributes

The problem is there is a field DEPT_NAME on BlockReference object not getting the value. how to to get the value I tried the given code but not getting any results from __future__ import print_function from os.path import join, dirname,…
Nithish Albin
  • 23
  • 1
  • 5
1
vote
0 answers

c# RuntimeBinderException when using dynamic variable to handle internal types. How can I fix that?

I'm using a not-fully-exposed API in the add-on that I'm currently writing. Some classes there are still kept internal, although some public methods require parameters of these types. To handle the problem I tried to use dynamic typing with a helper…
adam.k
  • 324
  • 3
  • 14
1
vote
0 answers

Autoit: create variant "array of doubles"?

I'm trying add a point in currently opened Autocad drawning. As reference I'm using VBA example from AddPoint manual: VBA: RetVal = object.AddPoint(Point) object Type: Block, ModelSpace, PaperSpace The objects this method applies to. Point Access:…
vanowm
  • 9,466
  • 2
  • 21
  • 37
1
vote
2 answers

Change DXF entity in a specific index in AutoLISP

I'm struggling with changing the right DXF, there is 9 DXF of 300. I get the following list, with the command (entget (car (entsel))): ((-1 . ) (0 . "HSB_BEAMENT") (330 . ) (5 . "5A612") (100 .…
Math
  • 141
  • 2
  • 16
1
vote
1 answer

Edit Paperspace Objects for Advance Steel

I have been looking all over for how to edit Advance Steel 2D paperspace Labels through C#. Advance steel has lots of libraries for editing 3D entities. I need references to Advance Steel 2D entities. using Autodesk.AdvanceSteel.Runtime; using…
MiddleTommy
  • 359
  • 3
  • 10
1
vote
2 answers

Installing AutoCAD vlx files with AutoCAD registry keys and Inno Setup

I have some vlx files to add to my AutoCAD folder. I would like to make install package with Inno Setup which will install my vlx files at post install.I got the registry key of AutoCAD…
peteroo
  • 23
  • 9
1
vote
1 answer

how to change attribute of block using ObjectDBX

I need to change an attribute of drawing with the ObjectDBX method using AutoLISP. this routine run properly but not change the attribute,can you suggest any change in code or any other method to achieve this task? Thank…
Dinesh Vilas Pawar
  • 493
  • 2
  • 5
  • 18
1
vote
1 answer

Read the modified object

How to get ObjectId of the recently modified object? I add some polyline to the drawing. Each one is the same. When one modifies the other, they must also be adjusted to the changes. I need to exclude from the list of objects that need to be…
programmerJavaPL
  • 496
  • 6
  • 23
1
vote
1 answer

Storing data in a drawing AutoCad C#

In one dwg file I will have several drawings. Each as a separate whole. I want to make an overlay to describe the bars and draw them from the drawing. The numbering is done automatically. The most important thing is that every drawing starts from…
programmerJavaPL
  • 496
  • 6
  • 23