I have seach in the DgnPlatformNet API if there is any property of cell that shows if the cell is annotated? Code in C#.
I have some picture that shows what i mean.
This is the feature in OpenRail Designer that I use to annotate an cell.
And this is the property i got from the cell that is annotated:
Hi Samuel,
I am confused, because you mention OpenRail Designer tool in MicroStation Programming forum, and it is not clear what you are asking about:
What your question is about? To know, whether a cell property "Is annotation" is true?
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Yes the question is how to know wheather a cell "Is annotation" is true. Because in code, i would like to be able to track if the cell have a annotation. And as you said, its a annotation on a civil geometry.
Samuel Wiklund said:Yes the question is how to know wheather a cell "Is annotation" is true.
CellHeaderElement has IsAnnotation property.
CellHeaderElement
IsAnnotation
Samuel Wiklund said:Because in code, i would like to be able to track if the cell have a annotation.
What do you mean by "the cell have a annotation"? The cell is annotation (or is not annotation), which tells how a cell reacts on model scale. It is the cell element feature, a flag stored by MicroStation together with the cell.
When we are in MicroStation API, a cell cannot "have" annotation. In civil world (ORD/ORLD/...), civil features can be annotated, but it is different concept, where "have annotation" formulation can have sense, but a bit fuzzy (does it mean annotation is defined for specific feature or civil object is currently annotated in specific sheet?).
Samuel Wiklund said:the question is how to know wheather a cell "Is annotation"
I searched for IsAnnotation in DgnPlatformNet help and found several matches...
If that isn't the answer to your question, you need to phrase your question more accurately. For example, is this related to the OpenRail Designer API rather than the MicroStation API?
Regards, Jon Summers LA Solutions
Yes I know about that IsAnnotation property but the thing is that the cell does not get that property when I do the annotation. I would like to have some property that tells me *** cell that is annotated with the annotated cell.
Samuel Wiklund said:but the thing is that the cell does not get that property when I do the annotation.
I think you are mixing two completely different topics:
Samuel Wiklund said:I would like to have some property that tells me *** cell that is annotated with the annotated cell.
You must ask in Civil Programming forum, because it is civil feature. MicroStation API cannot help here.
To share some example what do you mean "cell is annotated with the annotated cell" is recommended, because it does not make any sense to me (but my knowledge of ORD/ORLD is basic only). Annotated are civil objects, that have assigned feature definitions.
I think such functionality does not exist even in civil API. I assume that annotation in e.g. cross section knows what feature it belongs to, so it can be updated, but it is one-direction relation. One element (like alignment) can be annotated many times,many different ways in different drawings and/or sheets. To keep this information stored with alignment itself is complex and brings no benefit. Civil Programming forum is the right place where to ask for such information.
Arbetsmodell_2.dgn
this is the dgn-file.