Hi,
Is there a way to automatically change the level name of an element to be the same as the value of an ItemType attached to the same element?
Regards,
Chris
Hi Chris,
I am not sure whether I understand your question right.
Chris Hunt said:Is there a way to automatically change the level name of an element
"Level name of the element" does not makes sense in MicroStation, because the level name is a feature of level itself and can be changed (level is renamed), whereas the element is still in the same level.
I assume you mean "to change level, where the element is placed"?
Chris Hunt said:to be the same as the value of an ItemType attached to the same element?
ItemTypes properties can display element properties, but cannot change the properties. The workflow is one direction and read only. Expression itself cannot change anything is a design file, it's similar to a query.
There is probably not many reasons why to store level name in ItemType property, because level is intrinsict (native) feature of every graphical element, so it only duplicates this information.
Chris Hunt said:Change level name to be the same as the value of an ItemType
Can you provide more details how it should work and why do you need it?
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Hi Jan, thanks for your response. 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
Ok, it makes sense now, thanks for the details :-)
Chris Hunt said:I am importing ifc files into openroads
I recommend to ask in OpenRoads Forum how such remapping can be done in ORD. I do not know civil products in details, but for me it seems IFC support (export / import) in ORD is quite limited black box (comparing e.g. to widely configurable IFC conversion in building products).
Chris Hunt said:The importred ifc file has an item type called cad_layer on each element that I need as the level/layer name
On MicroStation level I guess it can be done using VBA. ItemTypes are supported in VBA, on the other hand such code should take care about situations when level defined in IFC does not exist in active DGN file.