Hello,
I try to set the color of a TagElement (it is a TextElement) but unfortunately in the new SDK I can´t find any methods or properties like this on the TagElement. I hope that someone can give me a little example.
Thanks for your help!
Unknown said:I try to set the color of a TagElement (it is a TextElement)
Please clarify: a tag element (type 37) is not the same as a text element (type 17).
All graphic elements have a Color property. It belongs to the base class Element. You should be able to cast your tag or text element using (Element).
Regards, Jon Summers LA Solutions
Robert Menger
Microstation V8i .Net API, C#, MS VS 2012
Unknown said:Did I understand it correct, that this datamodel changed in CONNECT Edition and that instead of TagElements you should use ItemTypes?
For MicroStation CONNECT, Bentley Systems have deprecated tags in favour of Item Types. Deprecated means: "Prefer to use the new technology, because it's new" and "We've hidden the tags tool palette so you won't be tempted to use tags". However, as others have found (search the MicroStation Forum), Item Types are not yet a complete replacement for tags. Tags continue to be supported in MicroStation CONNECT.
Don't get me wrong — I'm very much in favour of Item Types. The technology promises a lot of potential benefits.
This article summarises some CONNECT technology, including Tags and Item Types.
I have not tried this on tag elements, but on line elements I was able to set the color by using the ElementPropertiesSetter.
ElementPropertiesSetter eps = new ElementPropertiesSetter(); eps.SetColor(myColor); eps.Apply(myElement);
Regards
Frode Tørresdal
thank you