<?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: oDwg.PlotConfigurations(strPageSetup) Broken! in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430370#M40748</link>
    <description>Definitely there are holes in the vba api.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
----&lt;BR /&gt;
Ed&lt;BR /&gt;
----&lt;BR /&gt;
"TedSch" &lt;DDDTED.SCHAEFER&gt; wrote in message&lt;BR /&gt;
news:4956378@discussion.autodesk.com...&lt;BR /&gt;
I restarted Acad several times, but when I restarted my whole system,&lt;BR /&gt;
most of my problems went away. Should have done that first.&lt;BR /&gt;
&lt;BR /&gt;
I looked at your code for Augi. I have something very similar working.&lt;BR /&gt;
&lt;BR /&gt;
It still drives me crazy (ier) that you can't do some thing like:&lt;BR /&gt;
    Thisdrawing.layouts("Layout1").ActivePlotConfig.Name&lt;BR /&gt;
&lt;BR /&gt;
But that's where your Lisp/Vlax workaround come in.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
- Ted&lt;BR /&gt;
&lt;BR /&gt;
"Ed Jobe" &lt;NOT.EDLJOBE&gt; wrote in message&lt;BR /&gt;
news:4955954@discussion.autodesk.com...&lt;BR /&gt;
&amp;gt;&amp;gt;If one of the imported pagesetups is the current one&lt;BR /&gt;
for a layout, then I would like to update it with the new import.&lt;BR /&gt;
&lt;BR /&gt;
It shouldn't matter what the current layout is. Just import all updated&lt;BR /&gt;
PlotConfigurations. You will get an error if any already exist in the&lt;BR /&gt;
PlotConfigurations collection due to the fact that a collection is key based&lt;BR /&gt;
and the index key already exists. Therefore, you can't use the same key over&lt;BR /&gt;
again. So I just delete all existing PC's and import all updated ones. I&lt;BR /&gt;
have a dvb on the AUGI Exchange that does all of this, using ObjectDbx to&lt;BR /&gt;
perform the update from a template without user intervention, making it a&lt;BR /&gt;
one-click update. There's also, one in there that presents a user with a&lt;BR /&gt;
dialog where they can choose which ones to update.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
----&lt;BR /&gt;
Ed&lt;BR /&gt;
----&lt;/NOT.EDLJOBE&gt;&lt;/DDDTED.SCHAEFER&gt;</description>
    <pubDate>Thu, 15 Sep 2005 14:25:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-09-15T14:25:49Z</dc:date>
    <item>
      <title>oDwg.PlotConfigurations(strPageSetup) Broken!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430360#M40738</link>
      <description>Set oPlotCfg = oDwg.PlotConfigurations(strPageSetup)&lt;BR /&gt;
