Item type expresion to read from cell components properties

Hello:

I would like to know if it's possible to read a propertie from a cell component with an expression while creating an item type definition.

In the follownig example, I've dropped a linestyle in order to generate meshes. Doing this now I can group them and the result is exportable to an IFC. But in the process I`m lossing the line lenght.

I had thought that if I added to the group a copy of the line, I could read the lenght from there.

But when tryining to generate an expression inside the item type definition I dont know how to call those properties of the components of the group. I can only call the cell header properties.

Does anyone know how to reach those properties of the cell's components.?

 

Parents
  • I've dropped a linestyle in order to generate meshes

    Better approach would be to not lose length beforehand. A macro which reads length, then drops line and then groups the components and reattaches the length as item.

    Microstation doesn't have IFC export but there is long list of defects in Openroads regarding export to IFC and 3D linestyles. 3D linestyles are unofficial type so it is strange that it is suggested workflow.

  • Yes, that was my initial thought, but my macro skills and microstation api knowledge are not enough, 

    I tried to learn how to read the lenght and how store it, but I wasnt successful.

    Then I thought about this duplicating line solution.

    Furthermore this approach allows double representation. One line would be the 3D linestyle to drop for IFC, in a micostation level, the other would have the drawings linestyle and the length stored in other microstation level.

    At the end with the two lines grouped, I just need to switch on one level or other depending if I'm exporting to IFC or generating drawings.

    Trying to see the bright side :D

    ORD 2022R3 ORDL 2022R3 LumenRT 16.17.59.94 Synchro 06.05.01.05

Reply
  • Yes, that was my initial thought, but my macro skills and microstation api knowledge are not enough, 

    I tried to learn how to read the lenght and how store it, but I wasnt successful.

    Then I thought about this duplicating line solution.

    Furthermore this approach allows double representation. One line would be the 3D linestyle to drop for IFC, in a micostation level, the other would have the drawings linestyle and the length stored in other microstation level.

    At the end with the two lines grouped, I just need to switch on one level or other depending if I'm exporting to IFC or generating drawings.

    Trying to see the bright side :D

    ORD 2022R3 ORDL 2022R3 LumenRT 16.17.59.94 Synchro 06.05.01.05

Children
No Data