<?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 Import PageSetups in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/import-pagesetups/m-p/3422261#M56096</link>
    <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to import a page setup into the active drawing; the code works fine but I get an error when trying to save the file: Error writing/closing file. I've attached the code, can someone help me? I need to run the code in batch mode. I've tried different ways of saving but I get the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Apr 2012 20:54:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-04-19T20:54:39Z</dc:date>
    <item>
      <title>Import PageSetups</title>
      <link>https://forums.autodesk.com/t5/net-forum/import-pagesetups/m-p/3422261#M56096</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to import a page setup into the active drawing; the code works fine but I get an error when trying to save the file: Error writing/closing file. I've attached the code, can someone help me? I need to run the code in batch mode. I've tried different ways of saving but I get the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2012 20:54:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/import-pagesetups/m-p/3422261#M56096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-19T20:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Import PageSetups</title>
      <link>https://forums.autodesk.com/t5/net-forum/import-pagesetups/m-p/3422285#M56097</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't tried anything of your code, but wondering about these things (I would avoid):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Why do you lock the document twice (in &lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;ActiveDrawingImportPageSetups&lt;/FONT&gt; and in&amp;nbsp;&lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;CopyPageSetup&lt;/FONT&gt;)&lt;/LI&gt;&lt;LI&gt;What is the TransAction &lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;tr&lt;/FONT&gt; in&amp;nbsp;&lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;ActiveDrawingImportPageSetups&lt;/FONT&gt; for? You do your transaction-handling in the subroutine already and I don't see any reason for this one (and so for nested transactions).&lt;/LI&gt;&lt;LI&gt;Why do you use COM-object-handling (through PropertyDefinitions of Interop.AcadDocument) for saving, why don't you just use the &lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;db.SaveAs&lt;/FONT&gt; version?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2012 21:03:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/import-pagesetups/m-p/3422285#M56097</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-04-19T21:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Import PageSetups</title>
      <link>https://forums.autodesk.com/t5/net-forum/import-pagesetups/m-p/3422325#M56098</link>
      <description>&lt;P&gt;Hi Alfred,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your quick answer; I had the extra transaction because I had different pagesetups, for model and paper and some layouts were not initialized so I had to make them active and then import the pagesetup. Anyway, I've updated and attached the sample code; it gives me the same error. My feeling is that I am missing something when using the source database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for helping.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2012 21:29:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/import-pagesetups/m-p/3422325#M56098</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-19T21:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Import PageSetups</title>
      <link>https://forums.autodesk.com/t5/net-forum/import-pagesetups/m-p/3422371#M56099</link>
      <description>&lt;P&gt;Ok, I've made a shorter version of the code, and I don't know why I cannot save the file. I've tried to also run the command in application context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2012 21:51:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/import-pagesetups/m-p/3422371#M56099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-19T21:51:54Z</dc:date>
    </item>
  </channel>
</rss>

