autocad

pyautocad gives ungooglable error

我的未来我决定 提交于 2020-12-26 18:50:39
问题 OSError: [WinError -2147221005] Invalid class string full traceback During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:/Users/MONSTR/Desktop/Ванжые/Yusuf bey/GUI/test1.py", line 10, in <module> for text in acad.iter_objects('Text'): File "C:\Users\MONSTR\AppData\Local\Programs\Python\Python36\lib\site-packages\pyautocad\api.py", line 111, in iter_objects block = self.doc.ActiveLayout.Block File "C:\Users\MONSTR\AppData\Local\Programs

How to extract all coordinates from a dxf file

坚强是说给别人听的谎言 提交于 2020-08-10 19:17:44
问题 Ive got a dxf file https://filebin.net/7l8izrv2js7doicc/5holes-8x8.dxf?t=9ro7k928 (download and name extension as .dxf) Im able to parse it for lines and all but I want to extract all coordinates now. The purpose is that if I get all the coordinates then Id be able to create a bounding box for all these coordinates. Since the drawing has curves and lines I dont know how to do it for curves etc. ===MY PARTIAL CODE TO DISPLAY LINES & pull out start & end point of lines==== flist=open("test2.dxf

How to extract all coordinates from a dxf file

老子叫甜甜 提交于 2020-08-10 19:17:04
问题 Ive got a dxf file https://filebin.net/7l8izrv2js7doicc/5holes-8x8.dxf?t=9ro7k928 (download and name extension as .dxf) Im able to parse it for lines and all but I want to extract all coordinates now. The purpose is that if I get all the coordinates then Id be able to create a bounding box for all these coordinates. Since the drawing has curves and lines I dont know how to do it for curves etc. ===MY PARTIAL CODE TO DISPLAY LINES & pull out start & end point of lines==== flist=open("test2.dxf

how to i get the coordinates of a block-reference in autocad-VBA?

五迷三道 提交于 2020-07-23 06:27:16
问题 I am trying to get the coordinates of an autocad blockreference. With the code below I can pick a blockreference in autocad, but it always displays (0,0,0) as insertionpoint... Is the insertionpoint the actual coordinates of a block, or not? Sub GetInsertpoint() Dim oEnt As AcadEntity Dim varPick As Variant Dim brBref As AcadBlockReference Dim arAttR As AcadAttributeReference Dim varAt As Variant Dim i As Double ThisDrawing.Utility.GetEntity oEnt, varPick, vbCr & "Get the block" If TypeOf

how to i get the coordinates of a block-reference in autocad-VBA?

久未见 提交于 2020-07-23 06:26:32
问题 I am trying to get the coordinates of an autocad blockreference. With the code below I can pick a blockreference in autocad, but it always displays (0,0,0) as insertionpoint... Is the insertionpoint the actual coordinates of a block, or not? Sub GetInsertpoint() Dim oEnt As AcadEntity Dim varPick As Variant Dim brBref As AcadBlockReference Dim arAttR As AcadAttributeReference Dim varAt As Variant Dim i As Double ThisDrawing.Utility.GetEntity oEnt, varPick, vbCr & "Get the block" If TypeOf