<?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: jig problem? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/jig-problem/m-p/1358102#M84597</link>
    <description>Can you post a little bit more code that I could try to run here? Are you &lt;BR /&gt;
creating the dimEnt below with the default constructor? I have already &lt;BR /&gt;
confirmed that to you that it won't work.&lt;BR /&gt;
&lt;BR /&gt;
Albert&lt;BR /&gt;
&lt;NETCAI&gt; wrote in message news:4881324@discussion.autodesk.com...&lt;BR /&gt;
continuous dimension command is my custom command,it works like autocad &lt;BR /&gt;
command ( _dimcontinue ),but doesn't need to select first dimension.&lt;BR /&gt;
the following code works well, but in process of debug, I found the bug of &lt;BR /&gt;
rotationdimension again, rotationdimension's rotation property always throw &lt;BR /&gt;
a exception.&lt;BR /&gt;
&lt;BR /&gt;
         protected override bool Update()&lt;BR /&gt;
            {&lt;BR /&gt;
                try&lt;BR /&gt;
                {&lt;BR /&gt;
                    switch (mPromptCounter)&lt;BR /&gt;
                    {&lt;BR /&gt;
                        case 0:&lt;BR /&gt;
                            GetRotationAndDimensionDirectio();&lt;BR /&gt;
                            break;&lt;BR /&gt;
                        case 1:&lt;BR /&gt;
                            break;&lt;BR /&gt;
                    }&lt;BR /&gt;
                    GetNewEndPoint();&lt;BR /&gt;
                    RotatedDimension dimEnt = ((RotatedDimension)Entity);&lt;BR /&gt;
                    //dimEnt = new RotatedDimension(mRotation, mStartPt, &lt;BR /&gt;
mNewEndPt, mLocPt, "", ObjectId.Null); // this line will make dynamic &lt;BR /&gt;
dimension dispear&lt;BR /&gt;
                    dimEnt.XLine1Point = mStartPt;&lt;BR /&gt;
                    dimEnt.XLine2Point = mNewEndPt;&lt;BR /&gt;
                    dimEnt.DimLinePoint = mLocPt;&lt;BR /&gt;
                    dimEnt.Rotation = mRotation; // this line will throw a &lt;BR /&gt;
exception&lt;BR /&gt;
                }&lt;BR /&gt;
                catch (System.Exception)&lt;BR /&gt;
                {&lt;BR /&gt;
                    return false;&lt;BR /&gt;
                }&lt;BR /&gt;
                return true;&lt;BR /&gt;
&lt;BR /&gt;
            }&lt;/NETCAI&gt;</description>
    <pubDate>Wed, 22 Jun 2005 00:48:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-06-22T00:48:45Z</dc:date>
    <item>
      <title>jig problem?</title>
      <link>https://forums.autodesk.com/t5/net-forum/jig-problem/m-p/1358095#M84590</link>
      <description>I wish to realize dynamic dimension like autocad do, but i am not familar with jig,  could someone has some example about how to realize jig?</description>
      <pubDate>Mon, 20 Jun 2005 03:33:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/jig-problem/m-p/1358095#M84590</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-20T03:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: jig problem?</title>
      <link>https://forums.autodesk.com/t5/net-forum/jig-problem/m-p/1358096#M84591</link>
      <description>Have you looked at the EllipseJig sample from the SDK?&lt;BR /&gt;
&lt;BR /&gt;
Albert&lt;BR /&gt;
&lt;BR /&gt;
&lt;NETCAI&gt; wrote in message news:4879122@discussion.autodesk.com...&lt;BR /&gt;
I wish to realize dynamic dimension like autocad do, but i am not familar &lt;BR /&gt;
with jig,  could someone has some example about how to realize jig?&lt;/NETCAI&gt;</description>
      <pubDate>Mon, 20 Jun 2005 18:03:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/jig-problem/m-p/1358096#M84591</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-20T18:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: jig problem?</title>
      <link>https://forums.autodesk.com/t5/net-forum/jig-problem/m-p/1358097#M84592</link>
      <description>Yes,I have looked at the ellipsejig sample, but I still don't understand how to use jig.My aids is to realize my continuous dimension command like autocad.</description>
      <pubDate>Tue, 21 Jun 2005 00:31:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/jig-problem/m-p/1358097#M84592</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-21T00:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: jig problem?</title>
      <link>https://forums.autodesk.com/t5/net-forum/jig-problem/m-p/1358098#M84593</link>
      <description>You should look at it one more time.&lt;BR /&gt;
