autocad

AutoCAD Plugin Development by Example

丶灬走出姿态 提交于 2019-12-24 02:13:35
问题 I am interested in developing an AutoCAD plugin and am trying to understand the relationships between several different types of AutoCAD plugin files: Managed DLLs that ship with AutoCAD plugins ARX files that ship with AutoCAD plugins CUIX files that ship with AutoCAD plugins From what I can tell these three files are all inter-related and work together to initialize and load a plugin, I'm just not seeing the forest through the trees as to what information each file type contains, which

Select whole drawing in AutoCAD without prompting user

自闭症网瘾萝莉.ら 提交于 2019-12-24 00:33:26
问题 I'm trying to plot using "Window" as PlotType in AutoCad. This is the code: ViewBorder border = new ViewBorder(); Point3d first = new Point3d(border.Width, 0, 0); Point3d second = new Point3d(border.Height, 0, 0); Extents2d window = TransformCoordinates(first, second); psv.SetPlotWindowArea(ps, window); psv.SetPlotType(ps, Autodesk.AutoCAD.DatabaseServices.PlotType.Extents); The TransformCoordinates method only receives two Point3d arguments (x and y) and transform them from UCS to DCS

ObjectARX, RealDWG or Teigha? [closed]

淺唱寂寞╮ 提交于 2019-12-23 17:10:05
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year . I'm planning on developing a piece of software that reads & manipulates data in a .dwg file. Instead of writing my own library that handles the 'reading' of the data file, I've decided to use either RealDWG or Teigha, however I'm struggling to understand exactly how they work.

How to combine 2 entities as 1 in Autocad .net

不羁的心 提交于 2019-12-23 04:49:32
问题 I'm making an autocad plugin and i want to create a new entity that is a combination of a line and the text.If i select the line the text is selected and backwords when i delete the line delete the text etc etc.How to treat them as one object referencing eachother?Is this possible? 回答1: I recommend using groups. Below is a link on how to access groups, I'm sure that site has more information on creating groups. Users can control whether objects are selected with the group based on the system

python pyautocad,how to contruct an objectlist for COM

只愿长相守 提交于 2019-12-22 18:05:12
问题 This is an real project write by VBA before. I want change it to python for data processing is heavely. And, use 'ActiveX Automation scripts for AutoCAD with Python' method. code is below.My question is, how to contruct an object list for AddRegion? Maybe comtypes have some topic about VARINT. I really have no experience about COM and so on... # -*- coding: utf-8 -*- from pyautocad import Autocad, APoint, aDouble acad = Autocad(False, True) acad.prompt("Hello, Autocad from Python\n") print

DXF Parser : Ellipses angle direction

时光总嘲笑我的痴心妄想 提交于 2019-12-21 07:02:34
问题 I wrote my own ASCII DXF file parser and I encounter a problem with ellipses in some particular documents. It seems that there is no "Group Code" defining the angle direction (Clockwise or Counterclockwise) for Start and End Parameters. In most case, it's counterclockwise, but not in ALL cases... To simplify, here is a visual exemple: As you can see, the first one has a start angle of 135, and the second one a start angle of 45... But, the ellipses seems to be identical (half-circle, on the

How to Show/View or Read .dwg files on browser

本秂侑毒 提交于 2019-12-21 03:18:22
问题 How to Show or Read .dwg files on browser without using any software means using PHP, jQuery, Javascript or any other programming language. For this I have gone through https://developer.autodesk.com and created an app with Client ID and Client Secret, Also created index.html file. But after that i get stuck in finding next movement for getting required "Model Derivative API". So Please guide me for the same. Thanks for giving your precious response. <!-- The Viewer CSS --> <link rel=

Retrieve output parameters from an AutoCAD API method in python

回眸只為那壹抹淺笑 提交于 2019-12-20 07:16:22
问题 I'm trying to retrieve 2 output Arrays from an XRecord in AutoCAD 2016 using python 2.7, with comtypes imported, the first array is an array of integers (DXF Group Codes) and the second array is an array of variants (the values of XRecord). The opposite way of what this question seeks to The method of interest is GetXRecordData , which (according to AutoCAD's documentation) if successful returns None , and only accepts 2 output arguments . when I try to retrieve it with code like DxfGrCd = []

What is the order of load AutoCAD plugins?

我的梦境 提交于 2019-12-19 04:04:35
问题 There are few ways of automatic load applications - plugins when AutoCAD starts. I know those: startup suite - attached by GUI List item %appdata%....\support\zwcad2018.lsp ( I use ZWCAD, maybe in Acad, there is another path. The long time ago when I worked on Acad it was acad.lsp, but that was times before Windows UAC feature). *.mnl loaded while corresponding *.mnu is loaded ( old fashion way, but is ZWCAD possible) what about Acad? On-demand loading: HKEY_CURRENT_USER\Software\ZWSOFT\ZWCAD

AutoCAD library in Java to read .dwg files?

最后都变了- 提交于 2019-12-18 03:45:37
问题 Is there any open-source Java or JavaScript library available to parse .dwg files and get the objects from it. I would like to extract data from a table of text for my project. It seems that the AutoCAD developer community prefers .NET and C/C++ over JAVA. The only free alternative I found is by converting .dwg to .dxf first and using the Kabeja lib to read from it. 回答1: The Teigha library from opendesignaliance has C++, C#, and Java interface. Teigha is the alternative of RealDWG and it is