When I work in drawings I need the selection of hidden lines available. Yet when I work with part or assemblies I need this option disabled. Is there some kind of way I can temporarily toggle the system options "allow selection in wireframe and HLV modes" and "allow selection in HLR and shaded modes" with a hot-key assignment or through the API?
SolidworksDrawings And Detailing