Its a very basic example of how to use Jig.&lt;BR /&gt;
&lt;BR /&gt;
In Jig are few Essential functions that MUST be overriden:&lt;BR /&gt;
entity() -&amp;gt; here you give back entity you operating on;&lt;BR /&gt;
update() -&amp;gt; here you perform all update (set) operations on your entity;&lt;BR /&gt;
sampler() -&amp;gt; here you perform any user input interaction;&lt;BR /&gt;
&lt;BR /&gt;
The Sample Funktion doIt() must be written by you.&lt;BR /&gt;
To start interacting with user use the drag() function.&lt;BR /&gt;
It calls the sampler, update, entity functions and it calls the entitys&lt;BR /&gt;
worlddraw() function to draw it on screen.&lt;BR /&gt;
&lt;BR /&gt;
Those functions are absolue minimum to code an Jig mechanism for your&lt;BR /&gt;
entity.&lt;BR /&gt;
There are still fev functions you can use. For deteils read the docs.&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
Rex&lt;BR /&gt;
&lt;BR /&gt;
&lt;NETCAI&gt; schrieb im Newsbeitrag news:4880034@discussion.autodesk.com...&lt;BR /&gt;
Yes,I have looked at the ellipsejig sample, but I still don't understand how&lt;BR /&gt;
to use jig.My aids is to realize my continuous dimension command like&lt;BR /&gt;
autocad.&lt;/NETCAI&gt;</description>
      <pubDate>Tue, 21 Jun 2005 11:01:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/jig-problem/m-p/1358098#M84593</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-21T11:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: jig problem?</title>
      <link>https://forums.autodesk.com/t5/net-forum/jig-problem/m-p/1358099#M84594</link>
      <description>Forgotten one function:&lt;BR /&gt;
append() -&amp;gt; you need it to add your entity that is returned&lt;BR /&gt;
by entity() function to DB. (If you want to add it to db &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; ).&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
Rex&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;NETCAI&gt; schrieb im Newsbeitrag news:4880034@discussion.autodesk.com...&lt;BR /&gt;
Yes,I have looked at the ellipsejig sample, but I still don't understand how&lt;BR /&gt;
to use jig.My aids is to realize my continuous dimension command like&lt;BR /&gt;
autocad.&lt;/NETCAI&gt;</description>
      <pubDate>Tue, 21 Jun 2005 11:04:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/jig-problem/m-p/1358099#M84594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-21T11:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: jig problem?</title>
      <link>https://forums.autodesk.com/t5/net-forum/jig-problem/m-p/1358100#M84595</link>
      <description>I'm not sure what you mean by continuous dimension command. Which command &lt;BR /&gt;
are you talking about?&lt;BR /&gt;
&lt;BR /&gt;
Albert&lt;BR /&gt;
&lt;NETCAI&gt; wrote in message news:4880034@discussion.autodesk.com...&lt;BR /&gt;
Yes,I have looked at the ellipsejig sample, but I still don't understand how &lt;BR /&gt;
to use jig.My aids is to realize my continuous dimension command like &lt;BR /&gt;
autocad.&lt;/NETCAI&gt;</description>
      <pubDate>Tue, 21 Jun 2005 15:41:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/jig-problem/m-p/1358100#M84595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-21T15:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: jig problem?</title>
      <link>https://forums.autodesk.com/t5/net-forum/jig-problem/m-p/1358101#M84596</link>
      <description>continuous dimension command is my custom command,it works like autocad command ( _dimcontinue ),but doesn't need to select first dimension. &lt;BR /&gt;
the following code works well, but in process of debug, I found the bug of rotationdimension again, rotationdimension's rotation property always throw a exception.&lt;BR /&gt;
&lt;BR /&gt;
         protected override bool Update()&lt;BR /&gt;
            {&lt;BR /&gt;
                try&lt;BR /&gt;
                {&lt;BR /&gt;
                    switch (mPromptCounter)&lt;BR /&gt;
                    {&lt;BR /&gt;
                        case 0:&lt;BR /&gt;
                            GetRotationAndDimensionDirectio();&lt;BR /&gt;
                            break;&lt;BR /&gt;
                        case 1:&lt;BR /&gt;
                            break;&lt;BR /&gt;
                    }&lt;BR /&gt;
                    GetNewEndPoint();&lt;BR /&gt;
                    RotatedDimension dimEnt = ((RotatedDimension)Entity);&lt;BR /&gt;
                    //dimEnt = new RotatedDimension(mRotation, mStartPt, mNewEndPt, mLocPt, "", ObjectId.Null); // this line will make dynamic dimension dispear&lt;BR /&gt;
                    dimEnt.XLine1Point = mStartPt;&lt;BR /&gt;
                    dimEnt.XLine2Point = mNewEndPt;&lt;BR /&gt;
                    dimEnt.DimLinePoint = mLocPt;&lt;BR /&gt;
                    dimEnt.Rotation = mRotation; // this line will throw a exception&lt;BR /&gt;
                }&lt;BR /&gt;
                catch (System.Exception)&lt;BR /&gt;
                {&lt;BR /&gt;
                    return false;&lt;BR /&gt;
                }&lt;BR /&gt;
                return true;&lt;BR /&gt;
&lt;BR /&gt;
            }</description>
      <pubDate>Wed, 22 Jun 2005 00:23:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/jig-problem/m-p/1358101#M84596</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-22T00:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: jig problem?</title>
      <link>https://forums.autodesk.com/t5/net-forum/jig-problem/m-p/1358102#M84597</link>
      <description>Can you post a little bit more code that I could try to run here? Are you &lt;BR /&gt;
