in System options, Display/Selection, Dynamic highlight from graphics view
Is it a memory issue? or just a bug that never gets fixed......been happening for years
Very frustrating.....anyone have an answer?
Welcome to the forum. It's almost certainly your 3d mouse (at least I've never heard of anyone having the issue that doesn't have a 3d mouse). See #6 at Frequently Asked Forum Questions.
Wow @Glen Schroeder, I did not know this. I just got my new Space Pilot Pro and my edges don't high light anymore and I couldn't understand why.
Thanks a ton...
You're welcome. I'm glad I could help.
Can't avoid this frustrating if you use a 3D mouse
you can write a macro to to turn it on
This issue is strange. Sometimes I can go days without it happening. Some days it happens 5 times.
It's a relatively easy thing to fix, just aggravating. Yes, I have a space ball too.
Yes, same here. I spent about 2 weeks with my VAR trying to figure it out.
In the end,I know it happens and I just turn it back on. After 20 15 years of using a space mouse, I tend to look like a third grader trying to navigate without it. So it is worth the pain.
To add to what I said earlier, I have noticed that it will become unchecked more often if I am rotating something and select something before I actually finish the rotation with the space mouse.
Yep, same here too and I am using a standard mouse. Very intermittent and very frustrating.
here is the macro you can use to turn it on
For a quick access, create a button at a convenient location and you can turn it on with a click away
Dim swApp As Object
Dim Part As Object
Dim boolstatus As Boolean
Dim longstatus As Long, longwarnings As Long
Dim edgeHighlight As Boolean
Set swApp = Application.SldWorks
Set Part = swApp.ActiveDoc
edgeHighlight = Not (swApp.GetUserPreferenceToggle(swUserPreferenceToggle_e.swEdgesDynamicHighlight))
swApp.SetUserPreferenceToggle swUserPreferenceToggle_e.swEdgesDynamicHighlight, edgeHighlight
MsgBox "Dynamic Highlight is on"
I tried your macro Christian Chu and the only issue that I had, was that if the toggle was already on, then it toggled it off. SO I modified it a little bit. This one will tell you if it is already on or not.
Dim swApp As ObjectDim Part As ObjectDim boolstatus As BooleanDim longstatus As Long, longwarnings As LongDim edgeHighlight As Boolean
Set swApp = Application.SldWorksSet Part = swApp.ActiveDocedgeHighlight = Not (swApp.GetUserPreferenceToggle(swUserPreferenceToggle_e.swEdgesDynamicHighlight))If edgeHighlight = True ThenswApp.SetUserPreferenceToggle swUserPreferenceToggle_e.swEdgesDynamicHighlight, edgeHighlightMsgBox "Dynamic Highlight has been turned on"ElseMsgBox "Dynamic Highlight was already on"End If
Thank you, Dan
my intent is to provide an option for on/off as one of my engineers wants it off for better view when the model is sectioned
Like you guys, I want it on all the time
Will your macro now keep the box checked, always?
How do I run your macro from the code above?
Edit: My macro will recheck the box if it gets unchecked, So will Josh Brady's
To create a new macro, go to "Tools" --> "Macro" --> "New"
Save it somewhere (I prefer somewhere on the network, that way multiple designers can use it).
Then in the box that comes up, Select all and delete, then copy/paste my code in (Or Josh Brady's if you want something more streamlined).
Then Save it and exit.
Then, to create a button for it, RMB on the toolbar and select "Customize".
Then Select the "commands" tab and select "macro" in the list and click and drag the "New Macro Button" somewhere on your toolbar.
After you drag and drop it, a new window will appear asking you to customize the button:
Just use the fields to select your macro that you just saved and click OK.
You will have to do this for Sketcher, Assembly and Part design (and any other areas that you use regularly).
Make sure you test the button to make sure it works.
Thanks for that Dan. Much appreciated.
I do find it ironic that I have to turn to the goodwill of fellow customers to fix a problem with a suplliers product?
Thanks again and Season Greetings.
No problem.....and Merry CHRISTmas
I can't imagine a whole lot of instances where you need to know what the state was before. You just want it on. No message box required. Below is the entire macro:
Application.SldWorks.SetUserPreferenceToggle swUserPreferenceToggle_e.swEdgesDynamicHighlight, TrueEnd Sub
Or, if you really want it to be a toggle:
Application.SldWorks.SetUserPreferenceToggle swUserPreferenceToggle_e.swEdgesDynamicHighlight, Not (Application.SldWorks.GetUserPreferenceToggle(swUserPreferenceToggle_e.swEdgesDynamicHighlight))
Depending on your screen, the single line of code between Sub main() and End Sub may wrap and look like multiple lines. If you copy/paste you may need to remove a line break or two.
I like the Message box because my OCD state needs to know. *grin*
Hey Josh, was linking to this post for another thread and thought of this reason and decided to post it.
The other reason that I want to know the state before is sometimes, I am in large assembly mode and don't actually realize it. Dynamic highlight is turned off for that automatically. So, I will hit the button and if I don't have feedback, then I will think that the button is broken
because it isn't dynamically highlighting.
I've found at least one reproducible cause for Dynamic Highlight getting turned off.... Someone else discovered this and posted it but I can't re-locate that thread.
If you manipulate the 3D mouse while switching windows within SolidWorks, Dynamic Highlight gets turned off. This could be caused by a 3D mouse that needs to be calibrated or just by the user moving the 3D mouse while changing windows.
My understanding is that the 3D Connexion driver turns "Dynamic highlight from graphics view" off during 3D mouse movement, then turns it back on. Seems like if you switch windows during 3D mouse movement, the "turn it back on" part of that routine doesn't execute.
Retrieving data ...