ArcFM Desktop Developer Guide
Using the Default Login Object

Version: 10.8.1

Resource Center Home

To make the task of writing custom login objects easier, we provide a means of reusing our implementation of MMDefaultLoginObject. The ArcFM Default Login Object is provided as a coclass that your custom login object can create and use to perform the process of connecting to an ArcFM system database.

Your custom login object could collect the necessary connection properties and pass them to the SetConnectionProperties method on the IMMDefaultLoginObject Interface. Then, you can set the ShowDialog property to FALSE. Subsequent calls to Login on the MMDefaultLoginObject will use the connection properties to login, without bringing up the default login dialog. Your implementations of GetFullTableName, IsValidLogin, LoginWorkspace and UserName could be written to call those routines on the MMDefaultLoginObject.


CoClass:
    MMDefaultLoginObject

Interface:
    IMMDefaultLoginObject


Required Database Connection Properties

When using the default login object to connect to a database, you will provide the connection information that it requires. This connection information is similar to the information you provide in ArcCatalog to make an SDE connection. In order to connect to an ArcFM system database in ArcSDE, you will need to set the following properties:

When connecting to a personal geodatabase, the only connection properties that are required are the following:

These properties need to be set in a PropertySet (Esri ArcObjects) object that will then be passed into the default login object via the SetConnectionProperties method on the IMMDefaultLoginObject interface.

 

 


Send Comment to ArcFMdocumentation@schneider-electric.com