Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

turning layers on/off with API 2

Status
Not open for further replies.

DHALE1

Mechanical
Jan 8, 2003
61
0
0
US
Does anyone know how to turn specific layers on/off using api or vb?

Thanks

Dan
 
Replies continue below

Recommended for you

I do not use layers myself but if you look in API help you might find what you are looking for. I did a search on layers and got back a couple dozen hits.
 
This will do the work:


Set layerMgr = swDraw.GetLayerManager() 'LayerManager object for the drawing doc object

Set swLayer = layerMgr.GetLayer(LayerName)
swLayer.Visible = True 'Turn it on ,Or False to turn off
 
Status
Not open for further replies.
Back
Top