GROUP MACRO
GROUP MACRO
(OP)
Hi all,
I would like to select notes/balloons and group them together. How do I create the macro without pre-selecting the notes ahead of time. I am planning to use a hot key.
I would like to select notes/balloons and group them together. How do I create the macro without pre-selecting the notes ahead of time. I am planning to use a hot key.






RE: GROUP MACRO
Use View::GetNotes method to get notes from this drawing view. Refer "Get Views and Notes (VB6)" example in the API Help
You can also traverse all annotation with ModelDoc2::GetFirstAnnotation2 and Annotation::GetNext3 methods and check their types with Annotation::GetType method.
Next use Annotation::Select3 method to select the annotation.
Artem Taturevich
CSWP
RE: GROUP MACRO
-handleman, CSWP (The new, easy test)
RE: GROUP MACRO
Not comfortable with much API but are working on it. Thanks
handleman
I'm looking to save mouse clicks. I would like to select notes I want to group and hot key to group. Or hot key then select.
RE: GROUP MACRO
Is this correct?
The assignment to a hotkey should not be done. Use a shortcut key instead, which is done after the macro is complete within customization window. That way you can active the macro when every you want, and not have it running all the time for no reason.
Matt Lorono
CAD Engineer/ECN Analyst
Silicon Valley, CA
Lorono's SolidWorks Resources
Co-moderator of Solidworks Yahoo! Group
and Mechnical.Engineering Yahoo! Group
RE: GROUP MACRO
CODE
Application.SldWorks.ActiveDoc.CreateGroup
End Sub
-handleman, CSWP (The new, easy test)
RE: GROUP MACRO
I was just addressing the possible intrepretation of swforge's comment asking for a hotkey, making sure they weren't asking for the macro to be running all day in the background waiting for a particular key to be pressed.
Matt Lorono
CAD Engineer/ECN Analyst
Silicon Valley, CA
Lorono's SolidWorks Resources
Co-moderator of Solidworks Yahoo! Group
and Mechnical.Engineering Yahoo! Group
RE: GROUP MACRO
-handleman, CSWP (The new, easy test)