Questions tagged [autocad]

Drafting and design software.

Filter by
Sorted by
Tagged with
0 votes
1 answer
14 views

Autodesk plant 3D database quey with left join keeps giving Null values

For a project I am trying to combine fields from two tables from an Autodesk plant 3D database file (piping.dcf). I would like to get fields from EngineeringItems and PnpTegRegistry (Both have PnPID ...
Lebannen's user avatar
2 votes
1 answer
113 views

How to start an interval from the second list in the first list?

wells = [ [ [0, 0.4, 'pop'], [0.4, 0.8, 'sup'], [0.8, 1.2, 'muka'], [1.2, 2, 'sand'], [2, 2.4, 'buz'] ], [ [0, 0.4, 'pop'], [0.4, 1....
Tommy Vercetti's user avatar
0 votes
0 answers
15 views

Integrating Autodesk Plant 3D with Remote SQL Databases

Can Autodesk Plant 3D connect to an external database, such as one hosted on Digital Ocean? I'd like to sync Plant 3D with changes made in a SQL database so that updates there are automatically ...
FunkyPenguin's user avatar
0 votes
0 answers
58 views

How to connect intervals from two lists to each other?

data = [ [ [0, 4, 'soil'], [4, 8, 'clay'], [8, 12, 'silty_clay'], [12, 20, 'sandy_gravel'], [20, 24, 'basalt'] ], [ [0, 4, 'soil'], [...
Tommy Vercetti's user avatar
0 votes
1 answer
28 views

Is there a way to group entities by BLOCK in a dxf file with ezdxf library?

I want to parse and group all entities inside a dxf file by BLOCK and then print each BLOCK's name with the entities that make up that block underneath. Is there a way to do this using the ezdxf ...
bmavroeidis's user avatar
0 votes
0 answers
27 views

Auto-trim functionality in fabric.js

Is there a way to implement auto-trim functionality similar to what they have in AutoCAD? I have an SVG shape added to my fabric.js canvas using fabric.loadSVGfromString(). Then I add a circle over it ...
IoanaB's user avatar
  • 1
0 votes
0 answers
17 views

How to create an attribute table from selected lines on AutoCAD

I would like to know if it is possible/available an extension that makes an attribute table from the selection of lines/polylines on AutoCAD. I make an example: I had some pipelines with different ...
user22952243's user avatar
0 votes
0 answers
66 views

How can we create a python script that will allow us to draw lines at intervals?

In the first picture we have intervals for wells (in the form of numbers), between which various rocks are located (text). If you draw lines along these intervals between two wells, you will get the ...
Tommy Vercetti's user avatar
0 votes
3 answers
69 views

Pull Attribute Value from a block

I'm trying to pull the attribute value out of a block but I'm hitting a bit of a wall. The block's name is fixed (ShtScale), the attribute tag is also fixed (Scale), but I'm not sure what functions I ...
Dustin's user avatar
  • 19
0 votes
1 answer
24 views

How can I create in IronPython a Variant holding an array of doubles to be passed to AutoCad?

I am using IronPython to modify an Autocad file using COM/ActiveX. Reading information from the file is going well but now I want to move a line in the cad file. The Move command is looking for two ...
Michelle's user avatar
0 votes
1 answer
55 views

How to Insert Block in AutoCAD using python

I am encountering a problem while trying to insert blocks in AutoCAD using the Pywin32 library and pyautocad. I've been working on a project that requires automating some tasks in AutoCAD 2024. here ...
akash gohil's user avatar
0 votes
0 answers
23 views

Getting Custom\visibility1 from DXF\LWPolyline using Python and ezdxf

I can read DXF using Python and ezdxf library. I can read the LWPolylines I want to read all custom data fields Custom \ Visibility1, Visibility,Distance1,Angle1 . How can I read those custom data ...
user2514185's user avatar
0 votes
0 answers
36 views

Automating DXF drawings based on dimensions from Excel

I am currently using Solid Edge as a means to create flat pattern dxf drawings of sheet metal parts for plasma/laser cutting. I would like to automate parts, that require very simplistic flat patterns,...
Simo's user avatar
  • 13
0 votes
1 answer
100 views

Convert Threejs quaternion to DXF insert normal and angle

I’m trying to convert a THREE.Object3D quaternion to and insert normal vector and rotation for use in a DXF drawing. Below is partially working code. The insert vector seems to be calculated correctly ...
Immugio's user avatar
  • 526
0 votes
0 answers
19 views

Own export-to-file function in pythonOCC

I am new to pythonOCC and opencascade. I am tasked with writing a custom function that saves a created object to a file. I can't find any information on this topic in both pythonOCC itself and ...
Hi Im Ghost's user avatar
0 votes
1 answer
42 views

pyautocad: COM Error: (-2147352571, 'Type mismatch.', (None, None, None, 0, None))

I have issue with python autocad The error is "COM Error: (-2147352571, 'Type mismatch.', (None, None, None, 0, None))" I request you all to get the solution for this problem My code is: ...
raghu raj's user avatar
0 votes
1 answer
37 views

CAD Shapes in MS-Visio Import

I want to extract all the shapes from a CAD file and use these shapes in MS-Visio with the correct sizing. I couldn't import them perfectly because I had already used add-ons in visio like "...
Sam's user avatar
  • 31
0 votes
0 answers
21 views

Floor Planning API / SDK Recommendations

I'm looking to develop a tool that produces 3D/2D floor plans. I found that Apple has an SDK for a service called roomplan https://developer.apple.com/augmented-reality/roomplan/ I'm looking for ...
Phillip Stack's user avatar
0 votes
0 answers
20 views

transferring drawings from Siemens NX to AutoCAD LT

Here's my problem: For example, when I transfer a square I drew on Siemens NX to AutoCAD LT in dxf format, it outputs 20 lines when it should be 4 lines. In large projects, for example, a drawing with ...
Sloan's user avatar
  • 11
0 votes
1 answer
46 views

How to export data from autodesk into excel

Hello I am recently a new hire at a controls company tasked with autogenerating check sheets from Autocad drawings. What is the best way to go about this? is there an export in Autodesk where I can ...
JaredCusick's user avatar
0 votes
1 answer
56 views

Iterate Autocad block attributes on multiple tabs/layouts/paperspaces python

I'm trying to print the attributes for blocks on multiple layouts: import win32com.client acad = win32com.client.Dispatch("AutoCAD.Application") # iterate through all objects (entities) in ...
Vcrewchief's user avatar
0 votes
0 answers
23 views

Autocad: Showing a layer in viewports but keeping it frozen in modelspace

I am experienced in VectorWorks, but unfortunately not in AUTOCAD. I want to have certain layers in the model space switched off or frozen, while these layers are displayed in certain viewports. In ...
jaysigg's user avatar
  • 201
0 votes
0 answers
35 views

Creating a triangle mesh from 2D input with ezdxf

I am quite new with ezdxf, is it possible to create a triangle mesh (get the vertices and the triangles) with ezdxf, by using 2D input data (LINE objects)? I am currently using the following code to ...
Dog's user avatar
  • 23
1 vote
1 answer
101 views

Multiple statements in a IF function

Part of a custom command I have written I'm trying to have the IF function read thru 3 different statements but I'm finding out its not as straight forward as I initially thought it would be. I ...
Dustin's user avatar
  • 19
0 votes
0 answers
60 views

Is it possible to create a .dwg (AutoCAD file) from a PDF in python?

Extremely rookie coder here, it's not even a real part of my job, but I have some experience from school. I would like to write a script that takes inputs like the pdf file name and scale of the plan, ...
Michael Bidonde's user avatar
1 vote
1 answer
70 views

Problem with function to generate a DXF with a MTEXT

I'm working on an Excel spreadsheet to generate a DXF. So far I've been able to generate a function for lines, polylines, polygons, circles and simple text but I'm struggling to code a MTEXT function. ...
Julián Felipe Herrera Mejía's user avatar
0 votes
0 answers
19 views

How to regen PCG point cloud entity in AutoCAD2021

I have attached a PCG file with acdbAttachPointCloudEntity in AutoCAD2021. But every time when I zoom in and zoom out the point cloud is not getting regenerated, I need to regen it with REGEN command ...
user3500557's user avatar
0 votes
0 answers
40 views

AutoCAD 2018 MEP Batch loading & updating attributes in Title Block AutoLisp

I have a Autolisp program as defined below it works very well. Essentially the program open drawings in a selected folder and opens each drawing in turn updating the attributes in the Title Block. And ...
David's user avatar
  • 11
0 votes
2 answers
56 views

Autolisp - Hide "Open As Read Only" Dialog Box

I'm trying to open up several drawings at the same time, run code on these drawings (skip if read only), and then close the files. The problem I'm running into is that if I open a file that is write ...
G Beck's user avatar
  • 121
0 votes
0 answers
26 views

AutoCAD "DIM" command with no text shown up

I am using the same AutoCAD software in the same PC. I opened a new acadlt.dwt and were able to draw lines with "DIM" command working properly (with text shown up). Then I saved it as a dwg ...
Spring19981's user avatar
0 votes
1 answer
88 views

INSERT Block and Dynamically used content access in DXF with ezdxf

I want to make a table in python like the COUNT LIST command used in the drawing. I'm pulling the number of blocks used in the drawing, but I can't pull the number of dynamic blocks. What I want to do ...
Mehmet Kaplan's user avatar
0 votes
1 answer
65 views

Design Automation for AutoCAD: Command Method Not Getting Called

I am currently working on a project using Design Automation for AutoCAD and I'm encountering an issue where my command method is not getting called. I have a .NET application that defines a command ...
DasEarl's user avatar
  • 231
0 votes
1 answer
115 views

AutoLISP - moving objects on CANNOSCALE variable change

This is a follow-up question to the one I asked a while ago (An AutoCAD LISP routine that moves objects based on the annotative scale). Since that one I've been learning AutoLISP and have come up with ...
Błażej Kolbuszewski's user avatar
1 vote
1 answer
91 views

CAD files like dxf/dwg to WMS

I have a really complicated and complex CAD file that ArcGIS can't show me correctly, is there any service that loads the dwg or dxf file and gives it to me in map or raster form? Something like WMS? ...
רוני אבזוב's user avatar
1 vote
1 answer
157 views

How to set the multiline property for an attribute inside an AutoCAD block definition using C# API?

Following code fragment creates a block definition with attributes. The second parameter contains a dictionary for attribute names and its visisbility. Additionally I want to set the property for ...
user2194358's user avatar
0 votes
2 answers
488 views

An AutoCAD LISP routine that moves objects based on the annotative scale

A little bit of background: I am creating a template for my team of drafters to use. We have a set of commonly used objects (les't call them "markers"), like section markers, leaders, ...
Błażej Kolbuszewski's user avatar
0 votes
0 answers
136 views

AutoCAD VBA - Creating a rectangle with a hatch pattern

I am trying to create a rectangle using Excel data in VBA and then exporting the generated rectangle into AutoCAD. The code below sucessfully creates the rectangle in AutoCAD but keeps giving me "...
Umair Numan's user avatar
0 votes
1 answer
58 views

How do I make a Typed Value for the actual color of an entity in Autocad .NET

I'm trying to select by color using the typed value below in a selection filter: new TypedValue((int)DxfCode.Color, myColor) The problem with this is that some entities have the color values 'byblock'...
damien's user avatar
  • 43
0 votes
0 answers
132 views

AutoCAD Civil3d 2023 C# .net - Property-Set define who has experience with that?

I work with AutoCAD Civil3d 2023. There I have the possibility to define Property-sets. I want to define property-sets with a module because I have too much sets to define manually. Now I try to build ...
Teacooker's user avatar
-1 votes
1 answer
51 views

How to draw roof plan layout without any API

I'm trying to draw roof plan layout with only lines is there any logic or mathematical calculations needed to draw roof plan without any software only with code,below is the example
Veeresh Huvinahalli's user avatar
0 votes
0 answers
30 views

Need help to convert gml child to one autocad polyline with vb.net

Need help to convert next gml child to one autocad polyline with vb.net <imgeo:geometrie2dVegetatieObject><gml:Polygon xmlns:gml="http://www.opengis.net/gml" srsName="urn:ogc:...
Cees-Jan's user avatar
0 votes
1 answer
51 views

How to read AcadDocument in AutoCAD LT 2022?

Trying to migrate from AutoCAD 2020 to AutoCAD LT 2022, but it is unable to read AcadDocument and related functions. It's showing type or namespace could not be found. using Autodesk.AutoCAD....
Yash Ballal's user avatar
0 votes
0 answers
57 views

Why does ObjectDBX.AxDBDocument not release file lock if I add an object to the DWG file?

I have a python program that I am developing using RevitPythonShell and one task that it does is to establish a COM link to an Autocad file using the ObjectDBX.AxDBDocument interface. The program will ...
Michelle's user avatar
0 votes
1 answer
177 views

How to view AutoCAD Format Files like .dxf in a web page

I'm building a project with ASP.NET MVC, one of the features i need is to view .dwg files on my website. So users upload .dxf file to my website and then they can view it inside a popup. The user only ...
Priya's user avatar
  • 3
0 votes
0 answers
28 views

c# com server, interface registration or late binding, both failed

I have this com interface: namespace BuildingApp_Client { [Guid("5B5B731C-B37A-4aa2-8E50-42192BD51B17")] public interface iComObject { void Test(); } [ClassInterface( ClassInterfaceType....
Alireza Ahmadi Rad's user avatar
0 votes
0 answers
118 views

How do I copy a layer or object from an AutoCAD file to another file using the pyautocad library?

I have this code, I want to pull objects into a separate file Code: `import time import os from pyautocad import Autocad, APoint from pyautocad.utils import unformat_mtext, timing from progress.bar ...
WhoXho's user avatar
  • 1
1 vote
1 answer
83 views

When accessing Autocad via COM using IronPython, how can I convert return value into a Python list?

I am using IronPython with the RevitPythonShell to access a DWG file via COM. I have the COM access portion working but I can not figure out how to convert the return value into a Python list. My ...
Michelle's user avatar
0 votes
1 answer
107 views

How to export a Numpy Array as a .tif so that it can be used as surface information in autoCAD

I imported a LiDAR surface file from a .tif and a Shapefile boundary into python. Existing_Surface = 'FilePath/Existing_Surface.tif' Fill_Boundary = 'FilePath/Fill_Boundary_polygon.shp' I trimmed the ...
Patstro's user avatar
  • 69
0 votes
0 answers
26 views

AutoCAD how to import KOP zip file

I am new to AutoCAD ( any CAD ) software I am trying to build a robot drawing using VEX IQ i have downloaded & installed AutoCAD I have downloaded the zip KOP from https://www.autodesk.com/...
Lav's user avatar
  • 1,283
0 votes
0 answers
36 views

Pyautocad how to reset blocks in the ModelSpace

I wrote a code for adding attributes to block in a block collection and then I pass the ATTSYNC command.Then, I realized that sometimes, even if the new attributes are displayed in the block editor, ...
Bire's user avatar
  • 3

1
2 3 4 5
29