Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Autoproject edges during curve creation

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
cparnell
611 Views, 7 Replies

Autoproject edges during curve creation

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.

7 REPLIES 7
Message 2 of 8
cparnell
in reply to: cparnell

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.

Message 3 of 8
Robert..F
in reply to: cparnell

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

Message 4 of 8
cparnell
in reply to: Robert..F

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".

Message 5 of 8
cparnell
in reply to: cparnell

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.

Message 6 of 8
Robert..F
in reply to: cparnell

Change oSketchOptions.AutoProjectEdges to oSketchOptions.AutomaticReferenceEdges

Message 7 of 8
cparnell
in reply to: Robert..F

Robert:

 

Thank you, that worked.

Message 8 of 8
Robert..F
in reply to: cparnell

You're welcome.  Glad I could help.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report