- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Howdy All,
I'm pretty new to automating CAD tasks, so I've been scouring forums and other corners of the internet trying to create a script to select and apply a different page setup in my paperspace layout.
Backstory: Many of my drawings have PDF or None as the current page setup. I need to apply the already-loaded page setup "UEU" to be the current page setup for my active layout.
The following keystrokes work when I type them into my command line.
pagesetup
u; selecting the page setup I want, based on the first letter of the setup name
alt+s; set current
alt+c; close
When I attempt to run this as a script, the popup window opens but does not highlight the appropriate page setup and thusly hangs up the rest of the script. --After fixing the page setup selection, I'll need to figure out how to write alt+ into a script... but that's next step.-- 🙂
I've tried recording these steps as a macro but replay also hangs up after opening the page setup manager window.
I've tried inserting and redefining the page setup from another file, but it didn't apply the new setup as current.
I've tried various lisps and scripts from forums/chatgpt, but these have only returned errors.
Anyone have a suggestion of what to try next?
Solved! Go to Solution.