Welcome to the COE Discussion Forum! 

 

To participate in the discussion forum, you must be logged in to the website.  If you forget your login information, please contact COE Headquarters at coe@coe.org or (800) 263-2255.

If you are new to the COE Discussion Forum and would like to participate, please register.

 

The COE 2008 Fall Industry Workshops

Automotive
Oct. 15-16
Troy, Michigan

 

Aerospace & Defense
Oct. 27-28
Wichita, Kansas

   

Register Today!

COE DISCUSSION FORUM
Subject: Get license number

You are not authorized to post a reply.   
Author Messages
HENKI755

06 Aug 2008 09:09 AM

Hi all.

Is there anyone who has some code on how to retrive which license number is used by a license server from a VBA client?

I managed to access the license information on a node_locked license by:

===
 Dim lic As String
 Dim settingControllers1 As SettingControllers
 Set settingControllers1 = CATIA.SettingControllers
    
Dim licenseSettingAtt1 As LicenseSettingAtt
Set licenseSettingAtt1 = settingControllers1.Item("CATSysLicenseSettingCtrl"

curr_lic = licenseSettingAtt1.GetLicensesList(1)
lic = curr_lic(0)
curr_lic_info = licenseSettingAtt1.GetLicense(lic)
===
curr_lic_info contains the information about my node_locked license.
For ex: "_DA2.slt_DS214530000"
When I however, tries the same on a floating license I only get the license name.
curr_lic_info contains only: "_DA2.slt+"

The reason for this is that I want to know what license number is being used on the server.

Anyone?


Dr. Henrik Kihlman
Project Manager
Production Technology
DELFOi
GÖTEBORG
www.delfoi.com
You are not authorized to post a reply.
Forums > COE Forums > CATIA V5 Programming > Get license number



ActiveForums 3.6

    

401 North Michigan Avenue, Chicago, IL 60611-4267 | (312) 321-5153 | (800) COE-CALL (U.S.)