Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search publication elements in part

Status
Not open for further replies.

blaR3

Mechanical
Nov 16, 2016
8
SI
Hello,

Is there a way to search&select only elements that are also published through VBA script?


Thank you!
 
Replies continue below

Recommended for you

Yes, you can access publications and what they reference.
MyPart and k+1 are my own definitions, but the syntax is as follows
PubName = MyPart.Parent.Product.Publications.Item(k + 1).name
Set PubRef = MyPart.Parent.Product.Publications.Item(PubName).Valuation

regards,
LWolf
 
Thanks for reply but I would like to search only published features inside a part. For example: only search (inside a part) all planes that are publicated...

Best regards,
Rajko
 
Hello,

try to use 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

                Dim PubName As String = Left(publication1.Name, 4)
                Dim Publication = publication1.name
               Next

Tiago Figueiredo
Tooling Engineer

Youtube channel:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top