<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Not able to list the featuredefinitions.</title><link>https://communities.bentley.com/products/geospatial/desktop/f/bentley-map-forum/66587/not-able-to-list-the-featuredefinitions</link><description>Hi 
 I have tried both examples from the Bentley Map XFM prommers Reference Guide: 
 Private Sub ProcessFeatureDefinitions()
 
 Dim featureDefCount As Long
 featureDefCount = xft.FeatureMgr. FeatureDefCount 
 
 Dim featureDefIndex As Long
 For</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Re: Not able to list the featuredefinitions.</title><link>https://communities.bentley.com/thread/170706?ContentTypeID=1</link><pubDate>Fri, 06 May 2011 19:14:34 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:5f9f77e4-ed86-44dc-9359-7f6855031ce1</guid><dc:creator>Jeff Bielefeld</dc:creator><description>&lt;p&gt;Erik,&lt;/p&gt;
&lt;p&gt;It seems that the first method used exposes a defect which is encountered when the &lt;span style="font-family:courier new,courier;"&gt;FeatureMgr.GetFeatureDefinitionByIndex &lt;/span&gt;method is called with an index that references a feature class that is not included in the schema, which of course you are not using. For the second method, it appears that the &lt;span style="font-family:courier new,courier;"&gt;FeatureDefEnumerator&lt;/span&gt; object is not being updated to include dynamically added feature class definitions. I&amp;#39;ve logged each problem for resolution in a future Bentley Map product release.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>