Autoproject edges during curve creation

Autoproject edges during curve creation

Anonymous
Not applicable
817 Views
7 Replies
Message 1 of 8

Autoproject edges during curve creation

Anonymous
Not applicable

Does anyone know how to assign an keyboard shortcut to the, "Applications Options/Sketch/Autoproject edges during curve creation" setting?

I have a need to turn this on and off on a regular basis.

I have searched this forum and have found nothing that has delth with this.

0 Likes
Accepted solutions (1)
818 Views
7 Replies
Replies (7)
Message 2 of 8

Anonymous
Not applicable

By the way I relize that once a face is selected to sketch on that I can RMB and select Project Geometry, that is while in the sketch environment. I would like to be able to try a keyboard short cut to do the same thing.

0 Likes
Message 3 of 8

Anonymous
Not applicable

You can create a macro in your application project like this:

 

Public Sub AutoEndgeProject()
    Dim oSketchOptions As SketchOptions
    Set oSketchOptions = ThisApplication.SketchOptions
    
    Dim b As Boolean
    b = False
    
    If Not oSketchOptions.AutoProjectEdges Then b = True
    oSketchOptions.AutoProjectEdges = b
End Sub

 Then you can apply a keyboard shotcut to it by clicking Tools->Customize going to the keyboard tab.  Select macros in the Categories drop down.  Find your macro in the list and then choose your keyboard shotcut

0 Likes
Message 4 of 8

Anonymous
Not applicable

Robert:

 

This is great and I got a keyboard short cut to work, however the routine changes the "Autoproject edges during curve creation" rather than "Autoproject edges for sketch creation and edit".

0 Likes
Message 5 of 8

Anonymous
Not applicable

Robert:

 

I just realized that my title was in reference to "Autoproject edges during curve creation" rather than "Autoproject edges for sketch creation and edit" which is what I wanted to do.

My bad.

0 Likes
Message 6 of 8

Anonymous
Not applicable
Accepted solution

Change oSketchOptions.AutoProjectEdges to oSketchOptions.AutomaticReferenceEdges

Message 7 of 8

Anonymous
Not applicable

Robert:

 

Thank you, that worked.

0 Likes
Message 8 of 8

Anonymous
Not applicable

You're welcome.  Glad I could help.

0 Likes