home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 March
/
Chip_1998-03_cd.bin
/
tema
/
MINICAD
/
MC7DEMO
/
MINICAD.1
/
GNS_ELEM.MPC
< prev
next >
Wrap
Text File
|
1997-04-30
|
641b
|
34 lines
PROCEDURE ToggleLayerVis;
CONST
layerNameSuffix='Set';
VAR
han:HANDLE;
layerCount,currentCount,layerNamePresence:INTEGER;
layerName,currentLayer:STRING;
vis:REAL;
BEGIN
han:=ACTLAYER;
currentLayer:= GetLName(han);
han:=FLAYER;
layerCount:= NUMLAYERS;
currentCount:=1;
WHILE (layerCount+1>currentCount) DO
BEGIN
layerName:=GetLName(han);
layerNamePresence:=Pos(layerNameSuffix,layerName);
IF (layerNamePresence<>0) THEN
BEGIN
LAYER(LayerName);
vis:= GetLVis(han);
IF (vis = 2) THEN SHOWLAYER;
IF (vis = 0) THEN GRAYLAYER;
END;
han:=NEXTLAYER(han);
currentCount:=currentCount+1;
END;
LAYER(currentLayer);
END;
RUN(ToggleLayerVis);