<?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: Disabel &amp;quot;scale lineweights&amp;quot; in model? in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/disabel-quot-scale-lineweights-quot-in-model/m-p/5861234#M307749</link>
    <description>&lt;P&gt;Sorry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;long time ago I wrote programs in Lisp and I never used the vlax functions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Oct 2015 14:58:52 GMT</pubDate>
    <dc:creator>m_latz</dc:creator>
    <dc:date>2015-10-14T14:58:52Z</dc:date>
    <item>
      <title>Disabel "scale lineweights" in model?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/disabel-quot-scale-lineweights-quot-in-model/m-p/5859292#M307742</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have problems with drawings provided by a customer, probably converted to dwg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to disable "scale lineweights" in plot dialog when plotting Model?&lt;/P&gt;&lt;P&gt;Or a way to check what mode the drawing has.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="Plot-dialog.png" alt="Plot-dialog.png" src="https://forums.autodesk.com/t5/image/serverpage/image-id/194202i5A4653031DD52D8F/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is not supposed to be enabled in model and when I batch plot my scripts don't work when some drawings ask the question "Scale lineweights with plot scale?"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command log&lt;/P&gt;&lt;PRE&gt;Command: plot Detailed plot configuration? [Yes/No] &amp;lt;No&amp;gt;: Y
Enter a layout name or [?] &amp;lt;Model&amp;gt;: Enter an output device name or [?] &amp;lt;DWG To 
PDF.pc3&amp;gt;: dwg to pdf.pc3 Enter paper size or [?] &amp;lt;ISO full bleed A3 (420.00 x 
297.00 MM)&amp;gt;: ISO full bleed A3 (420.00 x 297.00 MM) Enter paper units 
[Inches/Millimeters] &amp;lt;Millimeters&amp;gt;: M Enter drawing orientation 
[Portrait/Landscape] &amp;lt;Landscape&amp;gt;: L Plot upside down? [Yes/No] &amp;lt;No&amp;gt;: N Enter 
plot area [Display/Extents/Layout/View/Window] &amp;lt;Window&amp;gt;: W Enter lower left 
corner of window &amp;lt;0.000000,0.000000&amp;gt;: none Enter upper right corner of window 
&amp;lt;31500.000000,22275.000000&amp;gt;: none Enter plot scale (Plotted Millimeters=Drawing 
Units) or [Fit] &amp;lt;1=75&amp;gt;: 0.013333333333333 Enter plot offset (x,y) or [Center] 
&amp;lt;Center&amp;gt;: CENTER Plot with plot styles? [Yes/No] &amp;lt;Yes&amp;gt;: y Enter plot style 
table name or [?] (enter . for none) &amp;lt;monochrome.ctb&amp;gt;: SVK monchrome.ctb Plot 
with lineweights? [Yes/No] &amp;lt;No&amp;gt;: Y Scale lineweights with plot scale? [Yes/No] 
&amp;lt;No&amp;gt;: A
Command: C:\PDF_OUT\E1234-1.PDF Unknown command "PDF".  Press F1 
for help.

Command: N Unknown command "N".  Press F1 for help.

Command: Y Unknown command "Y".  Press F1 for help.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Micke&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 14:58:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/disabel-quot-scale-lineweights-quot-in-model/m-p/5859292#M307742</guid>
      <dc:creator>Micke_ELE</dc:creator>
      <dc:date>2015-10-13T14:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Disabel "scale lineweights" in model?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/disabel-quot-scale-lineweights-quot-in-model/m-p/5860705#M307743</link>
      <description>&lt;P&gt;Can you upload such a dwg file ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please delete confidential contents from the drawing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 09:39:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/disabel-quot-scale-lineweights-quot-in-model/m-p/5860705#M307743</guid>
      <dc:creator>m_latz</dc:creator>
      <dc:date>2015-10-14T09:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Disabel "scale lineweights" in model?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/disabel-quot-scale-lineweights-quot-in-model/m-p/5860744#M307744</link>
      <description>&lt;P&gt;I attach 2 files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E1234-1.dwg (AC2010) and E1234-2.dwg (AC2013), both have "scale lineweights" enabled in Model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I belived the name of model tab was the cause but then I foundout that E1234-2.dwg have the same trouble but the name is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used this to check the tab name&lt;/P&gt;&lt;PRE&gt;(vl-load-com)
