DWG & DXF files problem with circles & curves
-
Dear developers,
I have a problem with DWG and DXF files that contain circles or curves. When I import these types of files to SU the circles and curves -that are contained in these files- become semi circles or semi curves, by that I mean they are imported with few number of segments (low resolution) to SU. My questions are:
How can I preserve the original perfect circles and curves quality of my imported DWG or DXF files?
Is there any ruby can help in that regard?
Or is it possible for you to create one for us?
Best regards,
Alshamsi
-
If the arcs/circles are not tied into other geometry you can change their segmentation using Entity Info - enter a new number of segments...
This is a pain if there are lots of them, so I wrote a method+script to do this...Example = change all arcs/circles in selection to be NNN sided
e.g. to smooth selected arcs in imported dxf plan...
large selections with many segments might take a while to run...
select then type into the Ruby Console...
changearcsegments(72)
Put into Plugins folder... -
Tig, didn't think about being tied to other geometry. No way to reset the SU default so that importing dxf will have more segments?
-
@honoluludesktop said:
Tig, didn't think about being tied to other geometry. No way to reset the SU default so that importing dxf will have more segments?
You can't change the import defaults - without remaking the importer !
Once imported arcs/circles are editable if not 'tied'.
If it's 2D they might come in as lines, so 3d is best as arcs/circles come in as that but over-segmented... -
There are autocad lisps that will take circles and break them at every point they meet other geometry. So then when you import it into SU, each section of the circle is its own separate piece, and you can adjust its segments. But that is not always optimal, because sometimes you get tiny circle segments that end up with 24 segments, and other times you have huge segments, which also get the defaut 24 segments on importing them. There is also one that will degrade an autcad circle into a series of segments, which makes it come into SU exactly how you want.
Anyhow, point is, some of this is doable inside of Cad. But unfortunately, it looks like Al-Shasm does not have cad, so these options might not help there.
That is the autocad plugin, quite useful.
-
Yes 'Qbrick' can be useful to split intersecting arcs/circles before import, but you need AutoCAD !
So, importing a 3d dxf and using my tool to adjust the segmentation of any eligible arcs/circles seems the only way otherwise...
Advertisement