Reply

Modify Location of balloon text

Hi,

Is there any direct API's for modifying the text location of balloon which is attached to the geometry drawing in draft file?

Currently I am using

Solid Edge FrameworkSupport Type Library > Balloon Object : GetKeyPoint Method for 

getting the location of the text and

Solid Edge FrameworkSupport Type Library > Balloon Object : SetKeyPoint Method

 

for setting the text location of balloon. Also here I am using

Solid Edge FrameworkSupport Type Library > Balloon Object : GetTerminator Method

 

 

to determine whether the balloon is attached to geometry drawing or not.

 

Let me know if you have more details on this.

 

Thanks,

Onkar

2 REPLIES

Re: Modify Location of balloon text

I was doing some tests and came to the following conclusion:

 

  • Vertex #1 is always the point which was initially clicked during the balloon creation and may not change even if the user drags later the balloon position
  • Additional vertices are only added when using the Alt-Click to add/insert new points on the leader (or via AddVertex/InsertVertex via API)
  • To set the position of the balloon, you should use the SetKeypoint method with the specific KeyPoint indices shown in the image below
  • Keypoint#0 is always identical to the terminator position
  • The terminator object is normally a Reference object to any of the DVLine2d/DVArc2d/... object types

 

ATTENTION: Vertex index starts at 1, but Keypoint index starts at 0 !!

 

I hope this information is helpful to you.

 

Balloons.png

Re: Modify Location of balloon text

Thanks Martin.

 

It will help me while writing codes for modifying location of balloon text.

 

Thanks,

Onkar