I'm trying to use Balloons.AttachToComponent but not having any success.
The balloons have been orphaned by suppressing the parts. I unsuppressed them before attempting to reattach. Also, reattaching them all at once functions but attaching by component name appears to do nothing. Any thoughts? Thanks
Dim ViewName As String ViewName = "VIEW14" 'ActiveSheet.View(ViewName).Balloons.ReAttach ActiveSheet.View(ViewName).Balloons.AttachToComponent("Part:1") ActiveSheet.View(ViewName).Balloons.AttachToComponent("Part:2")
I'm trying to use Balloons.AttachToComponent but not having any success.
The balloons have been orphaned by suppressing the parts. I unsuppressed them before attempting to reattach. Also, reattaching them all at once functions but attaching by component name appears to do nothing. Any thoughts? Thanks
Dim ViewName As String ViewName = "VIEW14" 'ActiveSheet.View(ViewName).Balloons.ReAttach ActiveSheet.View(ViewName).Balloons.AttachToComponent("Part:1") ActiveSheet.View(ViewName).Balloons.AttachToComponent("Part:2")
Hi @dustinbagley. I am honestly not that familiar with those specific iLogic shortcut snippets, but after reading the online Inventor Help documentation for those methods you are using, it seems that the AttachToComponent method (ICadViewBalloons.AttachToComponent) and its counterpart (ICadViewBalloons.DoNotAttachToComponent) are to be used as preparations, before using the Reattach (ICadViewBalloons.Reattach) method. Then when you use the Reattach method, it know which ones to include, and which ones to not include. So, you may just have to change the order of your lines of code to put the Reattach line last.
Wesley Crihfield
(Not an Autodesk Employee)
Hi @dustinbagley. I am honestly not that familiar with those specific iLogic shortcut snippets, but after reading the online Inventor Help documentation for those methods you are using, it seems that the AttachToComponent method (ICadViewBalloons.AttachToComponent) and its counterpart (ICadViewBalloons.DoNotAttachToComponent) are to be used as preparations, before using the Reattach (ICadViewBalloons.Reattach) method. Then when you use the Reattach method, it know which ones to include, and which ones to not include. So, you may just have to change the order of your lines of code to put the Reattach line last.
Wesley Crihfield
(Not an Autodesk Employee)
Great, thanks. this did the trick.
Great, thanks. this did the trick.
Upon further experimenting, I have found that 'AttachToComponent' only seems to work when the assembly has no sub-assemblies. However, 'DoNotAttachToComponent' works regardless of whether the assembly in the view has sub assemblies or not. Any thoughts?
Upon further experimenting, I have found that 'AttachToComponent' only seems to work when the assembly has no sub-assemblies. However, 'DoNotAttachToComponent' works regardless of whether the assembly in the view has sub assemblies or not. Any thoughts?
Can't find what you're looking for? Ask the community or share your knowledge.