Get / find sketches with errors like lost references and impossible constraints

Get / find sketches with errors like lost references and impossible constraints

FxRod
Enthusiast Enthusiast
138 Views
0 Replies
Message 1 of 1

Get / find sketches with errors like lost references and impossible constraints

FxRod
Enthusiast
Enthusiast

Hi all,

 

as the title says:

I would like to write some code that is able to iterate through a document's sketches and then list or select all the sketches where errors were found.
The errors I'd like to find are mainly projected entities that lost their referenced geometry and conflicting constraints, like a line with a vertical constraint and coincident ends, when the ends are moved to force the line to be tilted to an angle.

I did not find any property or method in the Sketch or SketchEntity classes, where I would expect that error status to appear. Is that status checked only when the Sketcher is open, or is there some place where it is stored?

0 Likes
139 Views
0 Replies
Replies (0)