Automatic loading of page setups

Anonymous
Not applicable

Automatic loading of page setups

Anonymous
Not applicable
 
0 Likes
Reply
522 Views
7 Replies
Replies (7)

Anonymous
Not applicable
Chad, You can give this a try. Create acad.lsp per the template below and pop it into your "c:\documents and settings\...\support\" folder. See if this comes close to giving you what you're looking for. (defun psn ( / ) (setq expert (getvar "EXPERT")) (setvar "EXPERT" 2) (command "_.PSETUPIN" "" "*") (setvar "EXPERT" expert) ) (defun-q my_startup ( / ) (psn) (princ) ) (setq s::startup (append s::startup my_startup))
0 Likes

Anonymous
Not applicable
Thanks Nate,
I am still having problems with plotting though since installing acade 2004.
All my files want to plot as STB the monochrome.CTB that my existing page setup used to call doesn't even exist in the list (actually there are NO CTB's) Our reseller has told me that I must open each drawing and type "convertpstyles" at the command line.
While this works, there must be some way to automatically do this when the drawing opens.
Anybody have any ideas?
0 Likes

Anonymous
Not applicable
fdna49 There is a default setting for the choice of ctb or stb in the options dialog. Select the TOOLS pulldown menu and then OPTIONS. Now select the tab that says PLOTTING. The upper right-hand corner of the dialog gives you the option to select USE COLOR DEPENDENT PLOT STYLES (aka .ctb) or USE NAMED PLOT STYLES (aka .stb). This will set it correctly for any new drawings that are created. As far as having convertpstyles automatically ran when you open a drawing, you could create a VB or Lisp routine to run through and perform this for you. You also may want to try posting this in the general AutoCAD ng as it is general AutoCAD functionality. Maybe someone there has created a routine for this or has found another way to accomplish what you are looking for. Good Luck!! -- Regards, Jared Bunch Technical Support Specialist Autodesk, Inc "fdna49" wrote in message news:26650762.1074546467012.JavaMail.jive@jiveforum2.autodesk.com... > Thanks Nate, > I am still having problems with plotting though since installing acade 2004. > All my files want to plot as STB the monochrome.CTB that my existing page setup used to call doesn't even exist in the list (actually there are NO CTB's) Our reseller has told me that I must open each drawing and type "convertpstyles" at the command line. > While this works, there must be some way to automatically do this when the drawing opens. > Anybody have any ideas?
0 Likes

Anonymous
Not applicable
I don't know the specific answer to your plotting problem but AcadE does support an option to execute a user-defined command or AutoLisp expression whenever a drawing is opened using the AcadE project dialog drawing pick list or the "next/previous" arrow toolbar buttons: 1. Exit AcadE 2. Using any ASCII text editor open up file "c:\documents and settings\....\support\aedata\wd.env" 3. Find this line: *WD_OPEN_DWG,(command "_.ZOOM" "_E"),AutoLISP prog or expression to autoexecute when dwg opened from PROJ dlg 4. Change it to read something like this (make sure you remove the leading "*" comment character) WD_OPEN_DWG,(command "_.CONVERTPSTYLES" "somefilename") 5. Save the file, restart AcadE. Now, every time you pop open a drawing using the AcadE project dialog pick list or arrow keys, this AutoLisp expression (ie. AutoCAD command) will execute as soon as the drawing comes up on screen. Nate. "fdna49" wrote in message news:26650762.1074546467012.JavaMail.jive@jiveforum2.autodesk.com... > Thanks Nate, > I am still having problems with plotting though since installing acade 2004. > All my files want to plot as STB the monochrome.CTB that my existing page setup used to call doesn't even exist in the list (actually there are NO CTB's) Our reseller has told me that I must open each drawing and type "convertpstyles" at the command line. > While this works, there must be some way to automatically do this when the drawing opens. > Anybody have any ideas?
0 Likes

Anonymous
Not applicable
Thanks Jared,
But that was already set to CTB although autocad only shows STB files.
0 Likes

Anonymous
Not applicable
Thanks Nate,
I was pretty sure it could be done, but wasnt sure how.
I am still slightly confused though.
I changed the line you suggested to the following
WD_OPEN_DWG,(command "_.CONVERTPSTYLES""somefilename") but it still dosent run the command.
Did I misstype something, or does the "somefilename" need to be specified.

Thanks
Chad
0 Likes

Anonymous
Not applicable
It needs to be some file name. Use forward slashes (/) in any path part of the name. "fdna49" wrote in message news:31216449.1076032500232.JavaMail.jive@jiveforum1.autodesk.com... > Thanks Nate, > I was pretty sure it could be done, but wasnt sure how. > I am still slightly confused though. > I changed the line you suggested to the following > WD_OPEN_DWG,(command "_.CONVERTPSTYLES""somefilename") but it still dosent run the command. > Did I misstype something, or does the "somefilename" need to be specified. > > Thanks > Chad
0 Likes