<?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: Is it possible to hide an object? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661574#M66075</link>
    <description>Actually, the hack I posted isn't necessary.&lt;BR /&gt;
&lt;BR /&gt;
What I overlooked was that it's also necessary to call&lt;BR /&gt;
the TransactionManager's QueueForGraphicsFlush()&lt;BR /&gt;
method just before calling FlushGraphics().&lt;BR /&gt;
&lt;BR /&gt;
With that change you can avoid having to repeatedly&lt;BR /&gt;
start/commit the outermost transaction.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2011&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;HERICSON&gt; wrote in message news:6370416@discussion.autodesk.com...&lt;BR /&gt;
Now it works, thanks! But one conclusion is that you can't nest transactions.&lt;/HERICSON&gt;</description>
    <pubDate>Tue, 18 May 2010 19:34:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-05-18T19:34:47Z</dc:date>
    <item>
      <title>Is it possible to hide an object?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661564#M66065</link>
      <description>I'm writing my own lengthen dynamically function and I'm using a jig to get the new end point. What I want is to hide the line while using the jig and after getting the new end point from the jig I will unhide the line and change the line's endpoint. Is that possible or do I have to first erase the line and then recreate it after the jig has got the new end point? In that case I have to save all possible properties that I can get from the line so I can apply them to the new line object, it sounds that it's a big chance of missing something.</description>
      <pubDate>Tue, 06 Apr 2010 19:38:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661564#M66065</guid>
      <dc:creator>hericson</dc:creator>
      <dc:date>2010-04-06T19:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to hide an object?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661565#M66066</link>
      <description>Entity.Visible?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2011&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;HERICSON&gt; wrote in message news:6368009@discussion.autodesk.com...&lt;BR /&gt;
I'm writing my own lengthen dynamically function and I'm using a jig to get the &lt;BR /&gt;
new end point. What I want is to hide the line while using the jig and after &lt;BR /&gt;
getting the new end point from the jig I will unhide the line and change the &lt;BR /&gt;
line's endpoint. Is that possible or do I have to first erase the line and then &lt;BR /&gt;
recreate it after the jig has got the new end point? In that case I have to save &lt;BR /&gt;
all possible properties that I can get from the line so I can apply them to the &lt;BR /&gt;
new line object, it sounds that it's a big chance of missing something.&lt;/HERICSON&gt;</description>
      <pubDate>Tue, 06 Apr 2010 19:41:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661565#M66066</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-04-06T19:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to hide an object?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661566#M66067</link>
      <description>Sometimes it's too easy. I was looking for something similar but searched for Hide/Unhide, Visible never occur'd to me.&lt;BR /&gt;
