This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Custom User Field for the name of the parent 3d object?

I would like to make  a custom user field for resources that displays the filename of the 3D Object that it is derived from. How would I do this?

Parents Reply Children
  • I can't share due to security and size limitations, but here's my situation. I had to make modifications to a revit model and used AutoCAD to split many objects at once and exported as DWG. This lost most of the BIM information so to try and organize the 3D objects and/or resources, I'd like to be able to see in a user field for either what the AutoCAD layer name is (immediate parent, here it's A-COLS-1) and/or the parent file name.

  • Thanks for the additional info, Gary.

    You can still use the following code to get the root parent file name, though remove 3D when working with 3D User Field - 

    LEVEL_1.NAME 

    To get the immediate parent name, you can use this one - 
    PARENT.NAME

    Here's what this will look like - 
  • Hi Arpit,

    I'm just getting into UFs and how powerful they are. I got the formulas working to show my 3D object's name and immediate parent's name, but I can't get the root filename formula to work. Same error:
    Error: cannot parse UF in formula for UF[Root Filename] : Error: unknown element in formula starting [LEVEL_1.NAME ]

    Here's my UF window

  • Hi Gary, 

    Can you confirm if you are seeing the same colors in the Formula as well - 

    Try typing out the formula instead of copy/paste. Also make sure you are running this for the 3D OBjects, and not Resources.

    If everything looks the same as the screenshot, then I am not sure what the issue could be. You can probably remove all the data besides a few geometries and send over the SP file for review as well.

    Otherwise, I will recommend reaching out to synchrosupport@bentley.com

  • Hi Gary, 

    Additional to to Arpit's check item.

    Can you tell us what is your SYNCHRO build? Are you using 6.4.1.2? Because the LEVEL_ command is only available in 6.4.1.2 build. 

    If you use previous build, you can use PARENT.PARENT....  command and count how many level is the root level. 

    Best regards,

    Indrawan Wijaya

    Answer Verified By: Gary Zimmer