Search for an Instance name in a product
Search for an Instance name in a product
(OP)
Hi Guys,
Another little problem I can't for the life of me figure out.
I want to search for a specific Instance of something, for example "Apple.2". I have a SearchString Var with "Apple.2" in it.
How do I then search for that in a product?
I've tried:
oSelection.Search "CATAsmSearch.Name=SearchString,all"
oSelection.Search "'Assembly Design'.Product.'Part Number'=SearchString,all"
And numerous others off the internet with no success.
Thoughts?
Thanks!!
Another little problem I can't for the life of me figure out.
I want to search for a specific Instance of something, for example "Apple.2". I have a SearchString Var with "Apple.2" in it.
How do I then search for that in a product?
I've tried:
oSelection.Search "CATAsmSearch.Name=SearchString,all"
oSelection.Search "'Assembly Design'.Product.'Part Number'=SearchString,all"
And numerous others off the internet with no success.
Thoughts?
Thanks!!





RE: Search for an Instance name in a product
You can decrease number of considered types of product , for e.g. only to product structure and assembly design
(Name='Apple.2' & ('Product Structure'.Product 'Assembly Design'.Product));all
LukaszSz. Poland, Warsaw University of Technology, Faculty of Power and Aeronautical Engineering : MEchanical Engineering. BsC - 2013
RE: Search for an Instance name in a product
oSelection.Search (Name='Apple.2' & ('Product Structure'.Product 'Assembly Design'.Product));all
[That doesn't work :p]
(I should have said I want to select the found item!!)
Many Thanks!!!!!
RE: Search for an Instance name in a product
CODE -->
LukaszSz. Poland, Warsaw University of Technology, Faculty of Power and Aeronautical Engineering : MEchanical Engineering. BsC - 2013
RE: Search for an Instance name in a product
CODE --> CATScript
Regards
Fernando
https://picasaweb.google.com/102257836106335725208
https://picasaweb.google.com/103462806772634246699...
RE: Search for an Instance name in a product
Thanks, both methods work!!