Author Topic: switching plot style paths  (Read 11515 times)

0 Members and 2 Guests are viewing this topic.

GDF

  • Water Moccasin
  • Posts: 2081
Re: switching plot style paths
« Reply #15 on: January 30, 2006, 04:20:48 PM »
Tim

(setenv "PrinterConfigDir" (strcat ARCH#CUSF "PlotCFG"))
(setenv "PrinterDescDir" (strcat ARCH#CUSF "PlotCFG")) ;correct
(setenv "PrinterStyleSheetDir" (strcat ARCH#CUSF "PlotCFG\\PlotStyles"))

This shows plotstyles found

(setenv "PrinterConfigDir" (strcat (getvar "ROAMABLEROOTPREFIX") "\\plotters"))
(setenv "PrinterDescDir" (strcat (getvar "ROAMABLEROOTPREFIX") "\\PMP Files"))
(setenv "PrinterStyleSheetDir" (strcat (getvar "ROAMABLEROOTPREFIX") "\\Plot Styles"))

This shows missing plotstyles

Toggleing back and forth in 2006 seems to work fine...without retarting.
Gary
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

T.Willey

  • Needs a day job
  • Posts: 5251
Re: switching plot style paths
« Reply #16 on: January 30, 2006, 05:01:55 PM »
(vl-registry-read)????
That is just to read what is in the registry, not to update it so that it works correctly in the current session.  At least that is my understanding.  But then again I don't mess with the registry unless I have to, and that doesn't happen too oftern.

Toggleing back and forth in 2006 seems to work fine...without retarting.
Gary
That doesn't seem to have worked for the Danny though per below.
chuck,
the code you provided works to the point of doing the plot.
example:
if I'm currently in a drawing and have my plot style path browsing to "m:/plot styles"
then I use your code,
I will now be browsing to "c:/plot styles" :-)
but when I do a plot, the ctb's will show up as color in preview and when printing. :-(
AutoCAD isn't reading the ctb correctly and takes exiting ACAD and reentering to work.

pmvliet,
when you used the code, did the plot preview show up correctly as well as the print?

I still don't have an answer.  What version are you using Danny?
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

danny

  • Guest
Re: switching plot style paths
« Reply #17 on: January 30, 2006, 05:36:08 PM »
acad version 2004
I'm still looking around for a solution.  Almost ready to give up though... :|
I've seen topics on switching plot paths, but those lisp are very similar. don't know if they ran into the same problem.

pmvliet

  • Guest
Re: switching plot style paths
« Reply #18 on: January 30, 2006, 06:27:10 PM »
I guess it doesn't switch the colortables correctly.
I know that was one reason why you couldn't change profiles during a session of AutoCad.

I bet it has to do when AutoCad reads in that information. It only does it upon startup.
Once it is read, it no longer looks at that information.

So somehow we need to figure out how to get AutoCad to re-read that variable...

 :|

Pieter