CATIA Search
CATIA Search
(OP)
Is there a way to search for published elements in a CATIA part when working in a macro?
I need to select a particular published element in one file and copy it to the other file through code. Currently I am looking for the element by name. But, the element is published. And I have to copy only the published element of that name and any other element with the same characters in the name which is not published has to be ignored.
How can I get this done?
Thanks in advance
I need to select a particular published element in one file and copy it to the other file through code. Currently I am looking for the element by name. But, the element is published. And I have to copy only the published element of that name and any other element with the same characters in the name which is not published has to be ignored.
How can I get this done?
Thanks in advance





RE: CATIA Search
Try this:
CODE -->
Dim publications1 = part1.Publications Num_publications = publications1.Count For b = 1 To Num_publications Dim publication1 = publications1.Item(b) Dim pubRef As Reference pubRef = publication1.Valuation Dim PubName As String = publication1.NamepubRef is the one you need to select.
Tiago Figueiredo
Tooling Engineer
Youtube channel:
https://www.youtube.com/channel/UC1qdlBeJJEgMgpPLV...
RE: CATIA Search
RE: CATIA Search
RE: CATIA Search
Tiago Figueiredo
Tooling Engineer
Youtube channel:
https://www.youtube.com/channel/UC1qdlBeJJEgMgpPLV...