dxf

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

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

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

How to apply Grade Rule Table to DXF?

你说的曾经没有我的故事 提交于 2019-12-14 04:07:11
问题 I have a rule associated with dxf file, the fragment is following: GRADE RULE TABLE: 11111 NUMBER OF SIZES: 2 SIZE LIST: M L SAMPLE SIZE: M RULE: DELTA 1 0.000, -0.000 100.000, -0.000 RULE: DELTA 2 0.000, -0.000 100.000, -100.000 dxf file content like # 1 、 # 2 is associated with the grade rule table file, the point before # is key points (which control the pattern shape), and there are many polygon vertex in the dxf file, so how to connect polygon vertex and key points ,what is the

Save dxf file in Java

被刻印的时光 ゝ 提交于 2019-12-13 18:28:18
问题 I am hoping that someone can help me here. I am using the yCad library to read a number of dxf files and output a composite model, to dxf format. The initial process of reading the file is complete. However, when I save the file it is saved without the model. Here is an example of the code used to save the dxf file public static boolean SaveDxf(String outputPath, String fileName, Yxxf model) { try { model.iohandler = new YutilIOHandler(); model.ioname = new YutilIOHandlerName(fileName); model

How can I render a dxf file with Sphere in OpenSCAD

旧巷老猫 提交于 2019-12-11 15:27:30
问题 I have a rendering problem about importing dxf file. Rendering success: Use linear_extrude() for a dxf file and display a sphere. Only use rotate_extrude() for a dxf file. Rendering fail: Use rotate_extrude() for a dxf file and display a sphere. Here is my source code: module loadFile() { rotate_extrude() import("import_exercise.dxf"); } module loadSphere() { translate([0,0,-30]) sphere(10); } loadFile(); loadSphere(); Here is the error message: ERROR: CGAL error in CGAL_Nef_polyhedron3():

DXF image entity group code explanation

ぃ、小莉子 提交于 2019-12-11 03:48:42
问题 I'm working on a Delphi class to import/export some kind of entities from DXF file. I'd like add support for Image entity but I don't understand some group codes. I'm using official DXF guide reference (2002): http://www.autodesk.com/techpubs/autocad/dxf/dxf2002.pdf I have understand the group codes 10, 20 and 30, there are the "Insertion point" and work like any other entities. The problem are group codes: -11, 21 and 31: U-vector of a single pixel (points along the visual bottom of the

Convert DXF to SVG in Inkscape CLI while keeping layers

坚强是说给别人听的谎言 提交于 2019-12-10 09:39:58
问题 In the Inkscape GUI, there is this awesome feature, that lets me 'save as -> file type -> layers as individual SVGs' (the last one at the bottom). Is there any way of doing the same thing from the CLI? What I have so far: inkscape -z -l output.svg input.dxf This converts the 'input.dxf' to 'output.svg', but I can't find the layers within this SVG. 回答1: With help of the Inkscape community (special thanks to @rindolf), I could come up with a solution. Prerequisites Python 2.7 (It won't work on

YCAD Library Usage

江枫思渺然 提交于 2019-12-08 07:19:27
问题 I started using the YCAD Library. The problem is that I cannot find any usage instructions and I am kind of confused because I have no idea how to use it. I am hoping that somebody here used it before or is using it now so he/she can give me some tips how to use the library. Thank you in advance. PS. One of the requirements for the project is to develop it in Java . I know that there are some good libraries in C#, C++, etc. but I need to do it in Java . Best regards, Dimitar Georgiev 回答1:

Convert DXF to SVG in Inkscape CLI while keeping layers

心不动则不痛 提交于 2019-12-06 03:32:04
In the Inkscape GUI, there is this awesome feature, that lets me 'save as -> file type -> layers as individual SVGs' (the last one at the bottom). Is there any way of doing the same thing from the CLI? What I have so far: inkscape -z -l output.svg input.dxf This converts the 'input.dxf' to 'output.svg', but I can't find the layers within this SVG. With help of the Inkscape community (special thanks to @rindolf), I could come up with a solution. Prerequisites Python 2.7 (It won't work on newer versions) lxml ("pip install lxml") Adjust Inkscape Change 'GROUP = "{ http://www.w3.org/2000/svg }g"'