Scripting Questions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Civil 3D 2021 Batch Save Utility
I have a couple bugs to work out of a script that I am using with the Batch Save Utility. The utility uses AcCoreConsole to execute the commands.
One is the command PSELECT. I'm trying to select everything and set certain properties to Bylayer. The script is:
;------------------------------------------
; Change all LW, LT and Color to bylayer
;------------------------------------------
pselect all
change p lw bylayer lt bylayer C bylayer
Log file shows: Command: pselect Unknown command "PSELECT". Press F1 for help. PSELECT works fine in a regular session.
The second problem is with a Map3D command, MAPCSASSIGN, which assigns a coordinate system to the drawing. Script:
;------------------------------------------
; Change Coordinate System to WISCRS Dane Co Ft
;------------------------------------------
MAPCSASSIGN WISCRS2011-DaneF
Log file returns: Command: MAPCSASSIGN Assign a Coordinate System to the drawing. Empty to remove.
Code: WISCRS2011-DaneF
Which looks just like it does in a regular session, but the coordinate system doesn't change.
Anyone have any ideas how I can get these two commands to work?