(vla-get-name (vla-item (vlax-get-property (vla-get-activedocument (vlax-get-acad-object)) 'Layouts) 1))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E1234-1 returns "MODEL"&lt;/P&gt;&lt;P&gt;E1234-2 returns "Model"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Micke&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 10:09:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/disabel-quot-scale-lineweights-quot-in-model/m-p/5860744#M307744</guid>
      <dc:creator>Micke_ELE</dc:creator>
      <dc:date>2015-10-14T10:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Disabel "scale lineweights" in model?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/disabel-quot-scale-lineweights-quot-in-model/m-p/5860831#M307745</link>
      <description>&lt;P&gt;Okay just checked the 2010 version (E1234-1.dwg)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Layout record of the ModelSpace entity is a bit flag set wrong:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command: (entget (handent "53"))&lt;BR /&gt;((-1 . &amp;lt;Entity name: 7ffffb06b30&amp;gt;) (0 . "LAYOUT") (5 . "53") (102 .&lt;BR /&gt;"{ACAD_XDICTIONARY") (360 . &amp;lt;Entity name: 7ffffb0b300&amp;gt;) (102 . "}") (102 .&lt;BR /&gt;"{ACAD_REACTORS") (330 . &amp;lt;Entity name: 7ffffb06b10&amp;gt;) (102 . "}") (330 . &amp;lt;Entity&lt;BR /&gt;name: 7ffffb06b10&amp;gt;) (100 . "AcDbPlotSettings") (1 . "") (2 . "none_device") (4&lt;BR /&gt;. "ISO_A3_(420.00_x_297.00_MM)") (40 . 7.5) (41 . 20.0) (42 . 7.5) (43 . 20.0)&lt;BR /&gt;(44 . 420.0) (45 . 297.0) (46 . -7.5) (47 . -20.0) (48 . 0.0) (49 . 0.0) (140 .&lt;BR /&gt;420.0) (141 . 297.0) (142 . 1.0) (143 . 1.0) &lt;FONT color="#ff0000"&gt;(70 . 2053)&lt;/FONT&gt; (72 . 1) (73 . 0) (74&lt;BR /&gt;. 4) (7 . "monochrome.ctb") (75 . 0) (147 . 1.0) (76 . 1) (77 . 2) (78 . 300)&lt;BR /&gt;(148 . 0.0) (149 . 0.0) (100 . "AcDbLayout") (1 . "MODEL") (70 . 1) (71 . 0)&lt;BR /&gt;(10 0.0 0.0 0.0) (11 12.0 9.0 0.0) (12 0.0 0.0 0.0) (14 -14.5542 -4.0 0.0) (15&lt;BR /&gt;31485.4 22271.0 0.0) (146 . 0.0) (13 0.0 0.0 0.0) (16 1.0 0.0 0.0) (17 0.0 1.0&lt;BR /&gt;0.0) (76 . 0) (330 . &amp;lt;Entity name: 7ffffb06980&amp;gt;) (331 . &amp;lt;Entity name:&lt;BR /&gt;7ffffb099a0&amp;gt;))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The group 70 Code (in your example 2053) is a "Plot layout flag".&amp;nbsp;And Bit 10 (1024) is responsible for the Model Type. This is set wrong in your examples. Turn this bit off (2053-1024) then your plot dialog&amp;nbsp;is correct. Or modify your program to check this setting here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it is clear, if not let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To "decrypt" all settings for the LAYOUT object check the DXF reference manual from Autodesk. It can also be downloaded from their webpage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 11:45:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/disabel-quot-scale-lineweights-quot-in-model/m-p/5860831#M307745</guid>
      <dc:creator>m_latz</dc:creator>
      <dc:date>2015-10-14T11:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Disabel "scale lineweights" in model?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/disabel-quot-scale-lineweights-quot-in-model/m-p/5861064#M307746</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added following to my plot function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(vl-load-com)
(if (and (= "MODEL" (strcase (getvar "CTAB")))(= (vla-get-modeltype (vla-get-activelayout (vla-get-activedocument (vlax-get-acad-object)))) :vlax-false))
 (progn
  (setq ed (entget (handent (vla-get-handle (vla-item (vlax-get-property (vla-get-activedocument (vlax-get-acad-object)) 'Layouts) 1)))))
  (setq ed (subst (cons 70 (- (cdr (assoc 70 ed)) 1024))(assoc 70 ed) ed))
  (entmod ed)
  (setq ed nil)
 )
)&lt;/PRE&gt;&lt;P&gt;Works grate now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Micke&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 13:53:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/disabel-quot-scale-lineweights-quot-in-model/m-p/5861064#M307746</guid>
      <dc:creator>Micke_ELE</dc:creator>
      <dc:date>2015-10-14T13:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Disabel "scale lineweights" in model?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/disabel-quot-scale-lineweights-quot-in-model/m-p/5861173#M307747</link>
      <description>&lt;P&gt;Micke,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made a "stupid" mistake. That it works is just for that special case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bit&amp;nbsp;11 (1024) must set to ON for ModelType ModelSpace. In our special case 2053 - 1024 = 1029 (= 1024 + 4 + 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But you have to check like this .... (you need to optimise for your program, just to explain)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(if (/= (logand (cdr (assoc 70 ed)) 1024) 1024)&lt;BR /&gt;&amp;nbsp; (setq (cons 70 (logior (cdr (assoc 70 ed))&amp;nbsp; 1024)))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the if statement is not true, Model Space is correct&amp;nbsp;and you do not need to modify.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But your code could run into problems because if the groupcode 70&amp;nbsp;is less than 1024, your value gets negative !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this is correct now, please test !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried to insert in your code snippet:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(vl-load-com)&lt;BR /&gt;(if (and (= "MODEL" (strcase (getvar "CTAB")))(= (vla-get-modeltype (vla-get-activelayout (vla-get-activedocument (vlax-get-acad-object)))) :vlax-false))&lt;BR /&gt;&amp;nbsp;(progn&lt;BR /&gt;&amp;nbsp; (setq ed (entget (handent (vla-get-handle (vla-item (vlax-get-property (vla-get-activedocument (vlax-get-acad-object)) 'Layouts) 1)))))&lt;BR /&gt;&amp;nbsp; (if (/= (logand (cdr (assoc 70 ed)) 1024) 1024)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (progn&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq ed (subst (cons 70 (logior (cdr (assoc 70 ed))&amp;nbsp; 1024))(assoc 70 ed) ed))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (entmod ed)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq ed nil)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) ;-- end progn&lt;BR /&gt;&amp;nbsp; ) ;-- end if&lt;BR /&gt;&amp;nbsp;) ;-- end progn&lt;BR /&gt;) ; -- end if&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 14:40:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/disabel-quot-scale-lineweights-quot-in-model/m-p/5861173#M307747</guid>
      <dc:creator>m_latz</dc:creator>
      <dc:date>2015-10-14T14:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Disabel "scale lineweights" in model?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/disabel-quot-scale-lineweights-quot-in-model/m-p/5861217#M307748</link>
      <description>&lt;P&gt;Markus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My if statement check's if modeltype is :vlax-false, then &lt;SPAN&gt;groupcode&amp;nbsp;&lt;/SPAN&gt;70 cannot be less then 1024 I belive?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Micke&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 14:57:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/disabel-quot-scale-lineweights-quot-in-model/m-p/5861217#M307748</guid>
      <dc:creator>Micke_ELE</dc:creator>
      <dc:date>2015-10-14T14:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Disabel "scale lineweights" in model?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/disabel-quot-scale-lineweights-quot-in-model/m-p/5861234#M307749</link>
      <description>&lt;P&gt;Sorry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;long time ago I wrote programs in Lisp and I never used the vlax functions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 14:58:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/disabel-quot-scale-lineweights-quot-in-model/m-p/5861234#M307749</guid>
      <dc:creator>m_latz</dc:creator>
      <dc:date>2015-10-14T14:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Disabel "scale lineweights" in model?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/disabel-quot-scale-lineweights-quot-in-model/m-p/5861284#M307750</link>
      <description>&lt;P&gt;Okay, thank you for taking the time to show me the solution of the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Micke&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 15:12:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/disabel-quot-scale-lineweights-quot-in-model/m-p/5861284#M307750</guid>
      <dc:creator>Micke_ELE</dc:creator>
      <dc:date>2015-10-14T15:12:07Z</dc:date>
    </item>
  </channel>
</rss>

