home *** CD-ROM | disk | FTP | other *** search
- /* This Genie sets up an isometric grid and enables snap.
- Written by Don Cox © Feb 93 Not public domain but freely usable for non-commercial purposes */
-
-
- signal on error
- signal on syntax
- address command
-
- call pdm_AutoUpdate(0)
- cr="0a"x
-
- gsize = pdm_GetGridSize()
- gwidth = word(gsize,1)
- gheight = word(gsize,2)
- call pdm_SaveText("ram:gridsize",gsize)
-
- currentunits = pdm_GetUnits()
- call pdm_SetGrid(1)
- select
- when currentunits = 1 then call pdm_SetGridSize(0.2165,0.125)
- when currentunits = 2 then call pdm_SetGridSize(.433,.25)
- otherwise call pdm_SetGridSize(1.9,1) /* not so accurate in picas */
- end
- call pdm_SetGridSnap(1)
-
- call exit_msg()
-
- end
-
- error:
- syntax:
- do
- exit_msg("Genie failed due to error: "errortext(rc))
- end
-
- exit_msg:
- do
- parse arg message
- if message ~= "" then
- call pdm_Inform(1,message)
- call pdm_ClearStatus()
- call pdm_AutoUpdate(1)
- exit
- end
-
-