FAQ: How is a Batch File Based Settings Deployment done in Advance Steel?

Note: It is recommended that the settings described in this document be made by a Network Administrator..

When creating a batch file deployment it is equally important to create the Batch (*.bat) to transfer databases and also all the other relative data sources for Advance Steel. These come in the form of DWG files, template files (DWT) and plot styles (CTB). All these files have relative locations within the Advance Steel structure and should be considered for the batch transfer.

Server Setup with Batch file control

Setup and Management

  1. Management

    You can manage your shared files in different ways. However, some of them are simpler and more risk free than others:

    • The system admin can be the Lead Detailer - This means that changes can be tested live and there is a risk that accidental changes go viral.
    • Set up one user to upload copy files to the server - Other users can download the copy files from the server.
    • Add a shortcut to a the *.bat file in the Windows Startup Folder: C:\Users\<user>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup - This is one of the simplest ways to manage your shared files.
    • The best way to manage your shared files is to add a shortcut to the *.bat file in the logon script: Control Panel -> User Accounts -> Manage User Accounts -> Users and Groups -> Properties - This means that in order to get the updated version of the shared files, users don't need to restart their computers, but they can simply log off and then log back on.



  2. Setup
    • Set up shared folder on network (e.g. "Advance Steel Settings").
    • Lead detailer has write access to that folder.
    • Other detailers have read-only access to that folder.
    • Map the shared folder as a System Drive (e.g. Z:/).
    • Collect computer network names for all machines.
    • Create and copy batch file to all machines.
    • Modify or comment out unwanted lines.

Shared folders (default locations on local drives)

Below are the primary types of data sources, these are described with their relative locations found in a typical local machine install, that could then be transferred as a central data source that is managed by a system/CAD Administrator:
  • C:\ ProgramData\Autodesk\Advance\Data
    • Profiles
  • C:\ProgramData\Autodesk\Advance Steel 2016\Steel\Data
    • Libraries
  • C:\ProgramData\Autodesk\Advance Steel 2016\User2\Data
    • Custom Drawing Settings
  • C:\ProgramData\Autodesk\Advance Steel 2016\Shared
    • Model Templates
    • Connection Templates
    • Standard Part Templates
    • Bill of Materials Templates
    • Prototypes (Drawing Borders)
    • Quick Documents Settings
    • Symbols
    • Printing Color Tables

Example: bat for Lead Detailer

rem Lead Detailer

robocopy "C:\ProgramData\Autodesk\Advance\Data" "Z:\Advance Steel Settings\Advance\Data" /mir

robocopy "C:\ProgramData\Autodesk\Advance Steel 2016\Steel\Data" "Z:\Advance Steel Settings\Advance Steel 2016\Steel\Data" /mir

robocopy "C:\ProgramData\Autodesk\Advance Steel 2016\User2\Data" "Z:\Advance Steel Settings\Advance Steel 2016\User2\Data" /mir

robocopy "C:\ProgramData\Autodesk\Advance Steel 2016\Shared" "Z:\Advance Steel Settings\Advance Steel 2016\Shared" /mir

Example: bat for Detailer

rem Detailer

robocopy "Z:\Advance Steel Settings\Advance\Data" "C:\ProgramData\Autodesk\Advance\Data" /mir

robocopy "Z:\Advance Steel Settings\Advance Steel 2016\Steel\Data" "C:\ProgramData\Autodesk\Advance Steel 2016\Steel\Data" /mir

robocopy "Z:\Advance Steel Settings\Advance Steel 2016\User2\Data" "C:\ProgramData\Autodesk\Advance Steel 2016\User2\Data" /mir

robocopy "Z:\Advance Steel Settings\Advance Steel 2016\Shared" "C:\ProgramData\Autodesk\Advance Steel 2016\Shared" /mir

Note: The rem statement is used in the executable .bat files to mark the beginning of a comment. A batch file (.bat) is executed line by line. To add a comment (a line that doesn't need to be executed), the rem statement is placed right before the comment so that the command prompt will know to ignore (not execute) anything that comes after it, on that command line. (e.g. "rem Lead Detailer"). Likewise, you can use the rem statement if you want to deactivate a command:
  • xcopy "Z:\Advance Steel Settings\Advance\Data" "C:\ProgramData\Autodesk\Advance\Data" /v /y - command is activated.
  • rem xcopy "Z:\Advance Steel Settings\Advance\Data" "C:\ProgramData\Autodesk\Advance\Data" /v /y - command is not activated.

Suggested Switches

Note:
  • For a full list of xcopy switches open the command prompt (type cmd in the Run Menu) then xcopy/? .