×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Display/Selection

Display/Selection

Display/Selection

(OP)
Does anyone have a macro to toggle display/selections or perhaps I missed and icon? I usually want "select hidden edges" off but sometimes I need to either select a hidden line in wireframe or in shaded mode. Attached picture to better explain what I want to toggle.

Thanks

Certified SolidWorks Associate
SW2009 X64 SP 1.0
Dell Precision T5400
Nvidia Quadro FX 5600
Xeon 2.5GHz Quad Core, 4GB RAM
XP Pro X64 SP2.0

RE: Display/Selection

You can assign a keyboard shortcut for all the display types. Look under the Customize > Keyboard > View section.

RE: Display/Selection

(OP)
Sorry, I looked must have missed it.

Thanks

Certified SolidWorks Associate
SW2009 X64 SP 5.1
Dell Precision T5500
Nvidia Quadro 4000
Xeon 2.27GHz Quad Core, 6GB RAM
XP Pro X64 SP2.0

RE: Display/Selection

(OP)
Sorry again. I don't want to toggle the display type but the selection type. When in wireframe I want to able to toggle the ability to select hidden lines or not same when in shaded mode.

Certified SolidWorks Associate
SW2009 X64 SP 5.1
Dell Precision T5500
Nvidia Quadro 4000
Xeon 2.27GHz Quad Core, 6GB RAM
XP Pro X64 SP2.0

RE: Display/Selection


CODE --> vba

Sub ToggleSelInWireframe()

Dim swApp As SldWorks.SldWorks

Set swApp = Application.SldWorks

swApp.SetUserPreferenceToggle swEdgesHiddenEdgeSelectionInWireframe, _
    Not CBool(swApp.GetUserPreferenceToggle(swEdgesHiddenEdgeSelectionInWireframe) + 0)

End Sub


Sub ToggleSelInShaded()

Dim swApp As SldWorks.SldWorks

Set swApp = Application.SldWorks

swApp.SetUserPreferenceToggle swEdgesHiddenEdgeSelectionInHLR, _
    Not CBool(swApp.GetUserPreferenceToggle(swEdgesHiddenEdgeSelectionInHLR) + 0)

End Sub 

-handleman, CSWP (The new, easy test)

RE: Display/Selection

Wow, my solution and Deepak's were posted at the exact same time (down to the resolution of the measuring device).

-handleman, CSWP (The new, easy test)

RE: Display/Selection

(OP)
Haa that's funny.

Certified SolidWorks Associate
SW2009 X64 SP 5.1
Dell Precision T5500
Nvidia Quadro 4000
Xeon 2.27GHz Quad Core, 6GB RAM
XP Pro X64 SP2.0

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources