Let’s Start Programming! Forums CATIA Macro Programming CATScript against MS VBA

This topic contains 0 replies, has 1 voice, and was last updated by  Cornel 3 years, 2 months ago.

Viewing 1 post (of 1 total)
  • Author
  • #1378


    I have a code that runs correctly in CATScript.
    But with MS VBA I have an error on line 7.
    There is an HELP where I can read equivalence between CTAScript and MS VBA?!
    How would you write the line 7 in MS VBA?!

    Sub CATMain()
    Dim EnvVar As String
    ADL_ODT_IN = 55
    EnvVar = CATIA.SystemService.Environ(“ADL_ODT_IN”)
    CATIA.SystemService.Print “ADL_ODT_IN =” & EnvVar
    If (Len(EnvVar) < 10) Then
    BidVar = EnvVar
    BidVar = Mid(EnvVar, 1, 10)
    End If
    End Sub

Viewing 1 post (of 1 total)

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