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!

How to select from currently opened CATParts and CATProducts?

Status
Not open for further replies.

Kattmandu

Automotive
Joined
Oct 31, 2022
Messages
7
Location
US
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
 
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

Back
Top