View Full Version : 2012 old .dwgs lineweight and color issues
kfreitag
2011-04-25, 04:42 PM
In the process of getting the company I work for updated to AutoCAD 2012 I have encounter a strange display issue. some of my old drawings react normally, but others show strange display behavior. The issue is that some drawing will display as a single color (gray). However if I chcange the visual style to anything other than the default of "2D Wireframe" the correct layer colors appear. There is another number of .dwgs that appear in the proper color, but the linw weight displayed is so heavey that you can't read the text. These issues are solved by copying and pasting the entites into a new drawing, but that is not a very friendly solution. i have compared variables and setting, but cannot find a common denominator. Any help is appreciated,
Thanks in advance.
Wanderer
2011-04-25, 05:02 PM
I'd recommend first checking the LWDISPLAY system variable and setting it to OFF, if it's not already.
kfreitag
2011-04-25, 07:58 PM
Tnaks for the quick response, and I checked that variable, but sadly it is already off.
cadtag
2011-04-25, 08:29 PM
Audit the drawings, and/or Recover them?
kfreitag
2011-04-26, 01:07 PM
I have run audits and they return no errors.
Just a thought, on the ones that are effected;
Do you have "Display Plot Styles" checked on?
(and do you have the correct plot styles assigned to them?)
This will make them appear as they would be plotted, given the plot style that is assigned to the layout.
Look into your Page Setup Manager on those drawings to be sure.
Hope that helps
kfreitag
2011-04-26, 04:15 PM
Bingo!! Almost there.
Now how do I automate the removal of the check from that setting.
Thank you Ted.
Bingo!! Almost there.
Now how do I automate the removal of the check from that setting.
Thank you Ted.
Maybe THIS THREAD (http://forums.augi.com/showthread.php?t=129551) will help.. sort of.
This was asking to have the plot style display on (not off)
Maybe THIS THREAD (http://forums.augi.com/showthread.php?t=129551) will help.. sort of.
This was asking to have the plot style display on (not off)
After looking at that routine, I modified it to meet your reqest, if you place this code in your acaddoc.lsp it will turn off the "display plot styles" in every drawing you open.
(defun showpstyle ( / DOC LAYOUTS)
(setq doc (vla-get-activedocument (vlax-get-acad-object))
layouts (vla-get-layouts doc)
); setq
(vlax-for n layouts
(vl-catch-all-apply 'vla-put-showplotstyles (list n :vlax-false))
); vlax-for
(vla-regen doc acAllViewports)
(mapcar 'vlax-release-object (list layouts doc))
(princ)
); defun
(showpstyle)
kfreitag
2011-04-26, 05:50 PM
Here is the error i get with that code: "; error: no function definition: VLAX-GET-ACAD-OBJECT"
I'm guessing that the VLAX functions are part of another addin.
kfreitag
2011-04-26, 06:07 PM
I found it. needed to add the line
(vl-load-com)
Thanks Ted you were a gigantic help!
I found it. needed to add the line
(vl-load-com)
Thanks Ted you were a gigantic help!
Glad I could help!
:beer:
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.