×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

CATIA Search

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

RE: CATIA Search

Hello,

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.Name 
Next
pubRef is the one you need to select.

Tiago Figueiredo
Tooling Engineer

Youtube channel:
https://www.youtube.com/channel/UC1qdlBeJJEgMgpPLV...

RE: CATIA Search

(OP)
Thanks for the help TiagoFigueiredo.... I will try this one out and let you know....

RE: CATIA Search

(OP)
That works!!! thanks a lot Tiago.....

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources