Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Nov 16, 2016
Messages
8
Location
SI
Hello,

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


Thank 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
 
You need to be more specific on what you are looking for.
 
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