I have a startup switch to open out template (DWT), this works fine. I am looking for a switch that will ask the user to "save drawing as" a project as soon as it opens. Anyone know what to use for the switch? Please advise, Thanks.
|
I have a startup switch to open out template (DWT), this works fine. I am looking for a switch that will ask the user to "save drawing as" a project as soon as it opens. Anyone know what to use for the switch? Please advise, Thanks.
If a statup switch is required, then /s to run a script that has one line in it,
SAVEAS
otherwise, it would make more sense to me to put a call in acaddoc.lsp to see if the drawing is named, and if not named, run SAVEAS, else do nothing.
In this situation, I'd suggest you go with the Script route via /b switch, as this is executed last in the startup sequence... Calling this SaveAs Command via AcadDoc.lsp (while possible) may be problematic given there are other processes still taking place/loading... Won't know of limitations for sure until this is tested.
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
good catch, it's the /b that calls a script, not /s -- here I was getting lazy and not checking.....
If you choose to run a script rather than working with acaddoc.lsp, you'll still need to check if the drawing has been named. It's quite feasible to start Acad by dragging a dwg file onto the desktop icon, and that's at least one case where you would not want to blindkly force a SaveAs.
I think then, that the simplest script would be (if (=(getvar "dwgtitled") 0)(command ".saveas" "" "~"))
No worries; More on Startup Switches
... Note the update following 2013 SP1.1, and be sure to check for potential changes following the release of 2014 (and the myriad of hotfixes, and updates that ensue).
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
Last edited by Darren Allen; 2013-03-12 at 12:29 PM.
Yes, and save it wherever you want -- just make sure that the path and name of the .scr file is included in your desktop shortcut.
so, if the script is saved as mystart.scr, and saved in m:\common stuff\files\, then after the /b you would have:
"M:\COMMON STUFF\FILES\MYSTART.SCR"