&lt;BR /&gt;
But now I have a new question, look in the code below (it's not complete, I know), how can I make it invisible before calling the jig? If I use acTrans.Commit then I can't continue without errors. Do I have start a new Using?&lt;BR /&gt;
&lt;BR /&gt;
{code}&lt;BR /&gt;
Using acTrans As Transaction = acCurDb.TransactionManager.StartTransaction()&lt;BR /&gt;
   lin.Visible = False&lt;BR /&gt;
&lt;BR /&gt;
   ' call the jig&lt;BR /&gt;
&lt;BR /&gt;
   lin.Visible = True&lt;BR /&gt;
   acTrans.Commit()&lt;BR /&gt;
End Using&lt;BR /&gt;
{code}</description>
      <pubDate>Wed, 07 Apr 2010 16:01:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661566#M66067</guid>
      <dc:creator>hericson</dc:creator>
      <dc:date>2010-04-07T16:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to hide an object?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661567#M66068</link>
      <description>First, use the Document's TransactionManager, not the&lt;BR /&gt;
Database's TransactionManager.&lt;BR /&gt;
&lt;BR /&gt;
See if this works:&lt;BR /&gt;
&lt;BR /&gt;
{code}&lt;BR /&gt;
&lt;BR /&gt;
    Document doc = ....&lt;BR /&gt;
&lt;BR /&gt;
    using( Transaction tr = doc.TransactionManager.StartTransaction () )&lt;BR /&gt;
    {&lt;BR /&gt;
        Line line = ....// assign to line to hide&lt;BR /&gt;
        using( Transaction inner = doc.TransactionManager.StartTransaction() )&lt;BR /&gt;
        {&lt;BR /&gt;
            line.Visible = false;&lt;BR /&gt;
            inner.Commit();&lt;BR /&gt;
        }&lt;BR /&gt;
&lt;BR /&gt;
        // jig here....&lt;BR /&gt;
&lt;BR /&gt;
        line.Visible = true;&lt;BR /&gt;
        tr.Commit();&lt;BR /&gt;
   }&lt;BR /&gt;
&lt;BR /&gt;
{code}&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2011&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;HERICSON&gt; wrote in message news:6368695@discussion.autodesk.com...&lt;BR /&gt;
Sometimes it's too easy. I was looking for something similar but searched for &lt;BR /&gt;
Hide/Unhide, Visible never occur'd to me.&lt;BR /&gt;
&lt;BR /&gt;
But now I have a new question, look in the code below (it's not complete, I &lt;BR /&gt;
know), how can I make it invisible before calling the jig? If I use &lt;BR /&gt;
acTrans.Commit then I can't continue without errors. Do I have start a new &lt;BR /&gt;
Using?&lt;BR /&gt;
&lt;BR /&gt;
{code}&lt;BR /&gt;
Using acTrans As Transaction = acCurDb.TransactionManager.StartTransaction()&lt;BR /&gt;
   lin.Visible = False&lt;BR /&gt;
&lt;BR /&gt;
   ' call the jig&lt;BR /&gt;
&lt;BR /&gt;
   lin.Visible = True&lt;BR /&gt;
   acTrans.Commit()&lt;BR /&gt;
End Using&lt;BR /&gt;
{code}&lt;/HERICSON&gt;</description>
      <pubDate>Wed, 07 Apr 2010 18:18:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661567#M66068</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-04-07T18:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to hide an object?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661568#M66069</link>
      <description>No, it didn't work. I even tried a new Line assignment with the inner transaction but no success.</description>
      <pubDate>Wed, 07 Apr 2010 19:12:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661568#M66069</guid>
      <dc:creator>hericson</dc:creator>
      <dc:date>2010-04-07T19:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to hide an object?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661569#M66070</link>
      <description>I think you need to enable graphics fllush:&lt;BR /&gt;
&lt;BR /&gt;
{code}&lt;BR /&gt;
&lt;BR /&gt;
    Document doc = ....&lt;BR /&gt;
&lt;BR /&gt;
    using( Transaction tr = doc.TransactionManager.StartTransaction () )&lt;BR /&gt;
    {&lt;BR /&gt;
        doc.TransactionManager.EnableGraphicsFlush(true);&lt;BR /&gt;
        Line line = ....// assign to line to hide&lt;BR /&gt;
        using( Transaction inner = doc.TransactionManager.StartTransaction() )&lt;BR /&gt;
        {&lt;BR /&gt;
            line.Visible = false;&lt;BR /&gt;
            inner.Commit();&lt;BR /&gt;
        }&lt;BR /&gt;
        doc.Editor.UpdateScreen();&lt;BR /&gt;
&lt;BR /&gt;
        // jig here....&lt;BR /&gt;
&lt;BR /&gt;
        line.Visible = true;&lt;BR /&gt;
        tr.Commit();&lt;BR /&gt;
   }&lt;BR /&gt;
&lt;BR /&gt;
{code}&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2011&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;HERICSON&gt; wrote in message news:6368927@discussion.autodesk.com...&lt;BR /&gt;
No, it didn't work. I even tried a new Line assignment with the inner &lt;BR /&gt;
transaction but no success.&lt;/HERICSON&gt;</description>
      <pubDate>Wed, 07 Apr 2010 21:00:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661569#M66070</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-04-07T21:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to hide an object?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661570#M66071</link>
      <description>Still the same...</description>
      <pubDate>Thu, 08 Apr 2010 15:52:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661570#M66071</guid>
      <dc:creator>hericson</dc:creator>
      <dc:date>2010-04-08T15:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to hide an object?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661571#M66072</link>
      <description>Where are you calling the code from?  A regular command,&lt;BR /&gt;
A modeless dialog or palette?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2011&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;HERICSON&gt; wrote in message news:6369577@discussion.autodesk.com...&lt;BR /&gt;
Still the same...&lt;/HERICSON&gt;</description>
      <pubDate>Thu, 08 Apr 2010 16:29:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661571#M66072</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-04-08T16:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to hide an object?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661572#M66073</link>
      <description>See the attached example.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2011&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;HERICSON&gt; wrote in message news:6369577@discussion.autodesk.com...&lt;BR /&gt;
Still the same...&lt;/HERICSON&gt;</description>
      <pubDate>Thu, 08 Apr 2010 23:09:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661572#M66073</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-04-08T23:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to hide an object?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661573#M66074</link>
      <description>Now it works, thanks! But one conclusion is that you can't nest transactions.</description>
      <pubDate>Fri, 09 Apr 2010 17:35:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661573#M66074</guid>
      <dc:creator>hericson</dc:creator>
      <dc:date>2010-04-09T17:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to hide an object?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661574#M66075</link>
      <description>Actually, the hack I posted isn't necessary.&lt;BR /&gt;
&lt;BR /&gt;
What I overlooked was that it's also necessary to call&lt;BR /&gt;
the TransactionManager's QueueForGraphicsFlush()&lt;BR /&gt;
method just before calling FlushGraphics().&lt;BR /&gt;
&lt;BR /&gt;
With that change you can avoid having to repeatedly&lt;BR /&gt;
start/commit the outermost transaction.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2011&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;HERICSON&gt; wrote in message news:6370416@discussion.autodesk.com...&lt;BR /&gt;
Now it works, thanks! But one conclusion is that you can't nest transactions.&lt;/HERICSON&gt;</description>
      <pubDate>Tue, 18 May 2010 19:34:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-hide-an-object/m-p/2661574#M66075</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-18T19:34:47Z</dc:date>
    </item>
  </channel>
</rss>

