For the selected map set feature layer, the object should return true if it can name export files for this feature class.
The following code sample demonstrates how the IMMNamer::SupportsFeatureClass method may be implemented.
Visual Basic |
Copy Code |
Private Function IMMNamer_SupportsFeatureClass(ByVal _
FeatureClass As IFeatureClass) As Boolean
IMMNamer_SupportsFeatureClass = False
Dim pModelNameManager As IMMModelNameManager
Set pModelNameManager = New MMModelNameManager
If pModelNameManager Is Nothing Then Exit Function
Dim pObjectClass As IObjectClass
Set pObjectClass = FeatureClass
If Not pObjectClass Is Nothing Then
IMMNamer_SupportsFeatureClass = _
pModelNameManager.ContainsClassModelName(FeatureClass, "MapGrid")
End If
End Function |
|
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.