home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2003 November / PCWK1103B.iso / DesignCAD 3D Max PLUS trial 30 / DATA1.CAB / Example_Files / Sample_Macros / PaperSpace Mode.d3m < prev    next >
Encoding:
Text File  |  2003-09-29  |  814 b   |  34 lines

  1. ' This simple macro allows you to access some basic functions
  2. ' from within paper space mode
  3. '
  4. ' Sys(801) indicates if we're in Paperspace mode
  5. if (not sys(801)) then      
  6.     ' Delete all paperspace layouts.
  7.             Sys(802) = 0    
  8.       ' Enter paperspace mode and load a template
  9.             >Paperspacemode
  10.              {
  11.             <Filename "*\pstemplate\fr1.tps"
  12.            }
  13.       ' Print with current settings
  14.         >PrintNow
  15.             {
  16.             }
  17.     ' Delete previous layout
  18.         Sys(802) = 0 
  19.     ' Load new Template from within paperspace mode
  20.         >LoadPSTemplate
  21.         {
  22.             <Filename "*\pstemplate\abcdportrait.tps"
  23.             }
  24.       ' Exiting Paperspace mode again.
  25.          >PaperspaceMode
  26.             {
  27.              }
  28.     ' Delete all templates again
  29.             Sys(802) = 0 
  30. else
  31.     Message "Already in PaperSpace Mode"
  32. end if
  33. End
  34.