ArcFM Engine Developer Guide
Initialize Method (IMMNamer)


IFeatureClass
IPropertySet
This method initializes the export namer using the data included in the PropertySet by the current map book. This is called immediately before NextFileName is called for the first time.
Syntax
'Declaration
 
Sub Initialize( _
   ByVal FeatureClass As ESRI.ArcGIS.Geodatabase.IFeatureClass, _
   ByVal NamerProperties As ESRI.ArcGIS.esriSystem.IPropertySet _
) 
'Usage
 
Dim instance As IMMNamer
Dim FeatureClass As ESRI.ArcGIS.Geodatabase.IFeatureClass
Dim NamerProperties As ESRI.ArcGIS.esriSystem.IPropertySet
 
instance.Initialize(FeatureClass, NamerProperties)
void Initialize( 
   ESRI.ArcGIS.Geodatabase.IFeatureClass FeatureClass,
   ESRI.ArcGIS.esriSystem.IPropertySet NamerProperties
)

Parameters

FeatureClass
IFeatureClass
NamerProperties
IPropertySet

Return Value

IPropertySet
Remarks

The following properties are passed by the ArcFM MapSet:

Data Type

Property Name

mmMapProdDocumentType

"LAYOUT_TYPE"

String

"SD_NAME"

String

"PT_NAME"

String

"DOC_NAME"

String

"SD_TYPE"

String

"PT_TYPE"

String

"DOC_TYPE"

 

LAYOUT_TYPE will have one of the following values:

  • mmMPMMDocument = 0
  • mmMPDisplayAndTemplate = 1

The remaining properties will be populated depending on the value of LAYOUT_TYPE. (mmMPCurrentSettings and mmMPPPackagedDocument are not currently used by ArcFM MapSets.)

Example
The following code sample demonstrates how the IMMNamer::Initialize method may be implemented.
Visual Basic Copy Code
Private Sub IMMNamer_Initialize(ByVal FeatureClass As IFeatureClass, ByVal NamerProperties As IPropertySet)
    Set m_pFeatureClass = FeatureClass
    Set m_pNamerProperties = NamerProperties
End Sub
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

IMMNamer Interface
IMMNamer Members

 

 


Send Comment