Message 1 of 4
Storing and retrieving ID of feature line inside corridor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need to let the user pick a feature line which is part of a corridor, attach an object to it, and store which feature line was picked on that object. Typically this would be a handle of the feature line, or some other unique identifier.
I can get the feature line closest to the pick point no problem, by getting all the feature lines out of the corridor, getting their geometry and running a 'closest to' kind of process. Maybe there is a smarter way to do that but this works for now.
But, I can't see anything on the feature line which can tell me which one it is in the corridor.
- The feature lines seem to have names, but I think more than one feature line in a corridor can have the same name.
- I can't store that it was the nth feature line in the corridor, in case other feature lines are added or removed from the corridor.
- I can't use the pick point, in case the corridor changes such that a different feature line is now closest to the pick point.
Does anyone know anything about doing this? I am happy to use .NET or COM to achieve it.
Thanks for any help.