AutoCAD Electrical General

Reply
Active Contributor
JCard
Posts: 35
Registered: ‎03-30-2011
Message 1 of 2 (256 Views)

Script breaks Project Navigation Buttons

256 Views, 1 Replies
10-14-2011 08:36 AM

We have a page setup script that we were running successfully in 2011 and now seems to break in 2012.  Has the plot configuration changed?  We have also noticed that when the script bombs out, the Previous and Next Buttons for Project Navigation no longer work and require a session shutdown of ACADE 2012.  It seems as if there are a different set of plot configuration inputs between the 2011 and 2012 releases...???  We have managed to find what seems to bomb our script, but not the navagation buttons after the script breaks.

 

We typically use the Project Utilities (Project Tab > Project Tools > Utilities) to apply the page setup to our project drawings for plotting.

 

I have attached the old and the corrected script for review and troubleshooting. (keep in mind that these are set for our plotter PC3 and color table CTB files, so you will have to modify these to match your setup.)

JCard
Electrical Designer
Logical Systems, LLC
*Expert Elite*
rhesusminus
Posts: 896
Registered: ‎09-21-2007
Message 2 of 2 (253 Views)

Re: Script breaks Project Navigation Buttons

10-14-2011 10:19 AM in reply to: JCard

As far as I can see, the script you used in 2011 was wrong. There was a couple of y's and n's too much. but these error didn't cause any trouble, as they were in the end of the command string, and only caused a couple of "unknown command" errors, before the qsave was executed.

 

The script that works with both 2011 and 2012 are:

(command "-plot" "Yes" "Model" "Fax" "Letter" "Millimeters" "Landscape" "No" "Extents" "Fit" "0,0" "Yes" "Monochrome.ctb" "Yes" "As" "No" "Yes" "No" "qsave")

 The questions asked by the -plot command are the same for both 2011 and 2012 as you can see here:

AutoCAD 2012:
Command: -plot
Detailed plot configuration? [Yes/No] <No>: Yes

Enter a layout name or [?] <Model>: Model
Enter an output device name or [?] <Fax>: Fax
Enter paper size or [?] <Letter>: Letter
Enter paper units [Inches/Millimeters] <Millimeters>: Millimeters
Enter drawing orientation [Portrait/Landscape] <Landscape>: Landscape
Plot upside down? [Yes/No] <No>: No
Enter plot area [Display/Extents/Limits/View/Window] <Extents>: Extents
Enter plot scale (Plotted Millimeters=Drawing Units) or [Fit] <Fit>: Fit
Enter plot offset (x,y) or [Center] <0.00,0.00>: 0,0
Plot with plot styles? [Yes/No] <Yes>: Yes
Enter plot style table name or [?] (enter . for none) <monochrome.ctb>: 
monochrome.ctb
Plot with lineweights? [Yes/No] <Yes>: Yes
Enter shade plot setting [As displayed/legacy Wireframe/legacy Hidden/Visual 
styles/Rendered] <Legacy wireframe>: As
Write the plot to a file [Yes/No] <N>: No
Save changes to page setup [Yes/No]? <N> Yes
Proceed with plot [Yes/No] <Y>: No

AutoCAD 2011:
Command: -plot
Detailed plot configuration? [Yes/No] <No>: Yes

Enter a layout name or [?] <Model>: Model
Enter an output device name or [?] <None>: Fax
Enter paper size or [?] <Letter>: Letter
Enter paper units [Inches/Millimeters] <Millimeters>: Millimeters
Enter drawing orientation [Portrait/Landscape] <Portrait>: Landscape
Plot upside down? [Yes/No] <No>: No
Enter plot area [Display/Extents/Limits/View/Window] <Display>: Extents
Enter plot scale (Plotted Millimeters=Drawing Units) or [Fit] <Fit>: Fit
Enter plot offset (x,y) or [Center] <-13.65,11.55>: 0,0
Plot with plot styles? [Yes/No] <Yes>: Yes
Enter plot style table name or [?] (enter . for none) <>: Monochrome.ctb
Plot with lineweights? [Yes/No] <Yes>: Yes
Enter shade plot setting [As displayed/legacy Wireframe/legacy Hidden/Visual 
styles/Rendered] <As displayed>: As
Write the plot to a file [Yes/No] <N>: No
Save changes to page setup [Yes/No]? <N> Yes
Proceed with plot [Yes/No] <Y>: No 

 

 I can't however, reproduce the error you got, that the navigation stops to work when something goes wrong in your script. I've tried to create error in the script manually, but it still works as it's supposed to.

 

Maybe the problems are drawing oriented, and that's why I can't reproduce the error? Could you post a drawing where the script stops?

 

THL


THL
Please select "Accept As Solution" if this post answers your question. Kudos don't hurt either. ;-)

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Manufacturing Community
The Manufacturing Community provides additional access to tips, tutorials, blogs and networking with peers.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

New AutoCAD Electrical Category!

The AutoCAD Electrical forum has moved into it's very own category page, and can no longer be found within the Additional Product Forums.

Ask the Community