Print Page | Close Window

LAYERS ON & OFF

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=92
Printed Date: 01.Jun.2026 at 00:08


Topic: LAYERS ON & OFF
Posted By: GaryM
Subject: LAYERS ON & OFF
Date Posted: 10.Sep.2007 at 07:55
Hi guys
 
Working in autocad 2008, would like to switch off certain layers and turn on certain layers with a command button in VBA. For example:
 
There is more than one layer that starts with "FFA_" is there a way i can use that text to switch off all the layers starting with "FFA_" and all Layers starting with "FCA_" in one command.
 
 
Thanks


-------------
Regards,
Gary Mansfield



Replies:
Posted By: Vladimir Michl
Date Posted: 10.Sep.2007 at 08:12
You don't need any VBA for this. Just use a simple menu macro:
 
_-LAYER;_OFF;FFA_*,FCA_*;;
 


-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner


Posted By: GaryM
Date Posted: 11.Sep.2007 at 08:33
Hi Vladimir
 
What i'm basically doing is converting a lisp routine into VBA. So its a about 6 compiled routines i'm trying to make convert into 1 vba routine.
 
Thanks
 
 


-------------
Regards,
Gary Mansfield



Print Page | Close Window