Hi guys i would like to do this with the vba on catia :
1 : open the catalogue browser that is ok => CATIA.StartCommand ("Catalog Browser")
2 : set the current lib as I want => I don't know how to set this...
3 : set the filter with a input value with a inputbox
4 : Search it
5 : select the part (only one available)
6 : copy and past it in a current catproduct
I have a major issue that when I start the command I can't make a sendkeys because the Catalog Browser is not activate windows...
Do you have some solution ?
Here is my little code...
Thx for your help guys !
1 : open the catalogue browser that is ok => CATIA.StartCommand ("Catalog Browser")
2 : set the current lib as I want => I don't know how to set this...
3 : set the filter with a input value with a inputbox
4 : Search it
5 : select the part (only one available)
6 : copy and past it in a current catproduct
I have a major issue that when I start the command I can't make a sendkeys because the Catalog Browser is not activate windows...
Do you have some solution ?
Here is my little code...
Code:
Sub CATMain()
CATIA.ActiveWindow.Activate
Dim productDocument1 As ProductDocument
Set productDocument1 = CATIA.ActiveDocument
Dim selection1 As Selection
Set selection1 = productDocument1.Selection
CATIA.StartCommand ("Catalog Browser")
SendKeys ("a")
End Sub