Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise Design Integration Wiki Command Line Arguments
    • Sign In
    • ProjectWise Design Integration Wiki
    • ProjectWise Software Download
    • +ProjectWise Learning
    • +Projectwise Licensing
    • ProjectWise Programming and PowerShell
    • +Projectwise Documentation
    • -ProjectWise Explorer Client
      • -ProjectWise Client
        • Actions that Automatically Lock and Check Out Files in ProjectWise Integrated Autodesk Revit
        • Assign Spatial Location to Digital Images
        • Assign Spatial Locations Your Way with VBA
        • Command Line Arguments
        • Creating PDF Files Containing Project Explorer Links [CS]
        • Deploying a Custom Toolbox [TN]
        • Enumfolders.exe  TN
        • Error 55011
        • Exploring The Possibilities Of Properties [CS]
        • How To Setup Attribute Bulk Update [TN]
        • Permissions in ProjectWise [TN]
        • ProjectWise BatchPlot Quick Reference [TN]
        • ProjectWise Explorer White-Screen Socket Close Failure [TN]
        • PWV8.BRG Information Is Now Stored in the Windows Registry TN
        • Reload Workspace Dialog
        • Right Click Document Folder Export, Tools Export Import Wizard, Export Import with Excel TN
        • Send To Options missing from PW Menu
        • Setting Preview On For Microsoft Office Documents [TN]
        • Sharing Customized Toolbars Among ProjectWise Users [TN]
        • Suggested Document Viewers [TN]
        • Using The ProjectWise API In VBA
        • Using The Workspace Profiles Capability In Bentley ProjectWise [CS]
        • Error 56013 Cannot login to the datasource. Invalid database name
        • How to upgrade Projectwise
        • ProjectWise Explorer shows the splash screen for a second and crashes
        • ProjectWise list of services and folders to exclude from a Virus Scan
      • +Featured Articles - Projectwise Explorer
      • +Audit Trail - ProjectWise Explorer Client
      • +Bentley IMS Login
      • +BS1192 Rules Engine - ProjectWise Explorer Client
      • +Check In Dialog - ProjectWise Explorer Client
      • +Document Code - ProjectWise Explorer Client
      • +Document Creation - ProjectWise Explorer Client
      • +Documentation & Help - ProjectWise Explorer Client
      • +Environments and Attributes - PWE
      • +Export / Import Tool - ProjectWise Explorer Client
      • +Folders / Subfolders - ProjectWise Explorer Client
      • +GUI - ProjectWise Explorer Client
      • +Installation - ProjectWise Explorer Client
      • +Integration - General
      • +Integration - AutoCAD - ProjectWise Explorer Client
      • +Integration - Civil 3D - ProjectWise Explorer Client
      • +Integration - DGN Platform - ProjectWise Explorer Client
      • +Integration - MicroStation - ProjectWise Explorer Client
      • +Integration - Office - ProjectWise Explorer Client
      • +Integration - Revit - ProjectWise Explorer Client
      • +Logs Troubleshooting- ProjectWise Explorer Client
      • +Messaging Service - ProjectWise Explorer Client
      • +MISC - ProjectWise Explorer Client
      • +Open / Save / Copy / Move - ProjectWise Explorer Client
      • +Photo Preview - ProjectWise Explorer Client
      • +ProjectWise Managed Workspaces
      • +Project - ProjectWise Explorer Client
      • +Search - ProjectWise Explorer Client
      • +Security and Permissions - ProjectWise Explorer Client
      • +User Tools - ProjectWise Explorer Client
      • +Views - ProjectWise Explorer Client
      • +Workflows & States - ProjectWise Explorer Client
      • +Network Configuration - Client
    • +ProjectWise Administrator
    • +ProjectWise Integration Server
    • +ProjectWise Caching Server
    • +ProjectWise Gateway Server
    • +ProjectWise User Synchronization Service
    • +ProjectWise Orchestration Framework
    • +ProjectWise Connected Services
    • +Working from Home with ProjectWise
    • +ProjectWise Glossary
    • ProjectWise Hosting - Manage Services
    • +ProjectWise Logging and Tools

     
     Questions about this article, topic, or product? Click here. 

    Command Line Arguments

       
      Applies To 
       
      Product(s): ProjectWise Explorer Client
      Version(s): 08.11.07.133
      Environment:  N/A
      Area:  Monikers
      Subarea: 
      Original Author: Robert Hook, Bentley Technical Support Group
       

     

     

     

     

     

     

     

     

    ProjectWise Explorer (pwc.exe) command line arguments/switches

    RELATED TOPIC: List of System Variables for Projectwise Environments

    Switch

    Item

    Value Type

    Description

    -d

    DATASOURCE

    String

    Data source display name

    -u

    USERNAME

    String

    Logical or single sign on user name

    -p

    PASSWORD

    String

    User password

    -t

    ITEMTYPE

    Numeric item type

     

    -v

    ITEMID

    Numeric item id

    <OLD VAULT ID>

    -I

    ITEMID2

    Numeric item id

     

    -c

    CMDID

    Numeric command id

     

    -o

    FLAGS

    Hex numeric value

     

    -vn

    FOLDERPATH

    String literal

     

    -in

    ITEMNAME

    String literal

     

    -r

    VERSION

    String literal

     

    -fp

    FULLPATH

    String literal

     

    -ns

    NOSPLASH

    String option

    hide ProjectWise splash window while loading

    Some common ProjectWise Explorer command line task

    Open PWC with specific data source and single sign on (SSO)

    pwc -d TSG-PW8117133S.bentley.com:pw8117133

    Or, open PWC with specific data source and user credentials

    pwc -d TSG-PW8117133S.bentley.com:pw8117133 -u admin -p admin

    Then select a specific folder ID and show the folder properties

    pwc -d TSG-PW8117133S.bentley.com:pw8117133 -v 187

    Or, select a specific folder name relative to the "Documents" root

    pwc -d TSG-PW8117133S.bentley.com:pw8117133 -u admin -p admin -vn RMH\PRT\

    Then select a specific document name

    pwc -d TSG-PW8117133S.bentley.com:pw8117133 -u admin -p admin -vn RMH\PRT\ -in WS2.dgn

    Then check out that document

    pwc -d TSG-PW8117133S.bentley.com:pw8117133 -u admin -p admin -vn RMH\PRT\ -in WS2.dgn -c 30512

    Or, check out that document without showing a splash screen

    pwc -d TSG-PW8117133S.bentley.com:pw8117133 -u admin -p admin -vn RMH\PRT\ -in WS2.dgn -c 30512 -ns

    Then check it back in

    pwc -d TSG-PW8117133S.bentley.com:pw8117133 -u admin -p admin -vn RMH\PRT\ -in WS2.dgn -c 30511

    NOTES:

    • Each command line executed will open a new ProjectWise Explorer session and process only each unique argument/switch once.  E.g. Currently you cannot execute two commands (-c) for one given session of ProjectWise Explorer.
    • If you do not provide your user name (-u) and password (-p), your Windows single sign on (SSO) credentials will be used.
    • When specifying a folder name (-fn) you must include a trailing backslash in the folder name. e.g.  RMH\PRT\
    • Checking in a document may require additional comments to be provided.  This feature can be disabled if needed by your ProjectWise administrator.  There are a number of settings located in the ProjectWise administrator user settings for Audit Trail entries for comments.
    • When specifying a full path (-fp) to a folder you should not provide a trailing backslash.
    • When specifying a full path and document name (-fp) the document name will be selected (hilighted). When specifying a full path, command ids (-c) do not execute. TR#348889 has been filed to address this.

    Additional Refrerence

    For a list of ProjectWise command IDs it is recommended to download the latest ProjectWise SDK and locate the aawddef.h header file and look for the most current list of IDMD_ commands.  A sample list is provided from ProjectWise SELECTseries SDK below for reference.

    ProjectWise Command ID

    Value

    Comment

    IDMD_OPEN

    30501

    Open document. This identifier can
      also be used as a double-click action identifier.

    IDMD_OPEN_WITH

    30502

    Open document using specified
      application. This identifier can also be used as a double-click action
      identifier.

    IDMD_PRINT

    30503

    Print document.

    IDMD_QUICKVIEW

    30504

    View double-clicked document in
      ProjectWise Quick View. This identifier can also be used as a double-click
      action identifier.

    IDMD_NEW

    30506

    Create new document.

    IDMD_MODIFY

    30507

    Modify document. This identifier
      can also be used as a double-click action identifier.

    IDMD_SAVE_AS

    30508

    Save document as specified.

    IDMD_DELETE

    30509

    Delete document.

    IDMD_CHECKIN

    30511

    Check in document.

    IDMD_CHECKOUT

    30512

    Check out document. This identifier
      can also be used as a double-click action identifier.

    IDMD_COPYOUT

    30513

    Copy out document.

    IDMD_PURGECOPY

    30514

    Purge local document copy.

    IDMD_FREE

    30515

    Free document.

    IDMD_SETMODIFY

    30517

    Modify document set attributes and
      contents.

    IDMD_SETCREATE

    30518

    Create document set.

    IDMD_REMOVE

    30519

    Remove document set.

    IDMD_VERSION

    30521

    Create new document version. This
      identifier can also be used as a double-click action identifier.

    IDMD_STATE

    30522

    Change document state.

    IDMD_PROPERTIES

    30525

    View document properties.

    NOTE: The "Properties"
      menu item is identified by #IDMD_MODIFY - this is because that functionality
      actually modifies document's properties.

    IDMD_EXPORT

    30526

    Export document. This identifier
      can also be used as a double-click action identifier.

    IDMD_REDLINE

    30527

    Redline document. This identifier
      can also be used as a double-click action identifier.

    IDMD_REFRESH_COPY

    30528

    Refresh document copy.

    IDMD_UPDATE_SERVER

    30529

    Update document in the file server.

    IDMD_SEND_MAIL

    30530

    Send mail with document attachment.

    IDMD_SEND_NOTICE

    30531

    Send notice with document
      attachment.

    IDMD_COPY_OUT_TO

    30532

    Copy out document to the specified
      location (User's local working directory location.) This identifier can also be used as a double-click action
      identifier.

    IDMD_SET_FINAL

    30533

    Set final document state.

    IDMD_REMOVE_FINAL

    30534

    Remove final document state.

    IDMD_OPEN_READONLY

    30535

    Open document as read-only. This
      identifier can also be used as a double-click action identifier.

    IDMD_UFLDRREMOVE

    30536

    Remove document from the custom
      hierarchy.

    IDMD_CHANGE_PREV_STATE

    30539

    Change document state to the previous
      one.

    IDMD_CHANGE_NEXT_STATE

    30540

    Change document state to the next
      one.

    IDMD_MODIFY_ATTR

    30541

    Modify document attributes.

    IDMD_COPY_LIST

    30542

    Copy document list.

    IDMD_PRINT_LIST

    30543

    Print document list.

    IDMD_COPYLIST_TABSEPARATED

    30545

    Copy document list with tab
      separated.

    IDMD_COPYLIST_SPACESEPARATED

    30546

    Copy document list with space
      separated.

    IDMD_IMPORT

    30547

    Import document back into the
      system.

    IDMD_GENERATE_CODE

    30548

    Generate document code.

    IDMD_DELETE_SHEET

    30549

    Delete document attribute sheet.

    IDMD_CREATE_MULTIPLE

    30550

    Create multiple document.

    IDMD_OPENVAULT

    30551

    Open folder in separate window.

    IDMD_COPY

    30552

    Copy document.

    IDMD_MOVE

    30553

    Move document.

    IDMD_MEMBERIN

    30554

    Member In dialog open.

    IDMD_MASTER_LINKS

    30555

    Shows master document references.

    IDMD_RELEASE_MASTER

    30556

    Release master.

    IDMD_RELEASE_REF

    30557

    Release references.

    IDMD_COPY_ATTR_DATA

    30558

    Copy document attribute data.

    IDMD_PASTE_ATTR_DATA

    30559

    Paste document attribute data.

    IDMD_ADD_SHEET

    30560

    Add document attribute sheet.

    IDMD_CLEAN_AUDITTRAIL

    30561

    Clean Audit Trail report.

    IDMD_RENAME

    30562

    Rename document.

    IDMD_CODE_RESERVATION

    30563

    Reserve document code.

    IDMD_SEND_MAIL_AS_LINK

    30564

    IDMD_SHARED_CHECKOUT

    30565

    IDMD_IMPORT_FROM

    30566

    IDMD_ADD_COMMENT

    30567

    IDMD_SCAN_REFERENCES

    30568

    IDMD_SHOW_MARKUPS

    30569

    Find all markups of the selected
      document

    IDMD_REFVERSION_MGR

    30570

    Manage reference versions

    IDMD_REFVERSION_UPDATE

    30571

    Update reference versions to latest
      available

    IDMD_CREATE_RENDITIONS

    30572

    Create Renditions

    • ProjectWise
    • SELECTsupport
    • Share
    • History
    • More
    • Cancel
    • Robert Hook Created by Bentley Colleague Robert Hook
    • When: Tue, Sep 17 2013 2:23 PM
    • Robert Hook Last revision by Bentley Colleague Robert Hook
    • When: Fri, Dec 9 2022 8:41 AM
    • Revisions: 6
    • Comments: 2
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies