Limit sketch set to those used in features above EOF marker

Limit sketch set to those used in features above EOF marker

Maxim-CADman77
Advisor Advisor
430 Views
1 Reply
Message 1 of 2

Limit sketch set to those used in features above EOF marker

Maxim-CADman77
Advisor
Advisor

I'm writing some iLogic rule connected with statistics of Part Model sketch objects.

All-in-all it works as needed but now I want to limit its application only to those sketches that are used in features that are placed above EOF marker.

In API help I see only "destructive" method SetEndOfFile. But it seems not helpfull for my needs - I don't need to change EOF marer's position.

May be I need somehow check the activity of the features... Any Ideas?

 

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
Accepted solutions (1)
431 Views
1 Reply
Reply (1)
Message 2 of 2

JhoelForshav
Mentor
Mentor
Accepted solution

SyntaxEditor Code Snippet

Dim doc As PartDocument = ThisDoc.Document
For Each oSketch As Sketch In doc.ComponentDefinition.Sketches

If oSketch.HealthStatus <> HealthStatusEnum.kBeyondStopNodeHealth
		MsgBox(oSketch.Name)
End If
Next

 This only writes out the names of sketches above EOF.

I hope this is what you're looking for 🙂