Detect if a sketch is being edited

Detect if a sketch is being edited

Jef_E
Collaborator Collaborator
344 Views
1 Reply
Message 1 of 2

Detect if a sketch is being edited

Jef_E
Collaborator
Collaborator

Hi,

 

How can I check with my Addin if the user is currently editing a sketch?

 

Greetings

Jef_E



Please kudo if this post was helpfull
Please accept as solution if your problem was solved

Inventor 2014 SP2
0 Likes
345 Views
1 Reply
Reply (1)
Message 2 of 2

clutsa
Collaborator
Collaborator

This is iLogic so convert it to your programming language of choice. 

If ThisDoc.Document.SketchActive Then
	MessageBox.Show("in sketch", "Title")
Else
	MessageBox.Show("not in sketch", "Title")
End If
If I've helped you, please help me by supporting this idea.
Mass Override for Each Model State

Custom Glyph Icon for iMates

0 Likes