<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: easier way to flip arc normal in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11724198#M43223</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17997"&gt;@GilesPhillips&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.... arcs with a normal that is inverted (i.e. normal Z is -1).&amp;nbsp; .... impossible to join these arcs into polylines without flipping....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How about this?&amp;nbsp; It checks each Arc among the selection for a Z coordinate of its extrusion direction of -1, and if that's the value, it spins it around 180° about the axis from its center to its midpoint, preserving non-zero elevations.&amp;nbsp; [lightly tested]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(vl-load-com)
(defun C:ANDU ; = Arc Normal Down to Up
  (/ ss n arc)
  (if (setq ss (ssget '((0 . "ARC"))))
    (repeat (setq n (sslength ss)); then
      (setq arc (ssname ss (setq n (1- n))))
      (if (equal (cadddr (assoc 210 (entget arc))) -1.0 1e-2); downward normal?
        (command ; then
          "_.ucs" "_zaxis"
          "_non" (getpropertyvalue arc "Center")
          "_non" (vlax-curve-getPointAtDist arc (/ (getpropertyvalue arc "Length") 2))
          "_.rotate" arc "" "_non" "0,0" "180"
          "_.ucs" "_previous"
        ); command
      ); if
    ); repeat
  ); if
  (prin1)
)&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 02 Feb 2023 13:19:48 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2023-02-02T13:19:48Z</dc:date>
    <item>
      <title>easier way to flip arc normal</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723697#M43209</link>
      <description>&lt;P&gt;It turns out that whilst the exportlayout command is great, its output frequently produces arcs with a normal that is inverted (i.e. normal Z is -1).&amp;nbsp; this makes it impossible to join these arcs into polylines without flipping (though they will join into splines).&amp;nbsp; I currently do this by moving the view into an isometric and using 3d rotate about the x or y axis then reposition if necessary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a bit of a chore.&amp;nbsp; is there a better way of doing it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess if the Autodesk developers team feel like fixing this 'feature' that would be great too &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Running fully up to date Acad 2023)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;G&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 09:32:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723697#M43209</guid>
      <dc:creator>GilesPhillips</dc:creator>
      <dc:date>2023-02-02T09:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: easier way to flip arc normal</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723708#M43210</link>
      <description>&lt;P&gt;Are they flat? If so, you can select them all and use FLATTEN to flip them.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 09:42:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723708#M43210</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2023-02-02T09:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: easier way to flip arc normal</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723724#M43211</link>
      <description>&lt;P&gt;yep, they're flat and coplanar with all other elements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can also successfully join into polylines if I flip the ucs 180deg about the x or y axis. however I'd prefer to avoid this as these files are exported to 3rd party software which may not react favourably to a 'back to front' polyline.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 09:46:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723724#M43211</guid>
      <dc:creator>GilesPhillips</dc:creator>
      <dc:date>2023-02-02T09:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: easier way to flip arc normal</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723771#M43212</link>
      <description>&lt;P&gt;OK, then again, try to use the FLATTEN.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 10:07:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723771#M43212</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2023-02-02T10:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: easier way to flip arc normal</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723779#M43213</link>
      <description>&lt;P&gt;flatten makes no difference &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 10:10:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723779#M43213</guid>
      <dc:creator>GilesPhillips</dc:creator>
      <dc:date>2023-02-02T10:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: easier way to flip arc normal</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723783#M43214</link>
      <description>&lt;P&gt;Well, then I misunderstood how it's flipped. Would you post a dwg sample of one of those?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 10:13:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723783#M43214</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2023-02-02T10:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: easier way to flip arc normal</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723808#M43215</link>
      <description>&lt;P&gt;Mirror3d is pretty easy.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Command: LIST

Select objects: 1 found

Select objects:

                  ARC       Layer: "0"
                            Space: Model space
                   Handle = 1ee
            center point, X=  10.9360  Y=   4.0019  Z=   0.0000
            radius    0.6121
Extrusion direction relative to UCS:
                   X=   0.0000  Y=   0.0000  Z=  -1.0000
            length    1.6748
             total angle    157

Command: MIRROR3D

Select objects: 1 found

Select objects:

Specify first point of mirror plane (3 points) or
[Object/Last/Zaxis/View/XY/YZ/ZX/3points] &amp;lt;3points&amp;gt;: xy
Specify point on XY plane &amp;lt;0,0,0&amp;gt;:

Delete source objects? [Yes/No] &amp;lt;N&amp;gt;: y

Command: LIST

Select objects: 1 found

Select objects:

                  ARC       Layer: "0"
                            Space: Model space
                   Handle = 1ee
            center point, X=  10.9360  Y=   4.0019  Z=   0.0000
            radius    0.6121
             start angle    309
               end angle    106
            length    1.6748&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Feb 2023 10:27:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723808#M43215</guid>
      <dc:creator>SEANT61</dc:creator>
      <dc:date>2023-02-02T10:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: easier way to flip arc normal</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723816#M43216</link>
      <description>&lt;P&gt;Attached are 2 files. (I've deleted some irrelevant detail)&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the 2d file you'll need to explode the blocks first, then you'l l see each and every arc appears to have its normal flipped.&amp;nbsp; I want to join these segments to adjoining lines to present a series of closed polylines for our fabricators to cut on their CNC cutters.&amp;nbsp; &amp;nbsp;I've had plenty of grumbling in the past about anomalous entities in CAD files upsetting the software, so I try to present them with files as simple as possible with all blocks exploded, closed polylines, etc..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file is produced from using the exportlayout command on a file (attached, called 3d) with 3d views of autocad native solids.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 10:31:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723816#M43216</guid>
      <dc:creator>GilesPhillips</dc:creator>
      <dc:date>2023-02-02T10:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: easier way to flip arc normal</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723854#M43217</link>
      <description>&lt;P&gt;ooh, mirror3d, that looks cool will try that for the interim.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bonus points figuring out a way to stop the arcs being inverted in the first place &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 10:43:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723854#M43217</guid>
      <dc:creator>GilesPhillips</dc:creator>
      <dc:date>2023-02-02T10:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: easier way to flip arc normal</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723856#M43218</link>
      <description>&lt;P&gt;Must be missing something.&amp;nbsp;FLATTEN works flawlessly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can either select all blocks, flatten, explode. Or Explode, select all arcs, flatten.&lt;/P&gt;
&lt;P&gt;Both workflows result in arcs with +1 Z.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 10:59:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723856#M43218</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2023-02-02T10:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: easier way to flip arc normal</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723879#M43219</link>
      <description>&lt;P&gt;How odd.&lt;/P&gt;&lt;P&gt;I'm going to have to review the differences in the source files again perhaps because it definitely wasn't doing it yesterday..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;oh well - many thanks for your input on this.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 10:56:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723879#M43219</guid>
      <dc:creator>GilesPhillips</dc:creator>
      <dc:date>2023-02-02T10:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: easier way to flip arc normal</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723880#M43220</link>
      <description>&lt;P&gt;Indeed, flatten does work here as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Leave "Remove hidden lines? &amp;lt;No&amp;gt;:" as no.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 10:57:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723880#M43220</guid>
      <dc:creator>SEANT61</dc:creator>
      <dc:date>2023-02-02T10:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: easier way to flip arc normal</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723904#M43221</link>
      <description>Maybe that was the bit I did wrong..</description>
      <pubDate>Thu, 02 Feb 2023 11:08:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11723904#M43221</guid>
      <dc:creator>GilesPhillips</dc:creator>
      <dc:date>2023-02-02T11:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: easier way to flip arc normal</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11724126#M43222</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;....&amp;nbsp;FLATTEN works flawlessly.&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;... except that it &lt;STRONG&gt;&lt;EM&gt;moves those Arcs that are not a Z=0 in elevation to there&lt;/EM&gt;&lt;/STRONG&gt;.&amp;nbsp; Surely that is not wanted.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 12:52:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11724126#M43222</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-02-02T12:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: easier way to flip arc normal</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11724198#M43223</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17997"&gt;@GilesPhillips&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.... arcs with a normal that is inverted (i.e. normal Z is -1).&amp;nbsp; .... impossible to join these arcs into polylines without flipping....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How about this?&amp;nbsp; It checks each Arc among the selection for a Z coordinate of its extrusion direction of -1, and if that's the value, it spins it around 180° about the axis from its center to its midpoint, preserving non-zero elevations.&amp;nbsp; [lightly tested]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(vl-load-com)
(defun C:ANDU ; = Arc Normal Down to Up
  (/ ss n arc)
  (if (setq ss (ssget '((0 . "ARC"))))
    (repeat (setq n (sslength ss)); then
      (setq arc (ssname ss (setq n (1- n))))
      (if (equal (cadddr (assoc 210 (entget arc))) -1.0 1e-2); downward normal?
        (command ; then
          "_.ucs" "_zaxis"
          "_non" (getpropertyvalue arc "Center")
          "_non" (vlax-curve-getPointAtDist arc (/ (getpropertyvalue arc "Length") 2))
          "_.rotate" arc "" "_non" "0,0" "180"
          "_.ucs" "_previous"
        ); command
      ); if
    ); repeat
  ); if
  (prin1)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Feb 2023 13:19:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11724198#M43223</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-02-02T13:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: easier way to flip arc normal</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11727092#M43224</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17997"&gt;@GilesPhillips&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;It turns out that whilst the exportlayout command is great, its output frequently produces arcs with a normal that is inverted (i.e. normal Z is -1).&amp;nbsp; this makes it impossible to join these arcs into polylines without flipping (though they will join into splines).&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Maybe a different way of exporting will prevent this from happening.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 11:38:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11727092#M43224</guid>
      <dc:creator>RobDraw</dc:creator>
      <dc:date>2023-02-03T11:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: easier way to flip arc normal</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11727106#M43225</link>
      <description>&lt;P&gt;Possibly, however the exportlayout is a great way of quickly getting flat geometry from occasionally complex 3d geometry that's already been arranged in paperspace using 3d views.&amp;nbsp; Flatshot is okay for 'raw' geometry, but not so much for curated geometry with context.&amp;nbsp; As I'm creating the paperspace layout for other purposes, it makes sense to use exportlayout to generate my 2d stuff.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 11:45:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11727106#M43225</guid>
      <dc:creator>GilesPhillips</dc:creator>
      <dc:date>2023-02-03T11:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: easier way to flip arc normal</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11727156#M43226</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17997"&gt;@GilesPhillips&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;it makes sense to use exportlayout to generate my 2d stuff.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Until the output is undesirable. Exploring other options may reveal a better solution. Just saying.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 12:07:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/easier-way-to-flip-arc-normal/m-p/11727156#M43226</guid>
      <dc:creator>RobDraw</dc:creator>
      <dc:date>2023-02-03T12:07:11Z</dc:date>
    </item>
  </channel>
</rss>

