Apr 15, 2004 #1 jackiew Aerospace May 12, 2003 6 0 0 US 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?
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?
Apr 16, 2004 #2 AHay Computer Jul 22, 2003 48 0 0 GB 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. Upvote 0 Downvote
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.