<?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: Getting An Input Arc in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/getting-an-input-arc/m-p/12582348#M1077</link>
    <description>&lt;P&gt;This is what I had in mind for a draw jig,&amp;nbsp; just draw the primitives instead of creating entities&lt;/P&gt;&lt;P&gt;the command is doit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2024 05:30:52 GMT</pubDate>
    <dc:creator>daniel_cadext</dc:creator>
    <dc:date>2024-02-26T05:30:52Z</dc:date>
    <item>
      <title>Getting An Input Arc</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/getting-an-input-arc/m-p/12577512#M1073</link>
      <description>&lt;P&gt;For certain creation modes of my custom object I need a user-input arc or circle. Ideally I'd like to see these as they are being input by the user. My first thought was to just use the CIRCLE and ARC;C commands. However, the default AutoCAD three point arc (center, start and end) does not draw intuitively - it always draws CCW - not in the direction you move your mouse (I do appreciate the Ctrl modifier here - it just seems a little clunky to use).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if I want it to work "better", I'll have to roll&amp;nbsp; my&amp;nbsp; own I guess.&amp;nbsp;I'm pretty certain that the answer is a jig - but is it worth exploring anything else? - e.g., 3 x acedGetPoint + transient graphics?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 02:03:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/getting-an-input-arc/m-p/12577512#M1073</guid>
      <dc:creator>Kyudos</dc:creator>
      <dc:date>2024-02-23T02:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting An Input Arc</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/getting-an-input-arc/m-p/12578016#M1074</link>
      <description>&lt;P&gt;Yeah, I would use a Jig, maybe a Jig derived from AcDbEntity where I would use worlddraw to draw a circularArc&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 09:48:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/getting-an-input-arc/m-p/12578016#M1074</guid>
      <dc:creator>daniel_cadext</dc:creator>
      <dc:date>2024-02-23T09:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Getting An Input Arc</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/getting-an-input-arc/m-p/12578426#M1075</link>
      <description>&lt;P&gt;I agree to Daniel. It's not so hard to roll your own jig.&lt;/P&gt;
