iLogic - How to use Balloons.AttachToComponent?

iLogic - How to use Balloons.AttachToComponent?

Skadborg.NTI
Advocate Advocate
1,987 Views
4 Replies
Message 1 of 5

iLogic - How to use Balloons.AttachToComponent?

Skadborg.NTI
Advocate
Advocate

iLogic snippets include these two balloon commands:

SyntaxEditor Code Snippet

ActiveSheet.View("VIEW1").Balloons.DoNotAttachToComponent("Pin:1")
ActiveSheet.View("VIEW1").Balloons.AttachToComponent("Pin:1")

They have apperently no impact on the view. It seems that they just prepare for a following command that actually will place the ballon(s).

Anybody knows how to use Balloons.AttachToComponent and Balloons.DoNotAttachToComponent?

 

My alternative will be to traverse through all DrawingCurves in the view and then add balloons on at a time. This seems as a very cumbersome approach to do a autoballoon.

0 Likes
Accepted solutions (1)
1,988 Views
4 Replies
Replies (4)
Message 2 of 5

MjDeck
Autodesk
Autodesk
Accepted solution

Those functions are part of a workflow to re-attach balloons that are already in the drawing. They can't be used for autoballoon.

If you want to autoballoon using the API, I think you would want to iterate over the components in the PartsList. Then find the DrawingCurves that correspond to each component, 


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes
Message 3 of 5

fsanchou
Advocate
Advocate

 

Hi @MjDeck

 

Could you give some examples of uses of these features ("reattach", "AttachToComponent" ) ?

For AutoBalloon, after create iteration, how do you manage arrowhead location?

 

Thanks

 

0 Likes
Message 4 of 5

MjDeck
Autodesk
Autodesk

Hi @fsanchou,

I don't have a good example that involves the iLogic Balloons functions. They're not used often. But if you have a model that uses iLogic rules to suppress and unsuppress components, and you can post it here or send it to me, I might be able to add iLogic balloons code to it.


About your second question: I'm pretty sure you can move the arrowhead of a balloon by modifying its LeaderNodes.


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes
Message 5 of 5

R.Mabery
Advocate
Advocate

Hi,

 

I use a workpoint in the component as my balloon start along with the ModelToSheetSpace method.


Thanks,
Randy Mabery
Applications Expert
IMAGINiT Technologies
0 Likes