navigate  
  Home
Contact Us
Store
Library
Forums
 
     

  Forums

Forums » Customization » KXL file for turning off levels Messages in this topic - RSS
|
16.12.2004 09:01:30
Dennis Nenadov
Dennis Nenadov
Posts 14

The following kxl file prompts you to select an entity. It then makes the entities' level and color the default, turns off other levels, and finally turns on the default.


What I would like to do is replace all the lines with "LEVELMOD NDISP..." with a command that undisplays all the levels. I'm having troubles figuring that out, can you help me? Thanks in advance for any reply.


------------------------


:start
CLEAR hEnt, hLev
HENTITY hEnt
HLEVEL hLev
$number=" "


GETENT "Select an Entity on the Level you want to display.[Esc or Backup to finish]", hEnt
IF(0 != @key)
    GOTO end


CLEAR levnum
STRING $levnum
ENTLEVEL hEnt, hLev
GETLEVELNUMBER hLev,$number
C = @entatt[0]


SET LEVEL, hLev
SET COLOR, C


LEVELMOD NDISP, "1"
LEVELMOD NDISP, "2.1"
LEVELMOD NDISP, "2.2"
LEVELMOD NDISP, "3"
LEVELMOD NDISP, "4"
LEVELMOD NDISP, "5"
LEVELMOD NDISP, "6.1"
LEVELMOD NDISP, "6.2"
LEVELMOD NDISP, "7"
LEVELMOD NDISP, "8"
LEVELMOD NDISP, "9"
LEVELMOD NDISP, "10"
LEVELMOD NDISP, "11"
LEVELMOD NDISP, "12"
LEVELMOD NDISP, "13"
LEVELMOD NDISP, "14"
LEVELMOD NDISP, "15"
LEVELMOD NDISP, "16"
LEVELMOD NDISP, "20"


LEVELMOD DISP, $number


notestate



:end
exit

16.12.2004 10:08:21
CKDExpert
CKDExpert
Posts 131

How About This:
---------------------------------------------------------------------------
:start
CLEAR hEnt, hLev
HENTITY hEnt
HLEVEL hLev
$number=" "


GETENT "Select an Entity on the Level you want to display.[Esc or Backup to finish]", hEnt
      IF(0 != @key)
            GOTO end
CLEAR levnum
STRING $levnum
ENTLEVEL hEnt, hLev

GETLEVELNUMBER hLev,$number
C = @entatt[0]

SET LEVEL, hLev
SET COLOR, C


LEVELMOD NDISP, "1-20"
LEVELMOD DISP, $number
notestate


Pause"Ready Set Go"


LEVELMOD DISP,"1-20"
Notestate
:end
exit

16.12.2004 14:16:46
Dennis Nenadov
Dennis Nenadov
Posts 14

Thanks! that's great.


One thing I noticed is that the file doesn't work with child levels (eg. 2.1, 2.2, etc.)


 


Dennis

16.12.2004 15:42:49
CKDExpert
CKDExpert
Posts 131

Yes,
That is correct this is a limitation in the KXL programming.
You will see the problem also if you select a entity on a sub level your KXL program will not display it! 

11.05.2006 13:52:40
wschafer
wschafer
Posts 4

Dennis, if you would not mind, could you email me the KXL file that you are using to turn off levels


Thanks


Wayne


wschafer@lcn.kmmfg.com

17.05.2006 11:54:23
HansW
HansW
Posts 4

Wayne,
look for the kxl utility '
levonoff' downloadable from this website. I should do what you want and much more.


Hans


__________________________________________________________
I owe everything to my Savior Jesus Christ. (John 3:16)
I love my wife and our two daughters
I enjoy programming in VB6, VB.net and Cadl/KXL (when I have time)
__________________________________________________________



--

__________________________________________________________
I owe everything to my Savior Jesus Christ. (John 3:16)
I love my wife and our two daughters
I enjoy

pages: 1
|

Forums » Customization » KXL file for turning off levels