autocad

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

自闭症网瘾萝莉.ら 提交于 2020-07-23 06:26: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:25:19
问题 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

Create floor heat map with DWG file for website

别来无恙 提交于 2020-06-13 00:04:03
问题 I would like to create a floor map which show foot print of user or heat map based on user movement on floor. I'm not sure how to create this heat map by using .dwg file. I also need to show this live map on my website which give real time data on map and show where users are more (currently I have only .dwg file which is auto cad file where i have complete drawing of my floor plan). I'm open to use any technology which supports on website and can be used with JavaScript, PHP etc. Is there

Create floor heat map with DWG file for website

Deadly 提交于 2020-06-13 00:00:12
问题 I would like to create a floor map which show foot print of user or heat map based on user movement on floor. I'm not sure how to create this heat map by using .dwg file. I also need to show this live map on my website which give real time data on map and show where users are more (currently I have only .dwg file which is auto cad file where i have complete drawing of my floor plan). I'm open to use any technology which supports on website and can be used with JavaScript, PHP etc. Is there

Batch run autoLISP with Python

佐手、 提交于 2020-04-16 05:30:12
问题 I want to run an autoLISP on multiple CAD files (e.g. all files in a folder). Basically, open file (DWG), run LISP (including, save file) and close. I'm new to LISP, but less new to Python. Is it possible to run the batch with Python? I know how to open a file with a program in Python, but not how to run the LISP. Alternatively, anybody know how to run the batch with LISP? The solutions I've found so far involve third party software and C#. Also, I'm running AutoCAD-MEP 2018 and Python 3.5.

Python and ezdxf copying blocks

末鹿安然 提交于 2020-04-07 09:05:55
问题 I have a dxf file with one or more blocks. How can I use ezdxf to read this dxf and copy a block to another dxf file? This code does not work as expected: dxf = ezdxf.readfile("blocks.dxf") block_test = dxf.blocks.get('b_test') dxf_test = ezdxf.readfile("arc.dxf") msp_test = dxf_test.modelspace() flag = dxf_test.blocks.new(name='FLAG') flag.add_lwpolyline([(0, 0), (0, 5), (4, 3), (0, 3)]) flag.add_circle((0, 0), .4, dxfattribs={'color': 2}) msp_test.add_blockref(block_test, (10.1, 10.1),

Autodesk AutoCAD 2021 for mac(cad 2021) v2021激活版

↘锁芯ラ 提交于 2020-04-07 02:10:08
哪里可以下载最新的AutoCAD 2021 mac版?cad 2021 mac最新版已在MacW.com隆重上线!AutoCAD 2021mac版是一款可以在Macos系统上运行的设计绘图软件,主要用于二维绘图、详细绘制、设计文档和基本三维设计。CAD mac激活版功能强大,通过它您可以进行快速制图,被广泛应用于机械设计、工业制图、工程制图、土木建筑、装饰装潢、服装加工等多个行业领域。 请断开网络连接再进行破解软件!! 地址: https://www.macw.com/mac/1907.html 来源: oschina 链接: https://my.oschina.net/u/4471886/blog/3221689

AutoCAD中的Deep Clone

帅比萌擦擦* 提交于 2020-04-04 15:41:10
AutoCAD中的Deep Clone 所谓Deep clone是指将实体从一个dwg文件拷贝至另一个dwg文件,类似于Ctr+C,CtrV,而普通的实体的Copy()方法,是在单个dwg文件中输入命令'copy', 在Pycomcad中,实现deep colone是通过Document的CopyObjects方法实现的,语法如下: Retval=obj.CopyObjects(objects[,Owner][,IDPairs]) Retval :新创建的复制的对象组,在pycomcad中,返回的是包含复制后的对象的元组。 obj :Document,Database objects :需要被deep clone的对象组(变体),该对象组必须在同一个owner1中,这个owner1就是调用CopyObjects的obj(Document或者Database),在pyccomcad中,可通过VtObject()函数转换。 Owner :可选参数,单个对象(变体),其他文件的ModeSpace。 IDPairs :可选参数。Input:an empty variant,在pycomcad中,为win32com.client.test2=acad.acad.ActiveDocument.CopyObjects(objs,owner,idp). Output:IDPair objects组

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

╄→尐↘猪︶ㄣ 提交于 2020-03-24 00:05:33
问题 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 couple of different methods however I've come to a wall. Here are the options I've tried with explanations below 1) Combine the DLL file and the Revit Button API file into one using classes. ---> Trying this method leaves me with an error when loading

AutoCAD 出现“安全系统(软件锁许可管理器)不起作用或未正确安装”的解决方法

╄→гoц情女王★ 提交于 2020-03-23 15:12:22
问题描述 重新安装了也还是这样,而且第二次打开都跳不出申请码界面就关闭了。 问题原因,初步认为:AutoCAD 在首次弹出申请激活类型的类型时,直接选择了网络激活,而且没有激活成功。再想通过激活码的方式激活,就就不去了。 此时,可以申请试用30天的功能,还有重新进行网络激活。而不能进入通过激活码的方式进行激活,可能为系统的bug。 目前的解决方法 方法1: (1)进入C:\ProgramData\FLEXnet 删除下面的三个文件,以便重启AutoCAD后,得到重新激活的提示。 (2) 重启AutoCAD,再次重新激活即可。 备注:有时候会有效,大多数时候是无效的。 参考文章: AutoCAD 出现“安全系统(软件锁许可管理器)不起作用或未正确安装”的解决方法 来源: https://www.cnblogs.com/arxive/p/6873015.html