Schneider Electric GIS Tech Support

Forum discussion for Schneider Electric GIS products, including ArcFM, ArcFM Viewer, Designer, Responder, and others.
It is currently Sat May 18, 2013 6:42 am

All times are UTC - 7 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Activate Fiber Manager License through toolbar
PostPosted: Wed Aug 31, 2011 3:50 pm 
Offline

Joined: Fri Apr 20, 2007 3:59 pm
Posts: 88
Location: Truckee, CA
With the Fiber Manager License being an ESRI Extension license, the ability to share that license becomes cumbersome. As a result, I have some vba code that will both open the Fiber Manager toolbar and activate a license (if available) and then release the license when the toolbar is closed.

Private Sub FiberManager_Click()

'Find Fiber Manager Toolbar
Dim uFiberManager_ToolBar As New UID
uFiberManager_ToolBar = "{7F877449-0F7F-4B69-AA3A-68101CC57E36}"
Dim pFiberManager As ICommandBar
Set pMxDocument = ThisDocument
Set pFiberManager = ThisDocument.CommandBars.Find(uFiberManager_ToolBar)

'Find Fiber Manager Extension License
Dim pLicAdmin As IExtensionManagerAdmin
Set pLicAdmin = New ExtensionManager
' Enable the license
Dim pLicManager As IExtensionManager
Set pLicManager = pLicAdmin
Dim pExtensionConfig As IExtensionConfig
Set pExtensionConfig = pLicManager.FindExtension("Fiber Manager")

'Open Toolbar and Activate License
If pFiberManager.IsVisible = False Then
pFiberManager.Dock esriDockFloat
pExtensionConfig.State = esriESEnabled
Else
pFiberManager.Dock esriDockHide
pExtensionConfig.State = esriESDisabled
End If

End Sub


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group