home *** CD-ROM | disk | FTP | other *** search
- ;*****************************************************************************
- ;*
- ;* rman_dcl.lsp
- ;* ¬⌐┼v (C) 1991-1992 Autodesk ñ╜Ñq
- ;*
- ;* Ñ╗│n┼ΘºK╢O¿╤▒z╢iªµÑ⌠ª≤Ñ╬│~╗▌¿D¬║½■¿⌐íB¡╫º∩ñ╬╡oªµ, ª²¼O░╚╜╨┐φ┤`ñU¡z
- ;* ¡∞½h :
- ;*
- ;* 1) ñWªC¬║¬⌐┼v│qºi░╚╗▌ÑX▓{ªb¿Cñ@Ñ≈½■¿⌐∙╪íC
- ;* 2) ¼█├÷¬║╗í⌐·ñσÑ≤ñ]Ñ▓╢╖⌐·╕ⁿ¬⌐┼v│qºiñ╬Ñ╗╢╡│\Ñi│qºiíC
- ;*
- ;* Ñ╗│n┼Θ╢╚┤ú¿╤º@¼░└│Ñ╬ñW¬║░╤ª╥, ª╙Ñ╝┴n⌐·⌐╬┴⌠ºtÑ⌠ª≤½O├╥; ╣∩⌐≤Ñ⌠ª≤»S«φ
- ;* Ñ╬│~ñº╛A║┘⌐╩, ÑHñ╬░╙╖~╛P░Γ⌐╥┴⌠ºtÑX¿π¬║½O├╥, ªbª╣ñ@╖ºñ⌐ÑHº_╗{íC
- ;*
- ;*
- ;*****************************************************************************
- ;*****************************************************************************
- ;* New PROTEUS UDD code for the RenderMan Icon menu.
- ;* Larry Knott, 12-2-91
- ;*****************************************************************************
- ;------------------------------------------------------------------------------
- (setq rm_dcl (load_dialog "rmmenu.dcl"))
- ;------------------------------------------------------------------------------
- (defun C:RMMENU ()
-
- (if (minusp rm_dcl)
- (setq rm_dcl (load_dialog "rmmenu.dcl")))
- (cond
- ((minusp rm_dcl)
- (princ (strcat
- "\nªb│]⌐w¬║íu╖j┤M╕⌠«|Ñ╪┐²ívñUºΣñú¿∞íurmmenu.dclív└╔«╫;"
- "\n╜╨└╦¼d íusupportív└╔«╫¬║½÷╕╦¬¼¬pñº½ßªA└|╕╒íC")))
- ((and (null #GTSPO)
- (null (findfile "rman.lsp")))
- (unload_dialog rm_dcl)
- (setq rm_dcl -1)
- (princ (strcat
- "\nÑ╪½eíu╖j┤MÑ╪┐²ívñ║ºΣñú¿∞íuRman.lspív╡{ªí└╔íC"
- "\n╢╖ª│íuAutodesk RenderManívñºíuAutoShade V2ívñΦñ~ñ╣Ñ╬íuRenderManívíC"
- "\n╜╨░╤ª╥íuAutoShade V2ívñº╛▐º@ñΓÑUññª│├÷íu╡{ªí½÷╕╦ív¬║½ⁿÑ▄íC")))
- ((and (null #GTSPO)
- (not (load "rman.lsp" nil)))
- (princ "\n╕ⁿñJíurman.lspív┐∙╗~íC")
- (setq #GTSPO nil))
- (T (menucmd "S=X")
- (menucmd "S=RMAN")
- (while (> (DRIVE_RMAN_DCL) 1) T)))
- (princ))
- ;------------------------------------------------------------------------------
- (defun DRIVE_RMAN_DCL (/ slides width height item1 key rslt)
-
- (new_dialog "rmmenu" rm_dcl)
- (setq slides (list (cons "SETUP" "" ) (cons "PROP" "")
- (cons "ATTAC" "H") (cons "EDIT" "")
- (cons "COPY" "" ) (cons "LIST" ""))
- width (1- (dimx_tile "SETUP"))
- height (1- (dimy_tile "SETUP")))
- (foreach item1 slides
- (start_image (setq key (car item1)))
- (slide_image 0 0 width height (strcat "rmmenu(irm" key ")"))
- (end_image)
- (action_tile key "(setq key $key)(done_dialog 2)"))
- (action_tile "RMSCAN" "(done_dialog 3)")
- (action_tile "DEFAULTS" "(done_dialog 4)")
- (setq rslt (start_dialog))
- (cond
- ((= rslt 2) (setq key (strcat "RM" key (cdr (assoc key slides))))
- (prompt key)
- (eval (list (read (strcat "C:" key)))))
- ((= rslt 3) (C:RMSCAN))
- ((= rslt 4) (C:DEFAULTS))
- (T (prin1)))
- rslt)
- ;------------------------------------------------------------------------------