creating the dimEnt below with the default constructor? I have already &lt;BR /&gt;
confirmed that to you that it won't work.&lt;BR /&gt;
&lt;BR /&gt;
Albert&lt;BR /&gt;
&lt;NETCAI&gt; wrote in message news:4881324@discussion.autodesk.com...&lt;BR /&gt;
continuous dimension command is my custom command,it works like autocad &lt;BR /&gt;
command ( _dimcontinue ),but doesn't need to select first dimension.&lt;BR /&gt;
the following code works well, but in process of debug, I found the bug of &lt;BR /&gt;
rotationdimension again, rotationdimension's rotation property always throw &lt;BR /&gt;
a exception.&lt;BR /&gt;
&lt;BR /&gt;
         protected override bool Update()&lt;BR /&gt;
            {&lt;BR /&gt;
                try&lt;BR /&gt;
                {&lt;BR /&gt;
                    switch (mPromptCounter)&lt;BR /&gt;
                    {&lt;BR /&gt;
                        case 0:&lt;BR /&gt;
                            GetRotationAndDimensionDirectio();&lt;BR /&gt;
                            break;&lt;BR /&gt;
                        case 1:&lt;BR /&gt;
                            break;&lt;BR /&gt;
                    }&lt;BR /&gt;
                    GetNewEndPoint();&lt;BR /&gt;
                    RotatedDimension dimEnt = ((RotatedDimension)Entity);&lt;BR /&gt;
                    //dimEnt = new RotatedDimension(mRotation, mStartPt, &lt;BR /&gt;
mNewEndPt, mLocPt, "", ObjectId.Null); // this line will make dynamic &lt;BR /&gt;
dimension dispear&lt;BR /&gt;
                    dimEnt.XLine1Point = mStartPt;&lt;BR /&gt;
                    dimEnt.XLine2Point = mNewEndPt;&lt;BR /&gt;
                    dimEnt.DimLinePoint = mLocPt;&lt;BR /&gt;
                    dimEnt.Rotation = mRotation; // this line will throw a &lt;BR /&gt;
exception&lt;BR /&gt;
                }&lt;BR /&gt;
                catch (System.Exception)&lt;BR /&gt;
                {&lt;BR /&gt;
                    return false;&lt;BR /&gt;
                }&lt;BR /&gt;
                return true;&lt;BR /&gt;
&lt;BR /&gt;
            }&lt;/NETCAI&gt;</description>
      <pubDate>Wed, 22 Jun 2005 00:48:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/jig-problem/m-p/1358102#M84597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-22T00:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: jig problem?</title>
      <link>https://forums.autodesk.com/t5/net-forum/jig-problem/m-p/1358103#M84598</link>
      <description>albert, the attachment is my complete code.</description>
      <pubDate>Wed, 22 Jun 2005 01:05:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/jig-problem/m-p/1358103#M84598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-22T01:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: jig problem?</title>
      <link>https://forums.autodesk.com/t5/net-forum/jig-problem/m-p/1358104#M84599</link>
      <description>Yes. You are using the default constructor of RotatedDimension. Chage&lt;BR /&gt;
: base(new RotatedDimension())&lt;BR /&gt;
to&lt;BR /&gt;
: base(new RotatedDimension(mRotation, mStartPt, mNewEndPt, mLocPt, "", &lt;BR /&gt;
ObjectId.Null))&lt;BR /&gt;
&lt;BR /&gt;
Albert&lt;BR /&gt;
&lt;NETCAI&gt; wrote in message news:4881360@discussion.autodesk.com...&lt;BR /&gt;
albert, the attachment is my complete code.&lt;/NETCAI&gt;</description>
      <pubDate>Wed, 22 Jun 2005 04:23:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/jig-problem/m-p/1358104#M84599</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-22T04:23:54Z</dc:date>
    </item>
  </channel>
</rss>

