algorithmic modeling for Rhino
Hi Guys,
I am trying to bake multiple geometries organized in different layers with GH (works fine) and in the same flow export this as dwg or dxf to be used in autocad. For this last part I cannot seem to find a working solutution. Doing this by hand is not a option, as I need to export up to 500+ dwg files, so any kind of automation is usefull.
So in essence I need to export 2 layers, with each layer containing a couple of crv's to DWG. The dwg should include this layers structure when opened
In the forum I found two components that should have this kind of functionality, but neither seem to work or is still supported.
Are there alternatives that are being used by the community that i am aware of? As this seem to me has been of use to more people
Tags:
Hi Ezhil,
Two things:
layerNames input is actually a so called full path property of a layer. Rhino's full paths can include a name of the parent layer also.
For example, a full path of a sub-layer A-MP-SITE-PARC is:
SITE PARCEL::A-MP-SITE-PARC
Notice the "::" which separates the parent layer SITE PARCEL and its sublayer A-MP-SITE-PARC.
Also do not put the filePath input in double quotes (or single quotes).
Check the attached file below.
and how can I select from a curve component only these curves i would like to export?
for example, i have a curve component with 3 curves, I would like to export these 3 curves into an only one dxf file with diferent layers.
Is that possible?
My reply here is relevant, about issuing native Rhino command lines from within Python, vastly simplified to offer you an example:
http://www.grasshopper3d.com/forum/topics/batch-exporting-stl-obj-d...
With direct Rhino commands, you can work out your detailed command sequence manually, then with some trial and error until it works from Python in Grasshopper, you have a program.
The underscore before Rhino commands merely forces English language, so I leave it out.
This question might/not suit in this blog.
I work in Meters/MM. But whenever I export Rhino to CAD it export as 'Inches'. I need to manually change in CAD file as meters/mm 'without scaling the model'.
Is it a bug or how can i work around this?
Thanks in advance.
I read somewhere that there is no support for specifying units in the DXF file format. And DWG support is often based on reverse engineering, with spotty support for exotic things like SI units.
I think I'll make a button for changing the units in AutoCAD "without scaling the model" and sell it for €1, €2 with batch processing ;-)
It works well. I think there is a limit in amount of content. I try to load 1000s curve, its failing to load.
But it works too good with relative data, thanks a lot for your time..
following your steps I added Hatch & dim and it worked well. Thanks again..
Hi Ezhil,
Double click on gh python component and find the line:
done = rs.Command(commandString)
replace it with:
done = rs.Command(commandString, False)
Try exporting your 1000 curves now, and let me know if it works, or not.
hi djordje,
thanks for the great tool, have been playing around with it a bit.
i am trying to export different geometries on different layers to a single dxf file, keeping the layer properties.
all works well, i just have the same problem as ezhil, if the number of curves are to high, export crashes. i tried replacing the code like you advised, but the results are the same.
can you shed some light on this?
Hi Massimo,
I understand this may not be what you need, but can you at least try to delete some of the geometry which lies on those different layers. Basically lower the number of geometry that needs to be exported to that single .dxf file. And then try to run my component.
What happens? Does Rhino crash again?
Okay. So when you do not delete anything, then component just gets stuck (loading for an hour, or two), or Can you explain exactly what you need to do?
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by