sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    DWG & DXF files problem with circles & curves

    Scheduled Pinned Locked Moved Developers' Forum
    6 Posts 4 Posters 3.4k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      alshamsi
      last edited by Gábor

      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

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • honoluludesktopH Offline
          honoluludesktop
          last edited by

          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?

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            @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... 😒

            TIG

            1 Reply Last reply Reply Quote 0
            • Chris FullmerC Offline
              Chris Fullmer
              last edited by

              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.

              Lately you've been tan, suspicious for the winter.
              All my Plugins I've written

              1 Reply Last reply Reply Quote 0
              • TIGT Offline
                TIG Moderator
                last edited by

                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...

                TIG

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Buy SketchPlus
                Buy SUbD
                Buy WrapR
                Buy eBook
                Buy Modelur
                Buy Vertex Tools
                Buy SketchCuisine
                Buy FormFonts

                Advertisement