AutoCAD Electrical
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Script breaks Project Navigation Buttons
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.)
McKee Foods Corp.
Design Drafter
Re: Script breaks Project Navigation Buttons
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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. ;-)
