<?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 Betreff: Different behavior with same scr code between accoreconsole.exe and AutoCad GUI command with a specific dwg file in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11224306#M44583</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't say what is corrupt, but there is.. (to much data I have to compare to find the real issue, no time for it)&lt;/P&gt;
&lt;P&gt;(I saw a hint to EZDXF and this can be the source issue - the EZDXF library is to write DXF, but it isn't from AutoDESK)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Problem is not in your Script or grapgical objects, it is the modelspace &amp;amp;modelspace-Layoutdata&lt;/P&gt;
&lt;P&gt;Copy to a new file is a workaround, but for batchjobs you need to find a way to "Check" file&amp;nbsp; about this problem, hmm.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jun 2022 11:06:14 GMT</pubDate>
    <dc:creator>cadffm</dc:creator>
    <dc:date>2022-06-09T11:06:14Z</dc:date>
    <item>
      <title>Different behavior with same scr code between accoreconsole.exe and AutoCad GUI command with a specific dwg file</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11223455#M44582</link>
      <description>&lt;P&gt;I'm trying to print a png with script below(save as cad2png.scr):&lt;/P&gt;&lt;P&gt;-PLOT&lt;BR /&gt;Y&lt;BR /&gt;Model&lt;BR /&gt;PublishToWeb PNG.pc3&lt;BR /&gt;&lt;BR /&gt;P&lt;BR /&gt;N&lt;BR /&gt;W&lt;BR /&gt;-1326.42,-1250.0&lt;BR /&gt;46615.8,20025.57&lt;BR /&gt;F&lt;BR /&gt;C&lt;BR /&gt;N&lt;BR /&gt;.&lt;BR /&gt;N&lt;BR /&gt;V&lt;BR /&gt;R&lt;BR /&gt;"testVR.png"&lt;BR /&gt;Q&lt;BR /&gt;N&lt;BR /&gt;N&lt;BR /&gt;Y&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. If I type the code one by one in AutoCad GUI command, it works perfect&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test-Model.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1077725i5069E8517A98B38F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="test-Model.png" alt="test-Model.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I use command as accoreconsole /i test.dwg /s&amp;nbsp;cad2png.scr&lt;/P&gt;&lt;P&gt;The result is empty white image&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="testVR.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1077726iC0CFD111DE781374/image-size/medium?v=v2&amp;amp;px=400" role="button" title="testVR.png" alt="testVR.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The test dwg is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 07:11:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11223455#M44582</guid>
      <dc:creator>吃百</dc:creator>
      <dc:date>2022-06-10T07:11:04Z</dc:date>
    </item>
    <item>
      <title>Betreff: Different behavior with same scr code between accoreconsole.exe and AutoCad GUI command with a specific dwg file</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11224306#M44583</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't say what is corrupt, but there is.. (to much data I have to compare to find the real issue, no time for it)&lt;/P&gt;
&lt;P&gt;(I saw a hint to EZDXF and this can be the source issue - the EZDXF library is to write DXF, but it isn't from AutoDESK)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Problem is not in your Script or grapgical objects, it is the modelspace &amp;amp;modelspace-Layoutdata&lt;/P&gt;
&lt;P&gt;Copy to a new file is a workaround, but for batchjobs you need to find a way to "Check" file&amp;nbsp; about this problem, hmm.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 11:06:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11224306#M44583</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2022-06-09T11:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Different behavior with same scr code between accoreconsole.exe and AutoCad GUI command with a specific dwg file</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11226029#M44584</link>
      <description>&lt;P&gt;Is this not what publish will help with ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The plot part can be a lisp file, your script would (load "myplot") or just do the lisp code in the script. See if that makes any difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2nd stab in dark add (setvar 'ctab "Model") as 1st line&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 00:46:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11226029#M44584</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-06-10T00:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Different behavior with same scr code between accoreconsole.exe and AutoCad GUI command with a specific dwg file</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11226432#M44585</link>
      <description>&lt;P&gt;Thank you for your answering!&lt;/P&gt;&lt;P&gt;But I'm tring to do it in a command batch rather involved in another coding language&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 06:36:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11226432#M44585</guid>
      <dc:creator>吃百</dc:creator>
      <dc:date>2022-06-10T06:36:03Z</dc:date>
    </item>
    <item>
      <title>Betreff: Different behavior with same scr code between accoreconsole.exe and AutoCad GUI command with a specific dwg file</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11226443#M44586</link>
      <description>&lt;P&gt;Thank you for your ansering!&lt;BR /&gt;# Enter shade plot setting [As displayed/legacy Wireframe/legacy Hidden/Visualstyles/Rendered] &amp;lt;As displayed&amp;gt;&lt;BR /&gt;A&lt;BR /&gt;Another hint is if I pick shade plot setting as A(As displayed), the data in scr batch will print correctly.&lt;BR /&gt;Now I create a simple.dwg as problem&amp;nbsp;repetition, the content is only a rectangle as polygon.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 06:54:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11226443#M44586</guid>
      <dc:creator>吃百</dc:creator>
      <dc:date>2022-06-10T06:54:03Z</dc:date>
    </item>
    <item>
      <title>Betreff: Different behavior with same scr code between accoreconsole.exe and AutoCad GUI command with a specific dwg file</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11226610#M44587</link>
      <description>&lt;P&gt;Sea-Haven&lt;/P&gt;
&lt;DIV id="bodyDisplay_1" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;command statement in script or in lisp file or the commands without lisp directly in Lisp doesn't matter (in this case)&lt;BR /&gt;
&lt;P&gt;&amp;gt;&amp;gt;"2nd stab in dark add (setvar 'ctab "Model") as 1st line"&lt;/P&gt;
&lt;P&gt;The file is saved in model, the plot command input is set up to plot the model tab,&lt;/P&gt;
&lt;P&gt;it doesn't matter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9307564"&gt;@吃百&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I saw inconsistencies about materials data, your observation fits quite well!&lt;BR /&gt;VisualStyle-Realistic takes materials into account and if there is a problem, then the output is also crazy (it's a miracle that the empty PDF is created at all)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;"the content is only a rectangle as polygon."&lt;/P&gt;
&lt;P&gt;Nothing to do with your graphical objects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Jun 2022 08:18:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11226610#M44587</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2022-06-10T08:18:55Z</dc:date>
    </item>
    <item>
      <title>Betreff: Different behavior with same scr code between accoreconsole.exe and AutoCad GUI command with a specific dwg file</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11228216#M44588</link>
      <description>&lt;P&gt;p&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2022 02:36:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11228216#M44588</guid>
      <dc:creator>revit.bmz</dc:creator>
      <dc:date>2022-06-11T02:36:20Z</dc:date>
    </item>
    <item>
      <title>Betreff: Different behavior with same scr code between accoreconsole.exe and AutoCad GUI command with a specific dwg file</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11228262#M44589</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is that answer to me or to the TO?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If to me:&lt;/P&gt;
&lt;P&gt;1.Why should I do that? I didn't yet.&lt;/P&gt;
&lt;P&gt;2.it looks wrong (one missing enter = linebreak or space)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, i didn't understand your reply&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 23:38:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11228262#M44589</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2022-06-10T23:38:43Z</dc:date>
    </item>
    <item>
      <title>Betreff: Different behavior with same scr code between accoreconsole.exe and AutoCad GUI command with a specific dwg file</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11232941#M44590</link>
      <description>But if type the code into AutoCAD GUI command, it works well no matter how inconsistent the materials are.&lt;BR /&gt;I think there must be different procedure to run the scr code between AutoCAD GUI command and accoreconsole.exe!!</description>
      <pubDate>Tue, 14 Jun 2022 01:59:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11232941#M44590</guid>
      <dc:creator>吃百</dc:creator>
      <dc:date>2022-06-14T01:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Different behavior with same scr code between accoreconsole.exe and AutoCad GUI command with a specific dwg file</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11233863#M44591</link>
      <description>&lt;P&gt;Just a guess, but sometimes things like file or Block or Layer names with spaces in them cause trouble.&amp;nbsp; Does it work if you enclose the one such line in &lt;FONT color="#0000FF"&gt;quotation marks&lt;/FONT&gt;?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT size="4" color="#0000FF"&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/FONT&gt;PublishToWeb PNG.pc3&lt;FONT size="4" color="#0000FF"&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 11:49:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11233863#M44591</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2022-06-14T11:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Different behavior with same scr code between accoreconsole.exe and AutoCad GUI command with a specific dwg file</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11235302#M44592</link>
      <description>&lt;P&gt;The Script is okay (the plot command itself is the same in acc and acad.exe.&lt;/P&gt;
&lt;P&gt;The problem is file dependend (but I didn't figured out what the problem is. I hadn't enough time for it)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9307564"&gt;@吃百&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;"&lt;SPAN&gt;I think there must be different procedure to run the scr code between AutoCAD GUI command and accoreconsole.exe"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yes, there are a lot of differences between!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But I don't know all cases of&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- you can not do and others where&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- you have to load additional stuff&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am in holiday and pretty sure I won't take time for it the next 3-4 weeks.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Greetings from Italia!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 22:26:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/different-behavior-with-same-scr-code-between-accoreconsole-exe/m-p/11235302#M44592</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2022-06-14T22:26:21Z</dc:date>
    </item>
  </channel>
</rss>

