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
You can do a search (Explorer) based on cad_layer property then use the property dialog to change the level.You can also use the details dialog to filter/order to perform changes on selection of rows
But as far as I know there is no way to script this. So VBA is the way.
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.918Power InRoads 08.11.09.918OpenRoads Designer 2021 R2
I'm not sure of a direct way to do this, however, you might try the match element command as a test.
https://docs.bentley.com/LiveContent/web/MicroStation%20Help-v17/en/MatchElementAttributes.html
For more information about the Road and Site design tools, visit the Road and Site design WIKI at:
http://communities.bentley.com/products/road___site_design/w/road_and_site_design__wiki