Plot Object Lineweights - Default to OFF

Plot Object Lineweights - Default to OFF

jlaidle1
Advocate Advocate
1,303 Views
3 Replies
Message 1 of 4

Plot Object Lineweights - Default to OFF

jlaidle1
Advocate
Advocate

Is there a variable that can control this option to be unchecked by default, or a LSP that can do that?

 

2019-03-21_10-27-01.jpg

John Laidler
ITO - Application Management


Please use "Accept as Solution" & give "Kudos" if this response helped you.

0 Likes
1,304 Views
3 Replies
Replies (3)
Message 2 of 4

Moshe-A
Mentor
Mentor

@jlaidle1  hi,

 

As far as i understand the plot dialog is filled with a predefined page setup name. if you define a custom page setup  and disable the Plot object lineweights you'll get what you want?!

 

(setq acad (vlax-get-acad-object))
(setq doc (vla-get-activedocument acad))
(setq plcfgs (vla-get-plotconfigurations doc))
(setq pcfg (vla-add plcfgs "setup1" :vlax-true))  ; model page setup

(vla-put-PlotWithLineweights pcfg :vlax-true) ; plot using plotstyle

(vlax-release-object pcfg)
(vlax-release-object plcfgs)
(vlax-release-object doc)
(vlax-release-object acad)

untested

 

moshe

0 Likes
Message 3 of 4

CodeDing
Advisor
Advisor

@jlaidle1 ,

 

Until somebody MUCH more experienced than I provides you with some sort of method to permanently turn off that value, I am going to HIGHLY recommend you do the following..

1). Find your default template location..

image.png

2). Navigate to that file location and create a copy of the existing template..

image.png

3). Open the original template, Modify ALL layout tab Page Setups and UNCHECK that box (Select OK when finished)..

image.pngimage.png

4). Save this .dwt over the original file (You still have a copy)..

5). Open a new default drawing (since it is apparent you're not using custom templates).

6). Reap the benefits of your labor..

image.pngimage.png

 

Best,

~DD

0 Likes
Message 4 of 4

ronjonp
Advisor
Advisor

My buddy John! 🙂 Add this to your startup .. although named page setups as mentioned above are a better solution IMO.

(vlax-for l (vla-get-layouts (vla-get-activedocument (vlax-get-acad-object)))
  (vla-put-plotwithlineweights l :vlax-false)
)

  image.png