Sets the class visibility of the specified class to hidden (invisible) status.
PROCEDURE HideClass(className : STRING);def vs.HideClass(className):
return None| Name | Type | Description |
|---|---|---|
| className | STRING | Name of class. |
If you're hiding a class for the purpose of printing with that class turned off, you have to do a ReDrawAll before calling the the DoMenuTextByName('Print',0) call, or else the class doesn't get hidden until after the script completes execution.
HideClass('Dimension');vs.HideClass('Dimension')BEGIN
boo := ResourceIsOK;
gClassName := getlocstr(12022, 1);
IF NOT(classexists(gClassName)) THEN goto 99;
if GetCVis(gClassName)=0 then hideclass(gClassName) else showclass(gClassName);
99:END;
RUN(ToggleRLClass);
BEGIN
FOR i:=1 to ClassNum DO hideclass(classlist(i));
hlyr:=flayer;
WHILE (hlyr <> NIL) DO
BEGIN
lnm := GetLName(hlyr);
SetClFillBack (UserClassName, DecimalToColorIndex(TmpClassInfo.FillBack));
SetClUseGraphic (UserClassName, TmpClassInfo.UseAtCreation);
}
{set the class visiblity for this class for this sheet}
IF visibility = 'I' THEN HideClass (UserClassName)
ELSE IF visibility = 'G' THEN GrayClass (UserClassName)
ELSE ShowClass (UserClassName);
IF visibility = 'A' THEN actClass := UserClassName;
ENDelif ( classVis_Curb == -1 ):
vs.HideClass( gCurb_Class )VS Functions: ShowClass
Availability: from All Versions