I would like to add a PointRelation3d between the xy RefPlane of a part and a Circle2d in an assembly sketch with the api. Unfortunately the Add method fails. What I did so far:
I dont know how to proceed from here. The PointRelation is essential at this 'point'. Do you have any ideas?
Solved! Go to Solution.
I haven't had a chance to try out what I am about to suggest, but this is the path I see. There are two relatively recent API methods that could help you move forward:
On the profile from the sketch, call one of the above with the 2d as input. You should get a curve or vertex that you can pass to the relation as geometry. The APIs above map from the 2d realm to corresponding 3D entities that can be used to reference the sketch elements in 3D.
The other part about no getting the sketch geometry back from a manually created Connect relation, may be a hole in our API and needs fixing.
You can raise an IR if this does not work.