Select to view content in your preferred language

How to create multipart graphic element or simply merge them?

335
0
02-28-2024 06:16 PM
HaoWong
Emerging Contributor

For example, when using CreateTextGraphicElement, I can only create a single text graphic. Even with construct function (CIMLabelClass Class—ArcGIS Pro) is the same.

If I need to create a word "ABC", I need to create 3 PointText graphics and set their text to letters A, B, and C respectively, and place them on the specified coordinates for individual locations for each word. (This is because using SplinedText TextType cannot guarantee that these three letters are located at the specified three coordinate points.)

in ArcObjects .NET SDK, we can use IMultiPartTextElement and IGroupElement. However, how can these three generated PointText graphic elements be merged back into one PointText with the text "ABC" now? Or with construct function, how to merge the 3 CIMGraphic variables?

0 Kudos
0 Replies