&lt;P&gt;Have a look at the sample project in&amp;nbsp;&amp;lt;ARX&amp;gt;\samples\database\elipsjig_dg&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 13:26:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/getting-an-input-arc/m-p/12578426#M1075</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2024-02-23T13:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting An Input Arc</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/getting-an-input-arc/m-p/12582221#M1076</link>
      <description>&lt;P&gt;So I quickly created the attached jig. It works fine in the "place a circle" and "draw a circle" modes. I have a fake polyline arc that also jigs correctly (i.e., with the correct points).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But for the life of me, I can't seem to get it to draw an ordinary arc based on my three points. I've messed with with&amp;nbsp;AcDbArc and AcGeCircArc3d - but nothing ever seems to draw? The closest I got was adding a bulge to the centre segment of my polyline arc, but that is insufficient without some complex adding of extra points, since I need it to be able to be &amp;gt; 180°. What am I missing?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 03:24:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/getting-an-input-arc/m-p/12582221#M1076</guid>
      <dc:creator>Kyudos</dc:creator>
      <dc:date>2024-02-26T03:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Getting An Input Arc</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/getting-an-input-arc/m-p/12582348#M1077</link>
      <description>&lt;P&gt;This is what I had in mind for a draw jig,&amp;nbsp; just draw the primitives instead of creating entities&lt;/P&gt;&lt;P&gt;the command is doit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 05:30:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/getting-an-input-arc/m-p/12582348#M1077</guid>
      <dc:creator>daniel_cadext</dc:creator>
      <dc:date>2024-02-26T05:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting An Input Arc</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/getting-an-input-arc/m-p/12582473#M1078</link>
      <description>&lt;P&gt;then, say you want the opposite arc, you can do something like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;Adesk::Boolean AEI_ArcCircleJig::subWorldDraw(AcGiWorldDraw* pWd)
{
    auto&amp;amp; geo = pWd-&amp;gt;geometry();
    auto&amp;amp; traits = pWd-&amp;gt;subEntityTraits();

    //circle
    //traits.setColor(1);
    //geo.circle(_c, _b, _a);

    //arc
    traits.setColor(4);
    geo.circularArc(_a, _b, _c);

    //opp arc
    traits.setColor(2);
    AcGePoint3d _d = _b;
    AcGeCircArc3d carc(_a, _b, _c);
    _d += (carc.center() - _b) * 2;
    geo.circularArc(_a, _d, _c);

    return Adesk::kTrue;
}&lt;/LI-CODE&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="arc.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1330246iB6674BF3EA75DBC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="arc.png" alt="arc.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 07:22:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/getting-an-input-arc/m-p/12582473#M1078</guid>
      <dc:creator>daniel_cadext</dc:creator>
      <dc:date>2024-02-26T07:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting An Input Arc</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/getting-an-input-arc/m-p/12584082#M1079</link>
      <description>&lt;P&gt;Thanks for the example, it is good to know there are other ways. However, I think I might have to revert to the AutoCAD ARC;C command. A jig is a lot of code to write to replicate something I can do it two lines of code in my current code base - especially when you factor in the dynamic dimensions etc. I feel like AutoDesk are missing a trick in not providing basic jig classes. I can't be the only ARX developer who has seen e.g. the simple line or arc jigging already available and thought "I just want that - I see it is already there"....but no, you have to rebuild it from scratch...&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 20:55:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/getting-an-input-arc/m-p/12584082#M1079</guid>
      <dc:creator>Kyudos</dc:creator>
      <dc:date>2024-02-26T20:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting An Input Arc</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/getting-an-input-arc/m-p/12585168#M1080</link>
      <description>&lt;P&gt;I understand what you say. It is always the same story: Either an API is too complex or it doesn't offer enough flexibility. At the end it is your choice: I you are fine with the existing commands like ARC or PLINE you are free to use them with &lt;FONT face="courier new,courier"&gt;acedCommandS()&lt;/FONT&gt;. But you have to live with a lack of flexibility and control.&amp;nbsp;That's the main reason for me to prefer &lt;FONT face="courier new,courier"&gt;AcEdJig&lt;/FONT&gt; over &lt;FONT face="courier new,courier"&gt;acedCommandS()&lt;/FONT&gt;. If you want to have a functionality taylored to your needs you have spend some time and deal with the API.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My personal opinion is that the &lt;FONT face="courier new,courier"&gt;AcEdJig&lt;/FONT&gt; class is easy enough to handle. Dynamic dimensions is another story. I scratched my head many times trying to make them work. There are definitely not enough examples and documentation about it.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 09:53:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/getting-an-input-arc/m-p/12585168#M1080</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2024-02-27T09:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Getting An Input Arc</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/getting-an-input-arc/m-p/12586385#M1081</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/845950"&gt;@tbrammer&lt;/a&gt;&amp;nbsp;I already implemented some dynamic dimensions on one of my other custom objects, so I assume (haha!) it would translate similarly to jigs - but as I say a lot of work to replicate something that clearly already exists!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this instance, I decided not to abandon my jig! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; In the arc case, I think I was messing up the angle calculations. But since this is already taking too much time, I just modified my polyline 'arc' jig to insert some arc-ish points between my start and end.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 20:11:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/getting-an-input-arc/m-p/12586385#M1081</guid>
      <dc:creator>Kyudos</dc:creator>
      <dc:date>2024-02-27T20:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting An Input Arc</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/getting-an-input-arc/m-p/12586997#M1082</link>
      <description>&lt;P&gt;So I got my jig going with dynamic dimensions, but in some places my editable radial dimension has a weird non-editable ghost value (see below). Anyone have any ideas where that comes from?&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="DimBug.png" style="width: 502px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1331130i70A2A875F31F8A76/image-size/large?v=v2&amp;amp;px=999" role="button" title="DimBug.png" alt="DimBug.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 03:01:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/getting-an-input-arc/m-p/12586997#M1082</guid>
      <dc:creator>Kyudos</dc:creator>
      <dc:date>2024-02-28T03:01:16Z</dc:date>
    </item>
  </channel>
</rss>

