DWG & DXF files problem with circles & curves

DWG & DXF files problem with circles & curves

Postby alshamsi » Wed Apr 28, 2010 9:03 pm

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
0

alshamsi 
 

Re: DWG & DXF files problem with circles & curves

Postby TIG » Wed Apr 28, 2010 9:19 pm

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)
ArcCurve-set_segments=.rb
0
TIG
User avatar
TIG 
Global Moderator
 

Re: DWG & DXF files problem with circles & curves

Postby honoluludesktop » Wed Apr 28, 2010 9:26 pm

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?
0
User avatar
honoluludesktop 
In Remembrance
 

Re: DWG & DXF files problem with circles & curves

Postby TIG » Wed Apr 28, 2010 9:55 pm

honoluludesktop wrote: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... :roll:
0
TIG
User avatar
TIG 
Global Moderator
 

Re: DWG & DXF files problem with circles & curves

Postby Chris Fullmer » Wed Apr 28, 2010 10:12 pm

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.

http://www.synapse-informatique.com/qbrick_en.htm

That is the autocad plugin, quite useful.
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: DWG & DXF files problem with circles & curves

Postby TIG » Thu Apr 29, 2010 9:34 am

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...
0
TIG
User avatar
TIG 
Global Moderator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Developers' Forum

Who is online

Users browsing this forum: No registered users and 8 guests