Balloon Leader Line Point Alignment

Balloon Leader Line Point Alignment

mitch.bachand
Participant Participant
840 Views
2 Replies
Message 1 of 3

Balloon Leader Line Point Alignment

mitch.bachand
Participant
Participant

Hello, I'm trying to get the balloon leader lines lined up with respect to the reference line (Pink). I don't need it to auto balloon as I need to select which parts I need listed. My plan was to select with the reference line with "CommandManager.Pick(SelectionFilterEnum", then select the balloon leader line point (Refer to the photos attached - the blue circle) to be my X, Y point of reference, After that I would select each leader line point I want to have lined up to be inline to the reference line (Pink) I initially selected. I have what feels like look at every post in regards to leader lines, balloons, and points and I have not seen a solution. I fall short when trying to be able to get the location or any point of reference with a existing leader line point, it seems the API doesn't recognize these points as a way to call them back. I have been able to make new balloons with leader lines and multiple points, I have also been able to get the location of my mouse click (X, Y), and I have also gotten 2 different views lined up parallel by reference lines I selected.

 

I have checked object collection and balloon object.

https://help.autodesk.com/view/INVNTOR/2019/ENU/?guid=GUID-CC73C873-6841-4B2E-8A47-E690BA113D6E

https://help.autodesk.com/view/INVNTOR/2019/ENU/?guid=GUID-6C4C98CB-8909-48EF-B73E-F663424D5B41

 

The first photo is of how I would like the balloons to look after I select them with the proper coding.

The second photo is what I would do to select how many leader line points I want and roughly where there will be.

 

Any advice or help would be appreciated, I don't have any code that this needs to go into, I would be running it separately every time (Which is okay with me).

 

LinedUpFinal.PNG

NotLinedUpFinal.PNG

Please note, I have attached a simple sheet metal part on a drawing but in reality the drawing models I will be using this on have many parts listed but due to a NDA, I will not be providing an detail on that, sorry.

I will also be having different balloon numbers, unlike this example with multiple "1" balloons.

 

Thank you very much!

0 Likes
841 Views
2 Replies
Replies (2)
Message 2 of 3

WCrihfield
Mentor
Mentor

So...will all those balloon objects already exist when the rule starts, then the rule is just for re-aligning them after the fact, or will you be placing all or some of the balloons as the rule progresses?  What is the pink line selection for, because nothing seems to align with it.  Is it just for a parallel or offset distance reference?  Should the code get the distance along X from the pink reference line to the next point clicked, then attempt to find 'all' other balloons on the sheet and try to align their first node (move it along X) until it aligns with the selected point's X?  Should the code inspect the first balloon to get the X position of its last node, then try to align all other balloons last node X position with that?

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 3

mitch.bachand
Participant
Participant

Before I answer your questions I changed the original post that said "perpendicular" to be "parallel", My mistake.

 

- Yes all the balloons will already exist prior to running the rule and will re-align them when the rule is ran.

- The pink line was a example of what the points would be following for a pa line. If I don't specify a reference line, the points could get for example at a 45 degree angle. It will also define a offset, from the reference line defined to the first point selected. To further explain, 1st click = Reference line (pink), 2nd click = Leader line point used as a off set and to provide a parallel reference, 3rd and so on clicks = all other leader line points of other bubbles I click will me moved to the correct off set and to be parallel to the reference line.

- the code will not need to find all other balloons as I will click the select few points that apply/I want to be moved.

- The only position the code should be getting from a balloon is the point I selected in the 2nd click, or for the example of the picture in the original post - the blue circle.

0 Likes