Hi all.
I´m trying to make a cell with custom Item types and would like to change the symbol of the cell depending on some of the custom attributes.
As a stupid example: My cell contains a text field and a premade cell from a cell library. the text field is connected a picklist via item types. I want to be able to select "Circle" or "Box" in the property window and have the cell change between a box and a circle. The cell library contains all necessary shapes. Is there a way to accomplish this?
The target is not to change between a box and a circle but some more advanced item symbols, but the principle is the same. I have a ferly good knowledge on how item types works, it is the symbol change i cant find out how to do.
Thanx in advance.
//Ante.
Andreas Nordlund said:I want to be able to select "Circle" or "Box" in the property window and have the cell change between a box and a circle. Is there a way to accomplish this?
No. Item Types are attached to an element, but don't influence that element.
To achieve what you want requires application development.
Regards, Jon Summers LA Solutions
Hi Andreas,
I agree with Jon: It cannot be done in plain MicroStation.
Andreas Nordlund said:I´m trying to make a cell with custom Item types and would like to change the symbol of the cell depending on some of the custom attributes.
In general, a conditional change from one element to another is not supported. It's possible to change parameters (size), define relationships (constrains) or to filter/modify what is displayed (using Display styles), but not to choose between more elements.
Andreas Nordlund said:Is there a way to accomplish this?
As Jon wrote: You need to write own code to monitor EC data change event and to be able to react on such change.
Andreas Nordlund said:I have a ferly good knowledge on how item types works
I dare to express my doubt, because it's one from core Item Types (and EC data in general) feature: It's only data, attached to a host element (element, model...), nothing else. It cannot control anything, it's defined structure, storing data, only.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point