Suppose I have a sketch with some sketch segments in it. How would I got about getting the features that a particular endpoint of a sketch segment has relations with? I have a sketch segment where one of the endpoints is going to be constrained to either a plane, surface, or another line segment in a different sketch. I would like to be able to get the feature that the endpoint has relations with so that I may use it later in my code. I already have a variable set to the endpoint in question.
I've been following along with this code here. I can't seem to re-work this to get the feature associated with the sketch relation. Is there a way of getting the ID of the entity?
Please read the help remarks for GetDefinitionEntities2. You want to work with the stuff returned by that function. The example you posted reports detailed info about what is returned by GetEntities, which is not what youare interested in.