Shashank

Unregistered less info
11 reputation
1
bio website
location
age
visits member for 1 year, 6 months
seen Nov 1 '12 at 6:53

Oct
18
comment How to create a new feature layer from the selected features?
Thanks for the answer. Its somehow not working for me completely, Here is the Code: Sub testing() 'Defined & Set stuff like IMap and ImxDoc SetEverything Dim l As IFeatureLayer Dim fs As IFeatureSelection Dim newL As IFeatureLayer Dim ld As IFeatureLayerDefinition Set l = pMap.layer(0) 'l has 400 records 'Now Selected 1 record in layer l Set fs = l Set ld = l Set newL = ld.CreateSelectionLayer(l.Name & "_1", True, vbNullString, vbNullString) MsgBox newL.featureClass.FeatureCount(Nothing) 'it prints 400 and NOT 1 end sub please help. if I add newL in TOC, then it has 1 record
Oct
18
awarded  Student
Oct
18
asked How to create a new feature layer from the selected features?