Change level name to be the same as the value of an ItemType

Hi,

I am importing ifc files into openroads and notice all the elements in an ifc are added to openroads on one level/layer. The importred ifc file has an item type called cad_layer on each element that I need as the level/layer name. Is there a way to automatically change the level/layer name of an element to be the same as the value of an ItemType attached to the same element?

Regards,

Chris

Parents
  • Do you mean, a way to create levels for each cad_layer item type?

    That would probably be something for a VBA macro. ORD functions are not included in the VBA library, but regular Microstation ones are.

    You would need to get a list of values for that item type, then create a level for each one found, then a way to select the appropriate elements and change them to the proper levels. You might be able to get a head start of that first step with a Microstation report, but I don't know much about that.

    There is a dedicated forum for Programming if you are going to try to write something like that.

    MaryB

    Power GeoPak 08.11.09.918
    Power InRoads 08.11.09.918
    OpenRoads Designer 2021 R2

        

Reply
  • Do you mean, a way to create levels for each cad_layer item type?

    That would probably be something for a VBA macro. ORD functions are not included in the VBA library, but regular Microstation ones are.

    You would need to get a list of values for that item type, then create a level for each one found, then a way to select the appropriate elements and change them to the proper levels. You might be able to get a head start of that first step with a Microstation report, but I don't know much about that.

    There is a dedicated forum for Programming if you are going to try to write something like that.

    MaryB

    Power GeoPak 08.11.09.918
    Power InRoads 08.11.09.918
    OpenRoads Designer 2021 R2

        

Children
No Data