Let’s Start Programming! Forums CATIA Macro Programming How to get CATIA VBAScript to answer a "Ok", "Apply" and "Cancel" Window

This topic contains 1 reply, has 2 voices, and was last updated by  Matt 2 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1423

    Yas
    Participant

    I start a CATIA command “Cloud/Points” and I get pop window asking for “Ok”, “Apply” or “Cancel”. I am not able to get VBA script to choose “apply” first and then “Ok”. This particular command requires “Apply” first before “Ok” button is no longer greyed out. Please help.

    CATIA.StartCommand (“Cloud / Points”)

    Dim WSShell
    Set WSShell = CreateObject(“WScript.Shell”)

    WSShell.AppActivate “CATIA V5”
    CATIA.RefreshDisplay = True

    WSShell.SendKeys “c:FrmActivate”
    WSShell.SendKeys “{ENTER}”

    #1432

    Matt
    Participant

    Unfortunately, send keys is the only way to do this in VB and it does not work very well…if it works at all.

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘CATIA Macro Programming’ is closed to new topics and replies.