Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-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
Joined
Jan 8, 2003
Messages
61
Location
US
Does anyone know how to turn specific layers on/off using api or vb?

Thanks

Dan
 
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
 
Thanks eranz
just what I was looking for.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top