<?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 autodim-dimangular-problem in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodim-dimangular-problem/m-p/12798518#M13444</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have problem with "dimangular" auto dimensioning...&lt;/P&gt;&lt;P&gt;Have a look at picture...&lt;/P&gt;&lt;P&gt;I wrote "autodim.lsp" posted here : &lt;A href="https://www.cadtutor.net/forum/files/file/54-autodimlsp/" target="_blank" rel="noopener"&gt;https://www.cadtutor.net/forum/files/file/54-autodimlsp/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and when I tried to apply it on closed straight-arced lwpolyline, dimangular almost finished correctly the task, but on one portion of arced segment it didn't measured angle bigged than 180 degree...&lt;/P&gt;&lt;P&gt;My question is, can this be fixed to work as desired... I'll attach picture and *.DWG... *.lsp can be downloaded from link I provided at cadtutor download section...&lt;/P&gt;&lt;P&gt;Thanks, M.R.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="autodim-dimang-problem.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1367525iD46D7A03D96D10DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="autodim-dimang-problem.png" alt="autodim-dimang-problem.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 26 May 2024 14:44:30 GMT</pubDate>
    <dc:creator>marko_ribar</dc:creator>
    <dc:date>2024-05-26T14:44:30Z</dc:date>
    <item>
      <title>autodim-dimangular-problem</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodim-dimangular-problem/m-p/12798518#M13444</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have problem with "dimangular" auto dimensioning...&lt;/P&gt;&lt;P&gt;Have a look at picture...&lt;/P&gt;&lt;P&gt;I wrote "autodim.lsp" posted here : &lt;A href="https://www.cadtutor.net/forum/files/file/54-autodimlsp/" target="_blank" rel="noopener"&gt;https://www.cadtutor.net/forum/files/file/54-autodimlsp/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and when I tried to apply it on closed straight-arced lwpolyline, dimangular almost finished correctly the task, but on one portion of arced segment it didn't measured angle bigged than 180 degree...&lt;/P&gt;&lt;P&gt;My question is, can this be fixed to work as desired... I'll attach picture and *.DWG... *.lsp can be downloaded from link I provided at cadtutor download section...&lt;/P&gt;&lt;P&gt;Thanks, M.R.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="autodim-dimang-problem.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1367525iD46D7A03D96D10DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="autodim-dimang-problem.png" alt="autodim-dimang-problem.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 May 2024 14:44:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodim-dimangular-problem/m-p/12798518#M13444</guid>
      <dc:creator>marko_ribar</dc:creator>
      <dc:date>2024-05-26T14:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: autodim-dimangular-problem</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodim-dimangular-problem/m-p/12798644#M13445</link>
      <description>&lt;P&gt;I haven't noticed, but on 2 places it didn't processed dimangular... I managed to add those manually, but now I have overlapping of dimradial with dimangular... That one with bigger angle than 180 degree I somehow manually managed to fix... So, all I can tell is that my code is buggy... Can someone see and try to fix lacks... I'll post here another picture and corresponding *.dwg...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="autodim-dimang-problem-another.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1367539iA4CD82A2E33B0782/image-size/large?v=v2&amp;amp;px=999" role="button" title="autodim-dimang-problem-another.png" alt="autodim-dimang-problem-another.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 26 May 2024 17:07:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodim-dimangular-problem/m-p/12798644#M13445</guid>
      <dc:creator>marko_ribar</dc:creator>
      <dc:date>2024-05-26T17:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: autodim-dimangular-problem</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodim-dimangular-problem/m-p/12798666#M13446</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/940934"&gt;@marko_ribar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to change your method from...&lt;/P&gt;&lt;P&gt;(vla-adddimangular ...)&lt;/P&gt;&lt;P&gt;...to...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(vla-adddim3pointangular ...)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[you can keep your same input parameters]&lt;/P&gt;&lt;P&gt;It's a different method for adding the angular type of dimension.&lt;/P&gt;&lt;P&gt;Reference here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/ACDLT/2025/ENU/?guid=GUID-16DBF5D3-5D7B-4302-9363-43827C9ACFDF" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/ACDLT/2025/ENU/?guid=GUID-16DBF5D3-5D7B-4302-9363-43827C9ACFDF&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Sun, 26 May 2024 17:26:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodim-dimangular-problem/m-p/12798666#M13446</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2024-05-26T17:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: autodim-dimangular-problem</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodim-dimangular-problem/m-p/12798675#M13447</link>
      <description>&lt;P&gt;Also,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run your code, my linear dims show up INSIDE the shape, where your show up outside. Not sure if that's worth looking into or not, but cool routine!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1367547i1FFAFCB0D33263AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 26 May 2024 17:35:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodim-dimangular-problem/m-p/12798675#M13447</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2024-05-26T17:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: autodim-dimangular-problem</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodim-dimangular-problem/m-p/12798682#M13448</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/940934"&gt;@marko_ribar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To your Second issue, you need to add a dimangular dimension inside the "true" condition of your IF statement:&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;        (if (&amp;lt; (distance c p1) (distance c (trans (vlax-curve-getclosestpointto lwi p1) 0 1)))
          (progn
            (vla-adddimarc spc (vlax-3d-point c) (vlax-3d-point p1) (vlax-3d-point p3) (vlax-3d-point (polar p2 (angle p2 c) d)))
            ;; vvv You are missing this line of code vvv
            (setq dimang (vla-adddim3pointangular spc (vlax-3d-point c) (vlax-3d-point p1) (vlax-3d-point p3) (vlax-3d-point (polar p2 (angle p2 c) (* 3.0 d)))))
            ;; ^^^ You are missing this line of code ^^^
            (setq dimrad (vla-adddimradial spc (vlax-3d-point c) (vlax-3d-point pp) (* 2.0 d)))
            (vla-put-textposition dimrad (vlax-3d-point (polar pp (angle pp c) (* 2.0 d))))
          )
          (progn
            (vla-adddimarc spc (vlax-3d-point c) (vlax-3d-point p1) (vlax-3d-point p3) (vlax-3d-point (polar p2 (angle c p2) d)))
            (setq dimang (vla-adddim3pointangular spc (vlax-3d-point c) (vlax-3d-point p1) (vlax-3d-point p3) (vlax-3d-point (polar p2 (angle c p2) (* 3.0 d)))))
            (setq dimrad (vla-adddimradial spc (vlax-3d-point c) (vlax-3d-point pp) (* 5.0 d)))
            (vla-put-textposition dimrad (vlax-3d-point (polar pp (angle c pp) (* 5.0 d))))
          )
        )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 May 2024 17:42:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodim-dimangular-problem/m-p/12798682#M13448</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2024-05-26T17:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: autodim-dimangular-problem</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodim-dimangular-problem/m-p/12798708#M13449</link>
      <description>&lt;P&gt;I haven't tested it yet, but I believe you are right... So I copied code snippet in my routine and reuploaded it at cadtutor...&lt;/P&gt;</description>
      <pubDate>Sun, 26 May 2024 18:25:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodim-dimangular-problem/m-p/12798708#M13449</guid>
      <dc:creator>marko_ribar</dc:creator>
      <dc:date>2024-05-26T18:25:13Z</dc:date>
    </item>
  </channel>
</rss>

