×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Macro to determine CATIA V5 licenses avail. in session

Macro to determine CATIA V5 licenses avail. in session

Macro to determine CATIA V5 licenses avail. in session

(OP)
In a macro, I would like to test to ensure the user has a specific CATIA V5 license active so that the macro executes successfully.  Does anyone have an example that checks active licenses for a CATIA session?

RE: Macro to determine CATIA V5 licenses avail. in session

This is taken from the R11 docs but I don't know if it works...


 Dim SystemConfiguration1 As SystemConfiguration
 Set SystemConfiguration1 = CATIA.SystemConfiguration
 ReDim NameArray(SystemConfiguration1.ProductNamesCount)
 SystemConfiguration1.GetProductNames NameArray
 MsgBox "IsProductAuthorized for product " & NameArray(0) & "  returns " & SystemConfiguration1.IsProductAuthorized(NameArray(0))


You may need to add a 'Dim NameArray()' at the beginning.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources