Good Morning Friends
I made a macro that sets my work area. I would like to add the "SHOW WITH DEPENDENTS" command via my macro or routing.
I looked on the "FORUM", I only found this discussion.
thank you so far, everyone who will help me!
Here is macro which shows how to do this from API: Show All Components (Show With Dependents)
and correct, it works !
thank you so much
I see that this use SendMessage function, so my related question:
How do you figure out the handle of a given command? (i.e. 33227 for "Show with dependents")
It is required to do a message hook for WM_COMMAND window message and extract command id from the lParam. It is possible to use utility like Spy++ to hook windows events and filter the ones sent to SW window. I can write a blog post for that.
That would be great!
There's always some function missing in the API, that could be access this way.
Yes, no worries. Will post it by the end of this week.
Here is a blog post explaining how to call commands in alternative way: SOLIDWORKS API Command Doesn't Exist? Need plan B
Retrieving data ...