Reputation
Top tag
Next privilege 15 Rep.
Flag posts
Badges
1
Newest
 Student
Impact
~790 people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
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?