hi,
i need a little help:
i'd like to make 3 separate macros that:
a. selects the green ok check mark when exiting the feature manager after creating/changing a feature
b. clears the merge bodies check box in extrude feature manager
c. links a selected dimension (in an open sketch) to 'thickness' in the link values drop down dialogue box and oks out. (but does not rebuild)
my goal is to have each of the macros linked to a keystroke. i do all three hundreds of times a day and i'd be pretty happy if i could do this stuff with my non mouse hand.
i tried recording macros with no luck, can anyone suggest something?
thanks
SolidworksApi macros
I'm sure you can assign a mouse gesture to it.
Have to check if there are API codes for this
thanks for the suggestion- i do have the mouse gesture set up.
i did a newbie move and double posted in the parts and feature group.
i'd delete this thread if i could, there are couple of answers on the other post.
Use delete under Actions on right side of the post to delete this one and then move the other post using move option under Actions to API section. Problem solved
Charles,
This blog post will show you how to assign a keyboard shortcut to a macro: 4 Ways to Run A Macro Without the Run Button. The second and third macro are a little complicated but here is the first one:
Click OK in PMP (PropertyManager page)
======
Dim swApp As SldWorks.SldWorks
Dim swModel As SldWorks.ModelDoc2
Sub main()
Set swApp = Application.SldWorks
Set swModel = swApp.ActiveDoc
swModel.Extension.RunCommand swCommands_PmOK, "OK"
End Sub
======
Copy this code into a new macro by going to Tools-->Macro-->New. In the VB Editor, replace the existing code with the above code. Then follow the instructions in the blog post if you want to create a keyboard shortcut.
Hope this helps. If you want to learn how to write macros yourself then I suggest you check out the free tutorials at our web site (link is in signature).
Keith
Video Tutorials for the SolidWorks API