Skip to Main Content
Need Support? Let’s guide you to the right answer or agent.
Workspace SYNCHRO 4D Pro
Created by Arpit Prakash
Created on May 7, 2025

Improve cost codes (from Modeler) in 4D Pro

Cost Codes in 4D Pro
The cost code information comes in the following format, which is not usable at all. How do I aggregate the quantities at Task level?

One suggestion could be to have the following setup -

User Field

Value

Cost Code 1

23560.1

Cost Code 1 Quantity

76.10

Cost Code 2

25000.2

Code Code 2 Quantity

180.5



  • ADMIN RESPONSE
    May 15, 2025

    Hi Arpit,

    Thanks for your time this week to discuss the ideas. I’ve reviewed the concept again and have written the scripts that can reorganise the data based on your requirements.

    These scripts need to be applied to Resources.

    10.01.02.001 - cost code from Modeler

    Cost Code 1 -new UF

    Cost Code 1 Quantity -new UF


    RESOURCE( EXIST UFV("10.01.02.001") ) ASSIGN_UF("Cost Code 1 ", STRING, ("10.01.02.001"))

    RESOURCE( EXIST UFV("10.01.02.001") ) ASSIGN_UF("Cost Code 1 Quantity", FLOAT, UFV("10.01.02.001"))

    Kind Regards,

    Maria

  • Admin
    Jacqueline Chen
    Jun 5, 2025

    Arpit I need one more clarification here:

    1. How about Work Step code and name at all? Is 23560.1 a Cost Code or a Work Step (Code) for you?

    2. Do you care about Cost Code Name? Or the Code is good enough for you.

    Thank you!

  • Admin
    Jacqueline Chen
    May 28, 2025

    @Guest still looking for a quick answer to my second question. Could you please respond at your earliest convenience?

  • Arpit Prakash
    May 28, 2025

    Bentley team,

    Thank you for the workaround! It works if there is a limited number of known Cost Codes. A typical project has about 300+ codes, which will be a challenge to write and run the scripts for. I will give this a shot nonetheless and see if the system will hold up :D

  • Admin
    Jacqueline Chen
    May 27, 2025

    @Guest Two follow-up questions from me
    1. Was the provided workaround acceptable?

    2. Your scenarios and example provided here - the selected element has more than one cost code assigned, and each with a different quantity, correct?


  • Admin
    Maria Protasova
    May 15, 2025

    Hi Arpit,

    Thanks for your time this week to discuss the ideas. I’ve reviewed the concept again and have written the scripts that can reorganise the data based on your requirements.

    These scripts need to be applied to Resources.

    10.01.02.001 - cost code from Modeler

    Cost Code 1 -new UF

    Cost Code 1 Quantity -new UF


    RESOURCE( EXIST UFV("10.01.02.001") ) ASSIGN_UF("Cost Code 1 ", STRING, ("10.01.02.001"))

    RESOURCE( EXIST UFV("10.01.02.001") ) ASSIGN_UF("Cost Code 1 Quantity", FLOAT, UFV("10.01.02.001"))

    Kind Regards,

    Maria