How to get a link to the Part/Product highlighted in blue in the CATProduct in the script

fedor biryukov

How to get a link to the Part/Product highlighted in blue in the CATProduct in the script

Good day. Is there a method in the script to get a link to the Part/Product highlighted in blue in the CATProduct tree, different from the method described in http://www.coe.org/p/fo/st/topic=113&post=83040#p83040 ?
CATIA.ActiveDocument.Selection.Search "CATAsmSearch.Name *, in"
Set prdContext = CATIA.ActiveDocument.Selection.Search.Item(1).Value
Users have a number of comments related to the execution of this construction, to the work of the script.

Edited By:
fedor biryukov[Subscriber Members] @ Mar 23, 2021 - 04:27 PM (Europe/Moscow)

Little Cthulhu

RE: How to get a link to the Part/Product highlighted in blue in the CATProduct in the script
(in response to fedor biryukov)

No, not in VBA. 

 

What comments are you talking about?