This standard method doesn't for return an object in 2005 for me.&lt;BR /&gt;
(and there's no syntax error)&lt;BR /&gt;
&lt;BR /&gt;
I have to spin through the plot configurations like this.&lt;BR /&gt;
For Each oPlotCfg1 In oDwg.PlotConfigurations&lt;BR /&gt;
    If StrComp(oPlotCfg1.Name, "_24x36", vbTextCompare) = 0 Then&lt;BR /&gt;
        Exit For&lt;BR /&gt;
    End If&lt;BR /&gt;
Next&lt;BR /&gt;
&lt;BR /&gt;
OK Autodesk, I wasted 30 mins on this one, you can reimburse me $75&lt;BR /&gt;
to.......&lt;BR /&gt;
(if this works, I could become rich &lt;GRIN&gt;)&lt;BR /&gt;
&lt;BR /&gt;
- Ted&lt;/GRIN&gt;</description>
      <pubDate>Tue, 13 Sep 2005 13:16:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430360#M40738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-09-13T13:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: oDwg.PlotConfigurations(strPageSetup) Broken!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430361#M40739</link>
      <description>are you using variable declarations and option explicit?&lt;BR /&gt;
&lt;BR /&gt;
Oh come now, everyone knows you don't get rich writing CAD apps....everyone&lt;BR /&gt;
just assumes it's part of autoCAD &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
-Chris&lt;BR /&gt;
&lt;BR /&gt;
"TedSch" &lt;DDDTED.SCHAEFER&gt; wrote in message&lt;BR /&gt;
news:4954384@discussion.autodesk.com...&lt;BR /&gt;
Set oPlotCfg = oDwg.PlotConfigurations(strPageSetup)&lt;BR /&gt;
This standard method doesn't for return an object in 2005 for me.&lt;BR /&gt;
(and there's no syntax error)&lt;BR /&gt;
&lt;BR /&gt;
I have to spin through the plot configurations like this.&lt;BR /&gt;
For Each oPlotCfg1 In oDwg.PlotConfigurations&lt;BR /&gt;
    If StrComp(oPlotCfg1.Name, "_24x36", vbTextCompare) = 0 Then&lt;BR /&gt;
        Exit For&lt;BR /&gt;
    End If&lt;BR /&gt;
Next&lt;BR /&gt;
&lt;BR /&gt;
OK Autodesk, I wasted 30 mins on this one, you can reimburse me $75&lt;BR /&gt;
to.......&lt;BR /&gt;
(if this works, I could become rich &lt;GRIN&gt;)&lt;BR /&gt;
&lt;BR /&gt;
- Ted&lt;/GRIN&gt;&lt;/DDDTED.SCHAEFER&gt;</description>
      <pubDate>Tue, 13 Sep 2005 13:43:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430361#M40739</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-09-13T13:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: oDwg.PlotConfigurations(strPageSetup) Broken!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430362#M40740</link>
      <description>The editor always puts it in, and I alway declare everything - SOP.&lt;BR /&gt;
&lt;BR /&gt;
"Don't get rich..." How well I know. I've been doing it since 1983.&lt;BR /&gt;
About once a year, I get fed up with "this" working different than "that",&lt;BR /&gt;
and have to say something.&lt;BR /&gt;
&lt;BR /&gt;
Mounting soap box:&lt;BR /&gt;
&lt;BR /&gt;
VBA is the most productive and interactive development environment.&lt;BR /&gt;
IMHO, Autodesk could be more active in filling in VBA. They are&lt;BR /&gt;
profitable enough to apply some more effort to this. How long will&lt;BR /&gt;
unsupported.arx be required? How long before I can remove the&lt;BR /&gt;
sendcommand from my code?&lt;BR /&gt;
&lt;BR /&gt;
- Ted&lt;BR /&gt;
&lt;BR /&gt;
"Chris Shoemaker" &lt;CSS&gt; wrote in message&lt;BR /&gt;
news:4954411@discussion.autodesk.com...&lt;BR /&gt;
are you using variable declarations and option explicit?&lt;BR /&gt;
&lt;BR /&gt;
Oh come now, everyone knows you don't get rich writing CAD apps....everyone&lt;BR /&gt;
just assumes it's part of autoCAD &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
-Chris&lt;BR /&gt;
&lt;BR /&gt;
"TedSch" &lt;DDDTED.SCHAEFER&gt; wrote in message&lt;BR /&gt;
news:4954384@discussion.autodesk.com...&lt;BR /&gt;
Set oPlotCfg = oDwg.PlotConfigurations(strPageSetup)&lt;BR /&gt;
This standard method doesn't for return an object in 2005 for me.&lt;BR /&gt;
(and there's no syntax error)&lt;BR /&gt;
&lt;BR /&gt;
I have to spin through the plot configurations like this.&lt;BR /&gt;
For Each oPlotCfg1 In oDwg.PlotConfigurations&lt;BR /&gt;
    If StrComp(oPlotCfg1.Name, "_24x36", vbTextCompare) = 0 Then&lt;BR /&gt;
        Exit For&lt;BR /&gt;
    End If&lt;BR /&gt;
Next&lt;BR /&gt;
&lt;BR /&gt;
OK Autodesk, I wasted 30 mins on this one, you can reimburse me $75&lt;BR /&gt;
to.......&lt;BR /&gt;
(if this works, I could become rich &lt;GRIN&gt;)&lt;BR /&gt;
&lt;BR /&gt;
- Ted&lt;/GRIN&gt;&lt;/DDDTED.SCHAEFER&gt;&lt;/CSS&gt;</description>
      <pubDate>Tue, 13 Sep 2005 13:57:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430362#M40740</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-09-13T13:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: oDwg.PlotConfigurations(strPageSetup) Broken!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430363#M40741</link>
      <description>Please forward your $75 to me when you receive it.&lt;BR /&gt;
&lt;BR /&gt;
Sub Test()&lt;BR /&gt;
  Dim allPCfgs As AcadPlotConfigurations&lt;BR /&gt;
  Dim myPCfg As AcadPlotConfiguration&lt;BR /&gt;
  Set allPCfgs = ThisDrawing.PlotConfigurations&lt;BR /&gt;
  allPCfgs.Add "Test"&lt;BR /&gt;
  Set myPCfg = allPCfgs.Item("Test")&lt;BR /&gt;
  MsgBox "My name is " &amp;amp; myPCfg.Name&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
R. Robert Bell&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"TedSch" &lt;DDDTED.SCHAEFER&gt; wrote in message &lt;BR /&gt;
news:4954384@discussion.autodesk.com...&lt;BR /&gt;
Set oPlotCfg = oDwg.PlotConfigurations(strPageSetup)&lt;BR /&gt;
This standard method doesn't for return an object in 2005 for me.&lt;BR /&gt;
(and there's no syntax error)&lt;BR /&gt;
&lt;BR /&gt;
I have to spin through the plot configurations like this.&lt;BR /&gt;
For Each oPlotCfg1 In oDwg.PlotConfigurations&lt;BR /&gt;
    If StrComp(oPlotCfg1.Name, "_24x36", vbTextCompare) = 0 Then&lt;BR /&gt;
        Exit For&lt;BR /&gt;
    End If&lt;BR /&gt;
Next&lt;BR /&gt;
&lt;BR /&gt;
OK Autodesk, I wasted 30 mins on this one, you can reimburse me $75&lt;BR /&gt;
to.......&lt;BR /&gt;
(if this works, I could become rich &lt;GRIN&gt;)&lt;BR /&gt;
&lt;BR /&gt;
- Ted&lt;/GRIN&gt;&lt;/DDDTED.SCHAEFER&gt;</description>
      <pubDate>Tue, 13 Sep 2005 15:14:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430363#M40741</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-09-13T15:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: oDwg.PlotConfigurations(strPageSetup) Broken!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430364#M40742</link>
      <description>Your right, I owe you.&lt;BR /&gt;
&lt;BR /&gt;
I've been making an import system as part of Dwg setup routine.&lt;BR /&gt;
And, I would like to give the user the option of updating the pagesetups&lt;BR /&gt;
to the current std. If one of the imported pagesetups is the current one&lt;BR /&gt;
for a layout, then I would like to update it with the new import.&lt;BR /&gt;
Unfortunately, I was more hoping to do something like:&lt;BR /&gt;
   Set oDict = ThisDrawing.Dictionaries("ACAD_LAYOUTS")&lt;BR /&gt;
&lt;BR /&gt;
Then loop through it to see the current plotconfigs but Acad won't let me.&lt;BR /&gt;
These dicts must be protected. I guess I will use Ed Jobe's lisp/vlax code&lt;BR /&gt;
to get the info.&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Ted&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"R. Robert Bell" &lt;NOT.ROBERTB&gt; wrote in message&lt;BR /&gt;
news:4954585@discussion.autodesk.com...&lt;BR /&gt;
Please forward your $75 to me when you receive it.&lt;BR /&gt;
&lt;BR /&gt;
Sub Test()&lt;BR /&gt;
  Dim allPCfgs As AcadPlotConfigurations&lt;BR /&gt;
  Dim myPCfg As AcadPlotConfiguration&lt;BR /&gt;
  Set allPCfgs = ThisDrawing.PlotConfigurations&lt;BR /&gt;
  allPCfgs.Add "Test"&lt;BR /&gt;
  Set myPCfg = allPCfgs.Item("Test")&lt;BR /&gt;
  MsgBox "My name is " &amp;amp; myPCfg.Name&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
R. Robert Bell&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"TedSch" &lt;DDDTED.SCHAEFER&gt; wrote in message&lt;BR /&gt;
news:4954384@discussion.autodesk.com...&lt;BR /&gt;
Set oPlotCfg = oDwg.PlotConfigurations(strPageSetup)&lt;BR /&gt;
This standard method doesn't for return an object in 2005 for me.&lt;BR /&gt;
(and there's no syntax error)&lt;BR /&gt;
&lt;BR /&gt;
I have to spin through the plot configurations like this.&lt;BR /&gt;
For Each oPlotCfg1 In oDwg.PlotConfigurations&lt;BR /&gt;
    If StrComp(oPlotCfg1.Name, "_24x36", vbTextCompare) = 0 Then&lt;BR /&gt;
        Exit For&lt;BR /&gt;
    End If&lt;BR /&gt;
Next&lt;BR /&gt;
&lt;BR /&gt;
OK Autodesk, I wasted 30 mins on this one, you can reimburse me $75&lt;BR /&gt;
to.......&lt;BR /&gt;
(if this works, I could become rich &lt;GRIN&gt;)&lt;BR /&gt;
&lt;BR /&gt;
- Ted&lt;/GRIN&gt;&lt;/DDDTED.SCHAEFER&gt;&lt;/NOT.ROBERTB&gt;</description>
      <pubDate>Tue, 13 Sep 2005 19:51:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430364#M40742</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-09-13T19:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: oDwg.PlotConfigurations(strPageSetup) Broken!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430365#M40743</link>
      <description>Exactly what do you want to do? Either I'm not following or you're not&lt;BR /&gt;
making any sense. The dicts aren't protected and there is no problem&lt;BR /&gt;
retrieving them. Just take Bob's code one step further:&lt;BR /&gt;
&lt;BR /&gt;
Sub GetPlotConfigs()&lt;BR /&gt;
  Dim oPltCfg As AcadPlotConfiguration&lt;BR /&gt;
  For Each oPltCfg In ThisDrawing.PlotConfigurations&lt;BR /&gt;
    If oPltCfg.Name Like "_24X36" Then&lt;BR /&gt;
      MsgBox oPltCfg.Name&lt;BR /&gt;
      'you now have the plotconfig object so do whatever&lt;BR /&gt;
    End If&lt;BR /&gt;
  Next&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Now you can iterate and eventually retrieve the object you're after. It may&lt;BR /&gt;
have been your use of StrComp instead of just using Like that was throwing&lt;BR /&gt;
you.&lt;BR /&gt;
&lt;BR /&gt;
-- Mike&lt;BR /&gt;
___________________________&lt;BR /&gt;
Mike Tuersley&lt;BR /&gt;
___________________________&lt;BR /&gt;
the trick is to realize that there is no spoon...</description>
      <pubDate>Wed, 14 Sep 2005 02:58:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430365#M40743</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-09-14T02:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: oDwg.PlotConfigurations(strPageSetup) Broken!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430366#M40744</link>
      <description>&amp;gt;&amp;gt;If one of the imported pagesetups is the current one&lt;BR /&gt;
for a layout, then I would like to update it with the new import.&lt;BR /&gt;
&lt;BR /&gt;
It shouldn't matter what the current layout is. Just import all updated&lt;BR /&gt;
PlotConfigurations. You will get an error if any already exist in the&lt;BR /&gt;
PlotConfigurations collection due to the fact that a collection is key based&lt;BR /&gt;
and the index key already exists. Therefore, you can't use the same key over&lt;BR /&gt;
again. So I just delete all existing PC's and import all updated ones. I&lt;BR /&gt;
have a dvb on the AUGI Exchange that does all of this, using ObjectDbx to&lt;BR /&gt;
perform the update from a template without user intervention, making it a&lt;BR /&gt;
one-click update. There's also, one in there that presents a user with a&lt;BR /&gt;
dialog where they can choose which ones to update.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
----&lt;BR /&gt;
Ed&lt;BR /&gt;
----</description>
      <pubDate>Wed, 14 Sep 2005 14:41:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430366#M40744</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-09-14T14:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: oDwg.PlotConfigurations(strPageSetup) Broken!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430367#M40745</link>
      <description>Not making sense - I had a condition where the active pagesetup&lt;BR /&gt;
was modified from one of the same name. "24x36" was active&lt;BR /&gt;
and the selection list. I was able to change the activer version to a&lt;BR /&gt;
36x48 sheet, but it left the name the same. So I had a two instances&lt;BR /&gt;
of 24x26 in the page setup window. When you clicked on one, it&lt;BR /&gt;
showed 24x36 as page size, the other showed 36x48. I was worried&lt;BR /&gt;
about updating the active copy of this page setup to a newly imported&lt;BR /&gt;
version.&lt;BR /&gt;
&lt;BR /&gt;
Using the dbview app, I could see how the PlotConfig was&lt;BR /&gt;
copied from ACAD_PLOTSTETTINGS to ACAD_LAYOUT&amp;gt;Layout&lt;BR /&gt;
in the Named Object Dictionary. So first I was trying to get the name&lt;BR /&gt;
of the active plotConfig which I ought to be able to dig out of ACAD_LAYOUT&lt;BR /&gt;
but I couldn't Set to it. The layout object should have an active plotconfig&lt;BR /&gt;
property.&lt;BR /&gt;
&lt;BR /&gt;
I was already using similar code to Bob's and yours. Not sure why it broke.&lt;BR /&gt;
I restarted my computer and that part fixed itself.&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Ted&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Mike Tuersley" &lt;MTUERSLEY_NOT_&gt; wrote in message&lt;BR /&gt;
news:4955533@discussion.autodesk.com...&lt;BR /&gt;
Exactly what do you want to do? Either I'm not following or you're not&lt;BR /&gt;
making any sense. The dicts aren't protected and there is no problem&lt;BR /&gt;
retrieving them. Just take Bob's code one step further:&lt;BR /&gt;
&lt;BR /&gt;
Sub GetPlotConfigs()&lt;BR /&gt;
  Dim oPltCfg As AcadPlotConfiguration&lt;BR /&gt;
  For Each oPltCfg In ThisDrawing.PlotConfigurations&lt;BR /&gt;
    If oPltCfg.Name Like "_24X36" Then&lt;BR /&gt;
      MsgBox oPltCfg.Name&lt;BR /&gt;
      'you now have the plotconfig object so do whatever&lt;BR /&gt;
    End If&lt;BR /&gt;
  Next&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Now you can iterate and eventually retrieve the object you're after. It may&lt;BR /&gt;
have been your use of StrComp instead of just using Like that was throwing&lt;BR /&gt;
you.&lt;BR /&gt;
&lt;BR /&gt;
-- Mike&lt;BR /&gt;
___________________________&lt;BR /&gt;
Mike Tuersley&lt;BR /&gt;
___________________________&lt;BR /&gt;
the trick is to realize that there is no spoon...&lt;/MTUERSLEY_NOT_&gt;</description>
      <pubDate>Wed, 14 Sep 2005 17:59:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430367#M40745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-09-14T17:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: oDwg.PlotConfigurations(strPageSetup) Broken!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430368#M40746</link>
      <description>I restarted Acad several times, but when I restarted my whole system,&lt;BR /&gt;
most of my problems went away. Should have done that first.&lt;BR /&gt;
&lt;BR /&gt;
I looked at your code for Augi. I have something very similar working.&lt;BR /&gt;
&lt;BR /&gt;
It still drives me crazy (ier) that you can't do some thing like:&lt;BR /&gt;
    Thisdrawing.layouts("Layout1").ActivePlotConfig.Name&lt;BR /&gt;
&lt;BR /&gt;
But that's where your Lisp/Vlax workaround come in.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
- Ted&lt;BR /&gt;
&lt;BR /&gt;
"Ed Jobe" &lt;NOT.EDLJOBE&gt; wrote in message&lt;BR /&gt;
news:4955954@discussion.autodesk.com...&lt;BR /&gt;
&amp;gt;&amp;gt;If one of the imported pagesetups is the current one&lt;BR /&gt;
for a layout, then I would like to update it with the new import.&lt;BR /&gt;
&lt;BR /&gt;
It shouldn't matter what the current layout is. Just import all updated&lt;BR /&gt;
PlotConfigurations. You will get an error if any already exist in the&lt;BR /&gt;
PlotConfigurations collection due to the fact that a collection is key based&lt;BR /&gt;
and the index key already exists. Therefore, you can't use the same key over&lt;BR /&gt;
again. So I just delete all existing PC's and import all updated ones. I&lt;BR /&gt;
have a dvb on the AUGI Exchange that does all of this, using ObjectDbx to&lt;BR /&gt;
perform the update from a template without user intervention, making it a&lt;BR /&gt;
one-click update. There's also, one in there that presents a user with a&lt;BR /&gt;
dialog where they can choose which ones to update.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
----&lt;BR /&gt;
Ed&lt;BR /&gt;
----&lt;/NOT.EDLJOBE&gt;</description>
      <pubDate>Wed, 14 Sep 2005 18:04:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430368#M40746</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-09-14T18:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: oDwg.PlotConfigurations(strPageSetup) Broken!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430369#M40747</link>
      <description>Cool! Sorry I just didn't understand what you were saying &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
-- Mike&lt;BR /&gt;
___________________________&lt;BR /&gt;
Mike Tuersley&lt;BR /&gt;
___________________________&lt;BR /&gt;
the trick is to realize that there is no spoon...</description>
      <pubDate>Wed, 14 Sep 2005 19:52:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430369#M40747</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-09-14T19:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: oDwg.PlotConfigurations(strPageSetup) Broken!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430370#M40748</link>
      <description>Definitely there are holes in the vba api.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
----&lt;BR /&gt;
Ed&lt;BR /&gt;
----&lt;BR /&gt;
"TedSch" &lt;DDDTED.SCHAEFER&gt; wrote in message&lt;BR /&gt;
news:4956378@discussion.autodesk.com...&lt;BR /&gt;
I restarted Acad several times, but when I restarted my whole system,&lt;BR /&gt;
most of my problems went away. Should have done that first.&lt;BR /&gt;
&lt;BR /&gt;
I looked at your code for Augi. I have something very similar working.&lt;BR /&gt;
&lt;BR /&gt;
It still drives me crazy (ier) that you can't do some thing like:&lt;BR /&gt;
    Thisdrawing.layouts("Layout1").ActivePlotConfig.Name&lt;BR /&gt;
&lt;BR /&gt;
But that's where your Lisp/Vlax workaround come in.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
- Ted&lt;BR /&gt;
&lt;BR /&gt;
"Ed Jobe" &lt;NOT.EDLJOBE&gt; wrote in message&lt;BR /&gt;
news:4955954@discussion.autodesk.com...&lt;BR /&gt;
&amp;gt;&amp;gt;If one of the imported pagesetups is the current one&lt;BR /&gt;
for a layout, then I would like to update it with the new import.&lt;BR /&gt;
&lt;BR /&gt;
It shouldn't matter what the current layout is. Just import all updated&lt;BR /&gt;
PlotConfigurations. You will get an error if any already exist in the&lt;BR /&gt;
PlotConfigurations collection due to the fact that a collection is key based&lt;BR /&gt;
and the index key already exists. Therefore, you can't use the same key over&lt;BR /&gt;
again. So I just delete all existing PC's and import all updated ones. I&lt;BR /&gt;
have a dvb on the AUGI Exchange that does all of this, using ObjectDbx to&lt;BR /&gt;
perform the update from a template without user intervention, making it a&lt;BR /&gt;
one-click update. There's also, one in there that presents a user with a&lt;BR /&gt;
dialog where they can choose which ones to update.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
----&lt;BR /&gt;
Ed&lt;BR /&gt;
----&lt;/NOT.EDLJOBE&gt;&lt;/DDDTED.SCHAEFER&gt;</description>
      <pubDate>Thu, 15 Sep 2005 14:25:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/odwg-plotconfigurations-strpagesetup-broken/m-p/1430370#M40748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-09-15T14:25:49Z</dc:date>
    </item>
  </channel>
</rss>

