Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

How to select from currently opened CATParts and CATProducts?

Status
Not open for further replies.

Kattmandu

Automotive
Oct 31, 2022
7
Programming is not my expertise. With that said, I'm looking to implement a CATScript that asks the user to select from a list of currently opened CATParts and CATProducts listed under the "Window" pull down menu in CatiaV5. What would code look like to get the "window" items into a selectable list and save that filename into a variable?

Code:
Dim windows1 As Windows
Set windows1 = CATIA.Windows
Dim numberOfWindows As Integer
numberOfWindows = Windows1.Count
Sub FillArray() 
 Dim array(numberOfWindows) 
 Dim intI As Integer 
 For intI = 1 to numberOfWindows 
 array(intI) = CATIA.Windows.Item(intI)
 Next 
End Sub
 
Replies continue below

Recommended for you

if it is a GUI, then you need to do it in VBA.

regards,
LWolf
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor