<?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: How to regen(acAllViewports) with vb.net? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-regen-acallviewports-with-vb-net/m-p/2446433#M71492</link>
    <description>Look at the type of the Document's AcadDocument&lt;BR /&gt;
property, and see if you can figure out why.&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 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Introducing AcadXTabs 2010:&lt;BR /&gt;
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;GREG.TOEWS&gt; wrote in message news:6148249@discussion.autodesk.com...&lt;BR /&gt;
In Visual Studio 2008, when you hit the period after AcadDocument, you get a &lt;BR /&gt;
popup of all available methods/properties/etc, but Regen is not in the list. &lt;BR /&gt;
Unless I made a mistake but I was fairly careful???&lt;/GREG.TOEWS&gt;</description>
    <pubDate>Wed, 25 Mar 2009 01:41:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-03-25T01:41:05Z</dc:date>
    <item>
      <title>How to regen(acAllViewports) with vb.net?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-regen-acallviewports-with-vb-net/m-p/2446427#M71486</link>
      <description>&lt;DIV id="jive-html-wrapper-div"&gt;
&lt;BR /&gt;
I've been trying to get my "view" to regen after I thaw selected&lt;BR /&gt;
layers, but have only gotten a partial solution..&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
editor.regen()&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
That works fine for the active space, but i need a way to regen&lt;BR /&gt;
everything.&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
I found a few methods posted here by Tony, but couldn't figure out how&lt;BR /&gt;
to get them to work in vb.net&amp;nbsp; (I guess they are in another .net&lt;BR /&gt;
language).&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
some help would be appreciated.&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV class="moz-signature"&gt;-- &lt;BR /&gt;&lt;BR /&gt;
&lt;FONT color="#000000"&gt;&lt;B&gt;Work&lt;/B&gt;: VISTA Ultimate/Windows 7 x32 - &lt;I&gt;AMD&lt;BR /&gt;
64 X2 Dual Core 4200 2.2GHz, 4 Gigs Ram, &lt;FONT color="#666666"&gt;GeForce&lt;BR /&gt;
6800GS 256MB&lt;/FONT&gt;&lt;/I&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;FONT color="#000000"&gt;&lt;B&gt;Home&lt;/B&gt;: VISTA Ultimate x64 - &lt;I&gt;AMD 64 Quad&lt;BR /&gt;
Core 2.2GHz, 8 Gigs Ram, &lt;FONT color="#666666"&gt;GeForce 8600GT 512MB&lt;/FONT&gt;&lt;/I&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;FONT color="#000000"&gt;&lt;B&gt;Laptop (17" HP)&lt;/B&gt;: VISTA Premium x32 - &lt;/FONT&gt;&lt;I&gt;&lt;FONT&gt;&lt;BR /&gt;
 color="#000000"&amp;gt;AMD Turion X2 Dual Core TL-50 1.6GHz, 2 Gigs Ram, &lt;FONT&gt;&lt;BR /&gt;
 color="#666666"&amp;gt;Nvidia GeForce 6150&lt;/FONT&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;BR /&gt;

&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Mar 2009 21:54:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-regen-acallviewports-with-vb-net/m-p/2446427#M71486</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-11T21:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to regen(acAllViewports) with vb.net?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-regen-acallviewports-with-vb-net/m-p/2446428#M71487</link>
      <description>Application.DocumentManager.MdiActiveDocument.AcadDocument.Regen(1)&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 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Introducing AcadXTabs 2010:&lt;BR /&gt;
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"C Witt" &lt;CWITT_AT_TRKENG.COM&gt; wrote in message &lt;BR /&gt;
news:6140759@discussion.autodesk.com...&lt;BR /&gt;
I've been trying to get my "view" to regen after I thaw selected layers, but &lt;BR /&gt;
have only gotten a partial solution..&lt;BR /&gt;
&lt;BR /&gt;
editor.regen()&lt;BR /&gt;
&lt;BR /&gt;
That works fine for the active space, but i need a way to regen everything.&lt;BR /&gt;
&lt;BR /&gt;
I found a few methods posted here by Tony, but couldn't figure out how to &lt;BR /&gt;
get them to work in vb.net  (I guess they are in another .net language).&lt;BR /&gt;
&lt;BR /&gt;
some help would be appreciated.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
Work: VISTA Ultimate/Windows 7 x32 - AMD 64 X2 Dual Core 4200 2.2GHz, 4 Gigs &lt;BR /&gt;
Ram, GeForce 6800GS 256MB&lt;BR /&gt;
Home: VISTA Ultimate x64 - AMD 64 Quad Core 2.2GHz, 8 Gigs Ram, GeForce &lt;BR /&gt;
8600GT 512MB&lt;BR /&gt;
Laptop (17" HP): VISTA Premium x32 - AMD Turion X2 Dual Core TL-50 1.6GHz, 2 &lt;BR /&gt;
Gigs Ram, Nvidia GeForce 6150&lt;/CWITT_AT_TRKENG.COM&gt;</description>
      <pubDate>Wed, 11 Mar 2009 23:06:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-regen-acallviewports-with-vb-net/m-p/2446428#M71487</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-11T23:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to regen(acAllViewports) with vb.net?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-regen-acallviewports-with-vb-net/m-p/2446429#M71488</link>
      <description>Thank you!&lt;BR /&gt;
&lt;BR /&gt;
*Work*: VISTA Ultimate/Windows 7 x32 - /AMD 64 X2 Dual Core 4200 2.2GHz, &lt;BR /&gt;
4 Gigs Ram, GeForce 6800GS 256MB/&lt;BR /&gt;
*Home*: VISTA Ultimate x64 - /AMD 64 Quad Core 2.2GHz, 8 Gigs Ram, &lt;BR /&gt;
GeForce 8600GT 512MB/&lt;BR /&gt;
*Laptop (17" HP)*: VISTA Premium x32 - /AMD Turion X2 Dual Core TL-50 &lt;BR /&gt;
1.6GHz, 2 Gigs Ram, Nvidia GeForce 6150/&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Tony Tanzillo wrote:&lt;BR /&gt;
&amp;gt; Application.DocumentManager.MdiActiveDocument.AcadDocument.Regen(1)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;</description>
      <pubDate>Wed, 11 Mar 2009 23:36:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-regen-acallviewports-with-vb-net/m-p/2446429#M71488</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-11T23:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to regen(acAllViewports) with vb.net?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-regen-acallviewports-with-vb-net/m-p/2446430#M71489</link>
      <description>&lt;B&gt;Application.DocumentManager.MdiActiveDocument.AcadDocument.Regen(1)&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
Why is it that Regen does not show up as a method for the AcadDocument object?</description>
      <pubDate>Tue, 24 Mar 2009 00:06:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-regen-acallviewports-with-vb-net/m-p/2446430#M71489</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2009-03-24T00:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to regen(acAllViewports) with vb.net?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-regen-acallviewports-with-vb-net/m-p/2446431#M71490</link>
      <description>does not show up where?&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 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Introducing AcadXTabs 2010:&lt;BR /&gt;
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;GREG.TOEWS&gt; wrote in message news:6147397@discussion.autodesk.com...&lt;BR /&gt;
&lt;B&gt;Application.DocumentManager.MdiActiveDocument.AcadDocument.Regen(1)&lt;/B&gt; &lt;BR /&gt;
Why is it that Regen does not show up as a method for the AcadDocument &lt;BR /&gt;
object?&lt;/GREG.TOEWS&gt;</description>
      <pubDate>Tue, 24 Mar 2009 03:19:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-regen-acallviewports-with-vb-net/m-p/2446431#M71490</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-24T03:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to regen(acAllViewports) with vb.net?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-regen-acallviewports-with-vb-net/m-p/2446432#M71491</link>
      <description>In Visual Studio 2008, when you hit the period after AcadDocument, you get a popup of all available methods/properties/etc, but Regen is not in the list. Unless I made a mistake but I was fairly careful???</description>
      <pubDate>Tue, 24 Mar 2009 20:52:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-regen-acallviewports-with-vb-net/m-p/2446432#M71491</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2009-03-24T20:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to regen(acAllViewports) with vb.net?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-regen-acallviewports-with-vb-net/m-p/2446433#M71492</link>
      <description>Look at the type of the Document's AcadDocument&lt;BR /&gt;
property, and see if you can figure out why.&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 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Introducing AcadXTabs 2010:&lt;BR /&gt;
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;GREG.TOEWS&gt; wrote in message news:6148249@discussion.autodesk.com...&lt;BR /&gt;
In Visual Studio 2008, when you hit the period after AcadDocument, you get a &lt;BR /&gt;
popup of all available methods/properties/etc, but Regen is not in the list. &lt;BR /&gt;
Unless I made a mistake but I was fairly careful???&lt;/GREG.TOEWS&gt;</description>
      <pubDate>Wed, 25 Mar 2009 01:41:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-regen-acallviewports-with-vb-net/m-p/2446433#M71492</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-25T01:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to regen(acAllViewports) with vb.net?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-regen-acallviewports-with-vb-net/m-p/2446434#M71493</link>
      <description>Ah, because it is a generic object. Do you know why do they do that?&lt;BR /&gt;
&lt;BR /&gt;
I always wondered why Excel VBA never gives you anything and this explains it. For example, if you type "ActiveSheet." you get nothing. But if you do this:&lt;BR /&gt;
{code}Dim ss As Excel.Worksheet&lt;BR /&gt;
Set ss = ActiveSheet{code}&lt;BR /&gt;
Then if you type "ss.", you get all of the methods/etc.&lt;BR /&gt;
&lt;BR /&gt;
So, after searching for Regen in the Object Browser, I think I can do the following:&lt;BR /&gt;
{code}Dim AcadDoc as Autodesk.AutoCAD.ApplicationServices.Document&lt;BR /&gt;
Dim DocEditor as Autodesk.AutoCAD.EditorInput.Editor&lt;BR /&gt;
&lt;BR /&gt;
AcadDoc = Application.DocumentManager.MdiActiveDocument&lt;BR /&gt;
DocEditor = AcadDoc.AcadDocument&lt;BR /&gt;
DocEditor.Regen(1){code}&lt;BR /&gt;
So now Regen shows up when you hit "." but it doesn't show as accepting a parameter???</description>
      <pubDate>Wed, 25 Mar 2009 08:21:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-regen-acallviewports-with-vb-net/m-p/2446434#M71493</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2009-03-25T08:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to regen(acAllViewports) with vb.net?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-regen-acallviewports-with-vb-net/m-p/2446435#M71494</link>
      <description>The reason they don't use the COM types, is because they don't want &lt;BR /&gt;
acmdg.dll and acdbmdg.dll to have any depencence on the COM interop type &lt;BR /&gt;
library dlls, which would be bad because the COM libraries are &lt;BR /&gt;
version-specific.&lt;BR /&gt;
&lt;BR /&gt;
If you want to use the COM libraries you can but beware that if you do, you &lt;BR /&gt;
may not be able to use the same assembly in different product releases &lt;BR /&gt;
because of that.&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 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Introducing AcadXTabs 2010:&lt;BR /&gt;
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;GREG.TOEWS&gt; wrote in message news:6148459@discussion.autodesk.com...&lt;BR /&gt;
Ah, because it is a generic object. Do you know why do they do that? I &lt;BR /&gt;
always wondered why Excel VBA never gives you anything and this explains it. &lt;BR /&gt;
For example, if you type "ActiveSheet." you get nothing. But if you do this: &lt;BR /&gt;
{code}Dim ss As Excel.Worksheet Set ss = ActiveSheet{code} Then if you type &lt;BR /&gt;
"ss.", you get all of the methods/etc. So, after searching for Regen in the &lt;BR /&gt;
Object Browser, I think I can do the following: {code}Dim AcadDoc as &lt;BR /&gt;
Autodesk.AutoCAD.ApplicationServices.Document Dim DocEditor as &lt;BR /&gt;
Autodesk.AutoCAD.EditorInput.Editor AcadDoc = &lt;BR /&gt;
Application.DocumentManager.MdiActiveDocument DocEditor = &lt;BR /&gt;
AcadDoc.AcadDocument DocEditor.Regen(1){code} So now Regen shows up when you &lt;BR /&gt;
hit "." but it doesn't show as accepting a parameter???&lt;/GREG.TOEWS&gt;</description>
      <pubDate>Wed, 25 Mar 2009 14:05:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-regen-acallviewports-with-vb-net/m-p/2446435#M71494</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-25T14:05:45Z</dc:date>
    </item>
  </channel>
</rss>

