Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

SolidWorks 2001 Plus API

Status
Not open for further replies.

Standing

Mechanical
Jan 14, 2002
1,578
I have been able to set a SolidWorks 2001 plus layer, using Visual Basic 6 with the following line of code.
RetVal = Model.SetCurrentLayer("myLayer")
The layer called myLayer would become current. I have not been able to find the code to turn a layer on or off. Can anyone tell me the code to turn a SolidWorks 2001 plus layer off and then back on again?
 
Replies continue below

Recommended for you

I have not tested this, but the visibility property is available for the Layer object (Layer::Visible). You can get the layer object using the LayerMgr object (LayerMgr.GetLayer).

Hope this helps... DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor