Harold Black

Get features with relations to another feature

Discussion created by Harold Black on Jan 7, 2020
Latest reply on Jan 7, 2020 by Harold Black

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?