Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
SYNCHRO Construction Solution
  • Product Communities
SYNCHRO Construction Solution
SYNCHRO 4D Wiki Using Script to rename tasks
    • Sign In
    • Features - SYNCHRO 4D Pro
    • Learning Resources
    • -SYNCHRO 4D Wiki
      • -SYNCHRO 4D Pro
        • +SYNCHRO 4D Pro Guide
        • +Plugins and Tools
        • +SYNCHRO 4D Releases
        • -FAQ
          • SYNCHRO 4D Pro - System and Hardware Requirements
          • +General
          • +Import/Export/Synchronise Schedules
          • +Import/Export/Synchronize Models
          • +Scheduling
          • +Resources and Assignments
          • +3D Objects & 3D Paths
          • +3D View
          • +Filtering
          • +User Fields
          • -Project Controls
            • Can we set Appearance Profiles within SYNCHRO Pro, that were defined in P6?
            • How can I assign 3D Objects to Resource based on matching Properties or User Fields?
            • How can I assign a new User Field ‘Test_Field’ to all the Resources that an existing User Field containing 'Exist_Field' in the name?
            • How can I automatically assign Resources with certain UFC to certain Tasks having a a specific Appearance Profile?
            • How can I change the Appearance Profile of all the Resources having a specific Property or User Field Value.
            • How can I see Cost performance Index (CPI) as a column in the Task list?
            • How can I update Task % complete based on the number of Resources assigned to the Task and their actual Resource Status?
            • Is it possible to group 3D components using a 3D User Field, in order to create Resources?
            • Is there a way to display progress rate as a percentage based on a reference date?
            • Using Script to rename tasks
          • +Animations & Reports
          • +Interoperability
          • Installing Synchro 4D using MSI and Silent Deploy Commands
          • Synchro 4D where can I install codecs from?
          • The user not able to see the Synchro 4D print dialog box due to window 11 operating system
          • Updating AMD Graphics Drivers
          • Updating Nvidia Graphic Drivers
        • +SYNCHRO 4D Pro - Troubleshooting
        • +SYNCHRO 4D Pro - Best Practices
        • Unable to install Synchro 4D PRO
      • +SYNCHRO Modeler
      • +SYNCHRO 4D Schedule API
    • Upgrading from SYNCHRO Pro (and SWP) to 4D Pro (and Control)

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

    Using Script to rename tasks

    My model file has a value in the user field of each object that I would like to use as the task name.  (e.g. the panel name for a bunch of precast panels we're sequencing). Is there a way to automate the renaming of tasks? 

    You can use Script to automate renaming the tasks.

    After the Resources are all assigned to the desired tasks:
    1. Select one of the Resources and confirm the exact name of the User Field you wish to use. You can copy the UF name from the Navigator>User Fields list if needed
    2. Select the tasks that you would like to rename
    3. From the Project Controls ribbon, open the Synchro Script window
    4. Enter the following script into the text box:
    TASK (SELECTED) SET_PROPERTY (NAME, RESOURCE.UFV ("User Field Name"))
    and replace "User Field Name" with the exact name of the User Field you wish to use. 
    5. Press Preview to make sure that the correct tasks and User Field Values are found
    The Object column will show the selected Tasks with their original name and the Argument column will show the User Field value that is to be used for the new Task name
    6. If satisfied with the Preview, press Run, then Close to return to the Task List

    • Share
    • History
    • More
    • Cancel
    • Kate Hester Created by Kate Hester
    • When: Mon, Mar 18 2019 2:06 PM
    • Kate Hester Last revision by Kate Hester
    • When: Mon, Mar 18 2019 2:06 PM
    • Revisions: 3
    • Comments: 0
    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