Hi, I'm wondering if it's possible to write an algorithm, for example, for Solid edge to scan a existing sketch for a square and then draw a circle in it. Is this wishful thinking?
one could probably solve this task as follows:
Thanks Wolfgang for your reply. My problem is made more complex because the sketch I want to work on is imported from autocad. This means there is no existing relationships. Is there a way for Solidedge to auto-detect and implement relationships?
Martin Bernhard recently tried the AddAutoConstraints method of the Relations2d object, but without success.
So you should find the 4 Line2d objects, building a square, on your own. When comparing coordinates you should consider to ignore absolute differences smaller than a given epsilon.