How to add your knowledge

Revit Server Model Creation Command-Line Utility

    You can use the Revit Server model creation command-line utility to automate the creation of local models to facilitate worksharing. You can place new local models directly onto team members' machines or into directories where they can be accessed.

    The RevitServerTool.exe can be installed and run on the following:

    • A machine that has Revit installed
    • A machine that has a local Revit server installed
    • A machine that has a central Revit server installed

    On a Revit user's machine, the tool is installed in INSTALLDIR\Program\RevitServertoolcommand\. On local and central servers, the tool is installed in INSTALLDIR\tools\RevitServerToolCommand.

    NoteIn order to use this command-line utility, you should be familiar with DOS and understand the structure of command lines.

    Command and Options

    Command Result
    l, createLocalRvt Creates a local model from the specified server-based central model.
    Options Result
    <model path> A model path relative to the Revit server project directory.
    -d, -destination A path that specifies the location and file name of the new model. Absolute, relative, and UNC paths are supported. By default, the new model is created in the user's working directory. For example, C:\\Users|<username>\Document\RevitServerTool\<modelname>.rvt
    NoteIf the new model name is not specified in the destination path, by default the name of the server-based central model is used.
    -s, -server Revit server name. By default, if the environment is configured to work with a specific Revit server, that server name is used.
    -o, -overwrite Overwrites the destination model if it already exists.

    Usage:

    RevitServerTool createLocalRVT <model path> [-d|-destination <path>] [-s-|server <server name>] [-o|-overwrite]

    Usage Result
    RevitServerTool createLocalRVT <model path> Creates a local copy of the specified model path in the user's personal directory, using the server name defined in the environment variable, and the user name defined in the OS.
    RevitServerTool createLocalRVT <model path> [-destination <path>] [server <server name>] [-overwrite] Creates a local copy of the specified model path from the specified Revit server at the destination path location.

    Command-line Usage Example

    NoteThe use of quotations in the example below is required.

    To create a local model from a central model called "As-Built complex.rvt," found on Revit Server in the directory "2011 Hospital Project"

    • RevitServerTool createLocalRvt "2011 Hospital Project\As-Built complex.rvt" -s "SERVER01" -o

    OR

    • RevitServerTool L "2011 Hospital Project\As-Built complex.rvt" -s "SERVER01" -o

    To create a local model from this same central model, giving it the name "As-Built complex_myLocal.rvt" and storing it in the folder "C:\local files"

    • RevitServerTool createLocalRvt "2011 Hospital Project\As-Built complex.rvt" -s "SERVER01" -d "c:\local files\As-built complex_myLocal.rvt" -o

    OR

    • RevitServerTool L "2011 Hospital Project\As-Built complex.rvt" -s "SERVER01" -d "c:\local files\As-built complex_myLocal.rvt"  -o