Dec 102017
 
SlideManager is a program to manage, inspect, and print slide files and slide libraries created by the AutoCAD computer aided design package.
File SLDMGR41.ZIP from The Programmer’s Corner in
Category Printer + Display Graphics
SlideManager is a program to manage, inspect, and print slide files and slide libraries created by the AutoCAD computer aided design package.
File Name File Size Zip Size Zip Type
SLDMGR.DOC 55129 13526 deflated
SLDMGR.EXE 102904 52868 deflated
ZOOMS.SLD 3402 1559 deflated

Download File SLDMGR41.ZIP Here

Contents of the SLDMGR.DOC file










SlideManager


Slide Library Manager for AutoCAD Slide Files





Version 4.1
January 30, 1989





User's Guide, Reference Manual,
and Commentary











Copyright 1987, 1988, 1989

John Intorcio

4B Beacon Village
Burlington, MA 01803
CompuServe ID: 73417,155







Help make Shareware work.
Please read and abide by the license agreement contained herein.





SlideManager License Agreement
and Other Legal Stuff


License is granted for the use of this software on a profit sharing basis.
If you are using this product for private noncommercial applications, you
have my blessing and the right to use this program free of charge. If you
are using this product commercially or are otherwise deriving a profit from
its use, I require a share of those profits in the form of a registration
fee of $25 or more mailed to the above address. Payment of a handling fee
for distribution of this software does not constitute registration. You are
expressly forbidden to use this product in a commercial or governmental
environment without being a registered user. In any case, you may distribute
this software freely as long as it remains a complete unaltered package and
no price is charged for it. Upon registration users will receive a laser
printed manual and will be notified by U.S. Mail of future updates should
they occur. Registered users may upgrade to the current version of
SlideManager by sending a $5 handling charge to the address on the front
cover. In return they will receive a program disk with the latest version
of SlideManager and a laser printed manual.



Disclaimer

This program has been tested but there is no guarantee that it will work with
your equipment. There may be bugs in this code. If this program eats your
floppy or blows up your monitor, I claim no responsibility! Use this program
at your own risk!




Copyright 1987, 1988, John Intorcio. All rights reserved.





SlideManager is a trademark of John Intorcio.
AutoCAD and AutoSketch are registered trademarks of Autodesk, Inc.
AutoShade is a trademark of Autodesk, Inc.
Epson is a registered trademark of Seiko Epson Corporation.
IBM is a registered trademark of International Business Machines Corp.
Turbo C is a trademark of Borland International, Inc.
QuickC is a trademark of Microsoft Corp.

Introduction

SlideManager is a program to manage, inspect, and print slide files and slide
libraries created by the AutoCAD computer aided design package. With
SlideManager, tasks such as creating slide libraries, adding slides to a
library, updating slides in a library, merging slide libraries, etc. become
simple. As the facility provided with the AutoCAD package only allows the
creation of slide libraries and not the editing of same, SlideManager can be
a valuable tool for maintaining libraries. No longer is it necessary to
keep all the individual slides around just in case you want to make a change.

SlideManager may also be used to directly display slide files or entries from
slide libraries, on a graphics screen without the use of AutoCAD and to
optionally enlarge sections of those slides or show multiple slides on screen
at once. This allows the distribution and display of screen images created
by AutoCAD without the need to purchase additional AutoCAD licenses.
SlideManager can even be used to create automated slide shows from AutoCAD
slide libraries or slide files that can be run continuously in an unattended
mode.

SlideManager's Quadview and Gyroview options can be used to display multiple
slide images on screen simultaneously and to dynamically pan and zoom slides
for review.

SlideManager has the ability to print the image of a slide or an enlarged
portion of a slide on any printer compatible with the Epson FX standard.
SlideManager can also produce HPGL plot files which can then be used to
produce plotted output on an HPGL compatible plotter.

SlideManager can also be used to convert slides to the drawing interchange
format (.DXF) resulting in a file that can be loaded into AutoCAD and
edited. Although these files are limited to the resolution of the screen on
which the original slide was produced, they are nonetheless an editable
drawing file created from the slide image.

Lastly, SlideManager can be used to convert between old (AutoCAD 2.6x and
earlier, AutoShade 1.0, and AutoSketch 1.02) slide file format and new
(AutoCAD 9.0 and later) slide file formats. For certain desktop publishing
packages or other programs which only support one format or the other, this
too may prove a valuable tool.

SlideManager is a command line driven program with all instructions being
passed to the program as arguments on the command line used to start
SlideManager. This means it's easy to use SlideManager in a batch file or as
an external AutoCAD command. The sections that follow include a description
of SlideManager's command syntax and the details of each of the commands, an
explanation of how SlideManager deals with graphics and printing, the history
of the program, and some editorial comments.


Installation

Simple. There isn't any. To install SlideManager on a hard disk, simply
copy the file SLDMGR.EXE into any convenient directory. As long as that
directory is included in the DOS PATH, you'll be able to use SlideManager
wherever you need it.

You may also wish to copy the sample slide, ZOOMS.SLD to some place
convenient. You can use it as a quick reference screen for getting the right
zoom mode to display a slide.

That's it. You're done. Check out some slides!




Compatibility

SlideManager is compatible with all versions of AutoCAD through Release 10.
Versions of AutoCAD previous to Release 10 may not support all the features
of SlideManager, such as the binary .DXF file format. Note that even though
Release 10 can produce three dimensional drawings, the slide file is still a
two dimensional format as it is a snapshot of the screen. This means that
.DXF files created from slides created from three dimensional drawings will
not recreate three dimensional drawings when imported into AutoCAD.

SlideManager should run on any computer using the MS-DOS or PC-DOS operating
system 2.1x or later. Those options which present graphics on the screen
require a compatible graphics adapter (see the Graphics section for a list of
supported display modes) and the printing functions, which use the BIOS print
routines, require an IBM compatible BIOS.


Documentation Note

This document was originally prepared on an Apple Macintosh complete with
graphics and nifty fonts and real nice formatting. It was then massaged into
an ASCII format for inclusion on this disk. It lost some effect in the
translation. Registered users receive a laser printed copy of the original
document.

SlideManager Commands

The general format of the command line is:
SLDMGR opt[flags] [slidelib/slidefile/showfile] [...] [time] [Zmode]

opt Is a letter from the following list which determines the processing
to be done by SlideManager:

a - Add slidefile(s) to slidelib
c - Convert slidefile to .DXF format
d - Delete slidefile from slidelib
e - Extract slidefile from slidelib
f - Flip through slidelib
g - Gyroview. Display slidefile and allow dynamic zooms
h - Create HPGL plot file from slidefile
i - Initialize (create) slidelib with slidefile(s)
l,w - List or wide list of slides in slidelib
m - Merge slidelib2 into slidelib1
o - Output (display and immediately print) slidefile
p - Present the slide show defined in showfile
r - Remove slidefile from slidelib
q - Display multiple slides Special format.
s - Show slide slidefile (for time if present and in Zmode if
present)
u - Update slidefile in slidelib
v - View slide slidefile from slidelib (for time if present
and in Zmode if present)
x - Explode all slides from slidelib
+,- - Convert slidefile to new or old slide file format

slidelib Is the primary slide library to be acted upon. File
extensions are stripped, .SLB is assumed.

flags Are command modifiers that change the default actions by
SlideManager.

slidefile Is a slide file to be processed or the name of a slide entry
in a slide library to be processed. File extensions are
stripped, .SLD is assumed.

... Are the secondary files to be acted on. File extensions are
stripped, .SLB and .SLD are assumed.

showfile Is a slide show file containing a list of SlideManager
commands to be executed. File extensions are stripped, .SHW
is assumed.

time Applies only to the q, s, and v options and is the delay for
displaying a slide in seconds or 0 for display until a key is
pressed.

Zmode Applies only to the q, s, and v options and, if present,
specifies what portion of the slide is to be enlarged on the
screen.

Command Details

Each of the SlideManager commands is documented below. Each command
description has three sections: Format, Example, and Action. The Format
section is a formal statement of the command syntax showing the arguments
that are expected. The Example section shows some samples of complete and
proper commands. The Action section describes the actions that SlideManager
will take upon receiving the command. Finally, for options which have flags,
the Flags section describes flags that may be appended to each option to give
SlideManager more information.


a - Add slide file to slide library

Format: SLDMGR a slidelib slidefile or
SLDMGR a slidelib slidefile slidefile2...

Example: SLDMGR a mylib slide01 or
SLDMGR a mylib slide01 slideb theslide

Action: SlideManager appends the slide file slidefile(s) (.SLD)
to the slide library slidelib (.SLB). An error occurs
if any of the slide files cannot be found or if there
is already a slide in the library with the same name as
any of the files to be added.

Wildcard characters (?,*) are allowed in the file names
and full path names may be used. File extensions are
stripped and .SLD and .SLB are assumed. This means
that you can add all the slide files in a directory by
using a syntax like:

SLDMGR a mylib b:\slides\*.sld


c - Convert slide file to .DXF format

Format: SLDMGR c slidefile

Example: SLDMGR c myslide

Action: SlideManager searches for a slide file slidefile
(.SLD). If it is found, it is then translated into the
drawing interchange format and a drawing interchange
file (.DXF) of the same name is created.

See the Graphics section for further remarks.

Flags: Flags may be appended to the option argument. For
example "cb" instead of "c". The order and case of the
flags does not matter. Valid flags for the "c" command
are:

b Create binary .DXF file. Note that binary
.DXF files ar smaller and load faster but can
not be read by versions of AutoCAD previous
to Release 10.


d - Delete slide file from slide library

Format: SLDMGR d slidelib slidefile

Example: SLDMGR d mylib slide01

Action: SlideManager searches the slide library slidelib(.SLB)
for an entry with the name slidefile. If it is found,
it is removed from the library. Otherwise, an error
occurs.


e - Extract slide file from slide library

Format: SLDMGR e slidelib slidefile

Example: SLDMGR e mylib slide01

Action: SlideManager searches the slide library slidelib (.SLB)
for an entry with the name slidefile. If it is found,
SlideManager creates a slide file (.SLD) of the same
name containing only that entry. The slide library is
not effected. An error occurs if the slide entry is
not found.

A full path name may be specified for the slide file and
this may result in the extracted file being placed in a
directory other than the default directory.


f - Flip through a slide library

Format: SLDMGR f slidelib or
SLDMGR f slidelib time

Example: SLDMGR f mylib or
SLDMGR f mylib 1

Action: SlideManager searches for the slide library slidelib
(.SLB) and if it is found, the first slide is drawn on
the screen.

If the time argument is present and not zero,
SlideManager pauses for time seconds and then displays
the next slide in the library. SlideManager continues
this process, presenting each of the slides in the
library in sequence until the end of the library is
reached.


If the time argument is not present or is zero, after
presenting the first slide, SlideManager enters a key
control mode and the following special keys are
defined:

Up Arrow Display next slide
Down Arrow Display previous slide
PgUp Ahead 10 slides
PgDn Back 10 slides
Home Display first slide
End Display last slide
*/PrtSc Dump the slide to the printer
Return Exit SlideManager

Most other keys will behave just as the Up Arrow key and
will display the next slide in the slide library.

Flags: Flags may be appended to the option argument. For
example "fnh" instead of "f". The order and case of
the flags does not matter. Valid flags for the "f"
command are:

h Employ support for the 8514 display adapter in
high resolution mode.

l Employ support for the 8514 display adapter in
low resolution mode.

n Display the name of the slide in the upper
left corner of the screen when in graphics
mode.

p When exiting SlideManager, dump a copy of the
last displayed graphics screen to the printer.

2 Printer is attached to LPT2: rather than the
default LPT1:


g - Begin Gyroview mode

Format: SLDMGR g slidefile

Example: SLDMGR g slide01

Action: SlideManager searches the directory for a slide file
slidefile (.SLD). If it is found, it is displayed on
the screen at full size. SlideManager will then wait
for a key to be pressed. The following special keys
are defined for panning and zooming around the screen:


Left Arrow Pan left 1/2 screen
Right Arrow Pan right 1/2 screen
Up Arrow Pan up 1/2 screen
Down Arrow Pan down 1/2 screen
Keypad "+" Key Zoom in
Keypad "-" Key Zoom out

Depending on the slide you are displaying, it's possible
to loose track of where you are. To enable you to get
your bearings back, the following additional keys are
defined:

Home Upper left corner
End Lower left corner
PgUp Upper right corner
PgDn Lower right corner
Ins Center
Del Restore intial view

Another special key is the */PrtSc key. Pressing this
key will begin a graphics screen dump to the printer.
See the Printing section for further details.

Just about any other key will cause SlideManager to
exit. The special keys may seem arbitrary on some
keyboards but with the standard PC layout, they
actually make a fair amount of sense.

If the graphics card is not supported or the slide file
is not found, an error message results. See the
Graphics section for further remarks.

Flags: Flags may be appended to the option argument. For
example "gnh" instead of "g". The order and case of
the flags does not matter. Valid flags for the "g"
command are:

h Employ support for the 8514 display adapter in
high resolution mode.

l Employ support for the 8514 display adapter in
low resolution mode.

n Display the name of the slide in the upper
left corner of the screen when in graphics
mode.

p When exiting SlideManager, dump a copy of the
last displayed graphics screen to the printer.

2 Printer is attached to LPT2: rather than the
default LPT1:



h - Create HPGL plot file from slide

Format: SLDMGR h slidefile

Example: SLDMGR h slideone

Action: SlideManager searches for the file slidefile (.SLD). If
it is found, SlideManager create an HPGL plot file
from the slide file. The plot file has the same name
as the slide file but has an extension of .PLT. See
the plotting section for additional information.

Flags: Flags may be appended to the option argument. For
example "hte" instead of "h". The order and case of
the flags does not matter. Valid flags for the "h"
command are:

t Do pen turret optimization.

e Do end point swapping.

i - Create (Initialize) a new slide library

Format: SLDMGR i slidelib slidefile or
SLDMGR i slidelib slidefile1 slidefile2...

Example: SLDMGR i mylib slide01 slide2 aslide

Action: SlideManager creates a new slide library slidelib
(.SLB) containing the slide files (.SLD) that are
specified on the command line.

Wildcard characters (?,*) are allowed in the file names
and full path names may be used. File extensions are
stripped and .SLD and .SLB are assumed. This means
that you can create a library from all of the slide
files in a directory by using a syntax like:

SLDMGR i mylib b:\slides\*.sld


l - List slides in slide library

Format: SLDMGR l slidelib

Example: SLDMGR l mylib


Action: SlideManager displays a listing of the slides contained
in the slide library slidelib (.SLB). The slide
library file is unaffected.


If you'd like the listing on your printer instead of the
screen, you can redirect the program's output by adding
'> PRN:' to the end of the command line such as:

SLDMGR l mylib > PRN:


m - Merge slide libraries

Format: SLDMGR m slidelib slidelib2

Example: SLDMGR m mylib yourlib

Action: SlideManager searches the slide library slidelib2 (.SLB)
for entries which do not already occur in slide library
slidelib (.SLB). If any such entries are found, they
are appended to slidelib. If no such entries are
found, an error occurs. The file slidelib2 is
unaffected.

Be patient. This option can take a long time when
working with large files.

o - Display and immediately print a slide file

Format: SLDMGR o slidefile or
SLDMGR o slidefile Zmode

Examples: SLDMGR o myslide
SLDMGR o myslide a

Action: SlideManager searches the directory for a slide file
slidefile (.SLD). If it is found, it is displayed on
the screen and then immediately dumped to the printer.
See the printing section for details on the printing
process. If Zmode is present, only a section of the
slide is displayed and it is enlarged to fill the
screen. Zmode is a letter of the alphabet, A-Z. The
letters correspond to sections of the slide as shown
in the slide ZOOM.SLD.

See the Graphics section for further remarks.

Flags: Flags may be appended to the option argument. For
example "onh" instead of "o". The order and case of
the flags does not matter. Valid flags for the "o"
command are:

h Employ support for the 8514 display adapter in
high resolution mode.

l Employ support for the 8514 display adapter in
low resolution mode.


n Display the name of the slide in the upper
left corner of the screen when in graphics
mode.

p When exiting SlideManager, dump a copy of the
last displayed graphics screen to the printer.

2 Printer is attached to LPT2: rather than the
default LPT1:


p - Present the slide show in a show file

Format: SLDMGR p showfile

Example: SLDMGR p myshow

Action: SlideManager searches the disk for a slide show file
showfile(.SHW). File extensions are stripped, the .SHW
extension is assumed. If the file is found,
SlideManager begins reading the file line by line and
executing the commands therein. Each line of the slide
show file consists of arguments that would be
acceptable to SlideManager if found on its command
line. That is, each line is identical to a line
command that would be used for SlideManager without
the "SLDMGR" at the beginning of the line.

When SlideManager reaches the end of the file, it starts
again from the top. This process continues until a
Ctrl-C (or two) is pressed at the console. If the
show file is not found, an error occurs. If one of
the lines in the file has invalid syntax, the same
error occurs that would have occurred if that line had
been incorrectly entered on the command line.

Here's an example slide show file:

s myslide 10
q 5 slide1 slide2 slide3
s slideb

This show file would cause SlideManager to display the
slide myslide for 10 seconds, display slides slide1,
slide2, and slide3 in Quadview mode for 5 seconds and
then display slide slideb until a key is pressed at the
console. This process will repeat indefinitely until
Ctrl-C is pressed.

Flags: Flags should be appended to the individual commands in
the show file.



q - Display slides in Quadview mode

Format: SLDMGR q time slide1 {slide2 slide3 slide 4}

Example: SLDMGR q 10 slide01 myslide slideb

Action: SlideManager searches the directory for a slide file
slide1 (.SLD). If it is found, it is displayed on the
screen at half size in the upper left quadrant. If
additional slide file names are present, they to are
searched for and, if found, displayed in subsequent
quadrants at half size. The second slide is displayed
in the upper right quadrant, the third in the lower
left and the fourth in the lower right.

If the time argument is not zero, SlideManager pauses
time seconds before clearing the screen and ending. If
the time argument is zero, the slides remain on the
screen until a key is pressed at the console.
Additionally, if the key that is pressed is the */PrtSc
key, a screen dump of the slide will be produced. See
the Printing section for additional information.

If the graphics card is not supported or one of the
slide files is not found, an error message results.
See the Graphics section for further remarks.

Flags: Flags may be appended to the option argument. For
example "qnh" instead of "q". The order and case of
the flags does not matter. Valid flags for the "q"
command are:

h Employ support for the 8514 display adapter in
high resolution mode.

l Employ support for the 8514 display adapter in
low resolution mode.

n Display the name of the slide in the upper
left corner of the screen when in graphics
mode.

p When exiting SlideManager, dump a copy of the
last displayed graphics screen to the printer.

2 Printer is attached to LPT2: rather than the
default LPT1:

r - Remove slide file from slide library

Format: SLDMGR r slidelib slidefile

Example: SLDMGR r mylib slide01


Action: This option is similar to the e - extract function
except that the slide file is removed from the library
after a stand alone slide file is created.

SlideManager searches the slide library slidelib (.SLB)
for an entry with the name slidefile. If it is found,
SlideManager creates a slide file (.SLD) of the same
name containing only that entry and then deletes that
entry from the slide library. An error occurs if the
slide entry is not found.A full path name may be
specified for the slide file and this may result in the

extracted file being placed in a directory other than
the default directory.


s - Show slide file on screen

Format: SLDMGR s slidefile or
SLDMGR s slidefile time or
SLDMGR s slidefile 0 Zmode or
SLDMGR s slidefile time Zmode

Examples: SLDMGR s myslide
SLDMGR s myslide 10
SLDMGR s myslide 0 a
SLDMGR s myslide 10 a

Action: SlideManager searches the directory for a slide file
slidefile (.SLD). If it is found, it is displayed on
the screen.

If the time argument is present and not zero,
SlideManager then pauses time seconds before clearing
the screen and ending. If the time argument is not
present or is zero, the slide remains on the screen
until a key is pressed at the console. If Zmode is
present, only a section of the slide is displayed and
it is enlarged to fill the screen. Zmode is a letter
of the alphabet, A-Z. The letters correspond to
sections of the slide as shown in ZOOMS.SLD.

See the Graphics section for further remarks.

If SlideManager is invoked with no time parameter and is
waiting for a key and if the key pressed is */PrtSc,
SlideManager will send a screen dump of the display to
the printer before exiting.

To display a slide file, immediately print its image and
then exit SlideManager, use "o" command rather than the
"s" command.


Flags: Flags may be appended to the option argument. For
example "snh" instead of "s". The order and case of
the flags does not matter. Valid flags for the "s"
command are:

h Employ support for the 8514 display adapter in
high resolution mode.

l Employ support for the 8514 display adapter in
low resolution mode.

n Display the name of the slide in the upper
left corner of the screen when in graphics
mode.

p When exiting SlideManager, dump a copy of the
last displayed graphics screen to the printer.

2 Printer is attached to LPT2: rather than the
default LPT1:


u - Update slide file in slide library

Format: SLDMGR u slidelib slidefile

Example: SLDMGR u mylib slide01

Action: SlideManager searches the slide library slidelib (.SLB)
for an entry with the name slidefile. If such an
entry is found, it is replaced with the contents of the
slide file slidefile (.SLD). If such an entry is not
found, an error occurs. The slide file name may
contain a complete path name.


v - View slide entry from slide library

Format: SLDMGR v slidelib slidefile or
SLDMGR v slidelib slidefile time or
SLDMGR v slidelib slidefile 0 Zmode or
SLDMGR v slidelib slidefile time Zmode

Examples: SLDMGR v mylib slide01
SLDMGR v mylib slide01 10
SLDMGR v mylib slide01 0 a
SLDMGR v mylib slide01 10 a

Action: SlideManager searches the directory for a slide library
slidelib (.SLB). The library is then searched for an
entry named slidefile. If it is found, it is displayed
on the screen.


If the time argument is present and not zero,
SlideManager then pauses time seconds before clearing
the screen and ending. If the time argument is not
present or is zero, the slide remains on the screen
until a key is pressed at the console. If Zmode is
present, only a section of the slide is displayed and
it is enlarged to fill the screen. Zmode is a letter
of the alphabet, A-Z. The letters correspond to
sections of the slide as shown in the slide ZOOMS.SLD.

If the graphics card is not supported or the slide
library or the slide entry is not found, an error
message results. See the Graphics section for further
remarks.

If SlideManager is invoked with no time parameter and is
waiting for a key and if the key pressed is */PrtSc,
SlideManager will send a screen dump of the display to
the printer before exiting.

Flags: Flags may be appended to the option argument. For
example "vnh" instead of "v". The order and case of
the flags does not matter. Valid flags for the "v"
command are:

h Employ support for the 8514 display adapter in
high resolution mode.

l Employ support for the 8514 display adapter in
low resolution mode.

n Display the name of the slide in the upper
left corner of the screen when in graphics
mode.

p When exiting SlideManager, dump a copy of the
last displayed graphics screen to the printer.

2 Printer is attached to LPT2: rather than the
default LPT1:



w - Wide listing of slides in slide library

Format: SLDMGR w slidelib

Example: SLDMGR w mylib

Action: SlideManager displays a listing of the slides contained
in the slide library slidelib (.SLB) with six entries
per line. The slide library file is unaffected.

If you'd like the listing on your printer instead of the
screen, you can redirect the program's output by adding
'> PRN:' to the end of the command line such as:

SLDMGR w mylib > PRN:


x - Explode slide library

Format: SLDMGR x slidelib

Example: SLDMGR x mylib

Action: This action is essentially similar to the e - extract
option except that ALL slide entries are extracted.

SlideManager searches the slide library slidelib (.SLB)
for entries. For each entry, SlideManager creates a
slide file (.SLD) of the same name containing only that
entry. The slide library is not effected.


+ - Convert to new slide format

Format: SLDMGR + slidefile

Example: SLDMGR + myslide

Action: SlideManager converts the slide file slidefile (.SLD) to
the new (AutoCAD 9.0 and later) slide format. If the
slide file cannot be found or is already in the new
format, an error occurs.


- - Convert to old slide format

Format: SLDMGR - slidefile

Example: SLDMGR - myslide

Action: SlideManager converts the slide file slidefile (.SLD) to
the old (AutoCAD 2.6, AutoShade 1.0, AutoSketch 1.02)
slide format. If the slide file cannot be found or is
already in the old format, an error occurs.


Graphics

In regards to the graphics produced by this program, SlideManager begins by
trying to find the best possible display mode for the hardware available.
The only cards directly supported are the IBM CGA, EGA, and VGA displays and
the Hercules graphics adapter although compatible cards should work just
fine. The IBM high resolution 8514 display adapter is fully supported
beginning with version 3.1 for high resolution slide displays. Well
actually... version 3.1 mis-detected the 8514 as a VGA card and only drove it
to VGA resolution. Seems it's tough to determine if the 8514 is really there
or not so with version 3.2 I've added the l and h tags to the s, v, and q
options. These tell SlideManager to not bother trying to detect what type
of graphics card is in the machine and to just go ahead and use the low (l)
or high (h) resolution 8514 drivers. This causes unpredictable results on
machines that do not have an 8514 display installed but does yield the full
resolution on the 8514 displays. (Thanks to MC for helping with this one.)
The major graphics modes supported are as follows:

Resolution
Mode (H x V) Colors
-------- ---------- ------
CGA 640 x 200 2
EGA Low 640 x 200 16
EGA High 640 x 350 16
VGA 640 x 480 16
Hercules 720 x 348 2
8514 Low 640 x 480 256
8514 High 1024 x 768 256

If your display adapter isn't directly supported, it may be able to
emulate one of the modes that is. There's no support for other display
cards because the compiler that I'm using doesn't support them. I'm not
in the business of writing device drivers (nor would I have the foggiest
idea of where to begin) so the chances of support for other displays in
future versions is unlikely.

Imperfect solid fill still occurs when a slide is converted to the .DXF
format. For the moment, solids are not filled, they are simply
outlined. When creating .DXF files, the aspect ratio is adjusted based
on the aspect ratio contained in the slide. There is no accounting for
the screen on which the .DXF file will be displayed.



Printing

SlideManager creates printed output on Epson FX compatible printers. The
program assumes that the printer is connected to parallel port LPT1:unless
it is told otherwise. The resolution at the printer is dependent on the
resolution of the graphics screen in use at the time of printing. The
reason for this is that SlideManager merely does a dump of the screen,
firing the printer's pins whenever a dot is illuminated on the screen
(more or less).

SlideManager bases its printing on the theories listed below. The first
basic premise is that the Epson printer can print 640, 720, or 1120 dots
per line in the horizontal direction. The second basic premise is that
firing the 8 pins of the printer and then advancing the paper 7/72" makes
the ninth dot (the first one on the second line) equally spaced from the
other dots. Because pixels and printer dots are not the same size and
because different display adapters have different aspect ratios, I've
tried to adjust the printing methodology to get a reasonable looking
image out of the printer. Here's how SlideManager does it:

640 x 200 Modes (CGA and EGA Low)

This mode is printed in the 640 dots per line mode (Epson mode 4).
This results in an 8" wide image. To get the desired aspect ratio,
we would like a 6.25" tall image. At 7/72" line spacing, that
means we would need more dots (about twice as many) as we have.
The solution to this is to use only every other of the printers
pins and therefor use only 4 bits (screen pixels) per line. This
gives 50 lines or about a 4.9" image, close enough.

640 x 350 Mode (EGA High)

Again, this mode is printed in the 640 dots per line mode. Again,
this results in an 8" wide image. To get near the desired ratio
this time, we use 6 screen bits per line. That gives about 58
lines or about 5.6". The six bits are used to control pins 1, 2,
3, 5, 6, and 7. Pins 4 and 8 are fired based on the status of pins
3 and 7 respectively.

720 x 348 Mode (Hercules)

This mode is printed in the 720 dots per line mode (Epson mode 6).
The same arguments hold here as for the 640 x 350 mode and again 6
bits are used per line.

640 x 480 Modes (VGA and 8514 Low)

Again, this mode is printed in the 640 dots per line mode. Again,
this results in an 8" wide image. By using eight screen bits per
line, one for each of the printer's 8 pins in normal fashion, we
end up with 60 lines or about a 5.8" image. This one is easy.

1024 x 768 Mode (8514 High)

This mode is printed in the 1120 dots per line mode (Epson mode 7).
This results in an 7.3" wide image. To get the desired aspect
ratio, we would like about a 5.5" tall image. The problem
this time is too many dots. If each dot were printed
normally, the image would be a 96 lines or about 9.3" image.
Instead, each two consecutive vertical dots are "or'd"
together and the result is printed. This results in half as
many lines or about a 4.7" image.

Most of these are guesses. If the aspect ratios seem way off for your
combination of graphics adapter and printer, please drop a line and I'll
try to get it straightened out. Yes, it would be nice if the image were
rotated 90o but that's tougher to do. Maybe in a future version - no
breath holding.

If you have trouble getting your printer to work at all, check the
following as a start:

- Printer is on-line and attached to LPT1:or your are using the
"2" flag to indicate that LPT2: should be used.
- Printer is set to "Epson" mode and not "IBM" mode.
- You are using a supported display adapter and you can see
slides on the screen.
- You've told SlideManager to print (Try the "o" option to be
sure).


Plotting

SlideManager creates plot files in the Hewlett-Packard Graphics Language.
The language and format used is primarily based on the HP 7475A plotter
but should function with most HPGL compatible plotters and printers. Once
a plot file is created, you may be able to plot by sending the file to
the appropriate port using the DOS COPY command such as:

COPY MYSLIDE.PLT COM1:

If this command fails, you may need to adjust the communications
parameters for your serial port. Refer to the DOS manual under the mode
command or try:

MODE COM1:9600,N,8,1,P or
MODE COM1:9600,E,7,1,P

This method may not work at all or may only work for small plots
depending on your configuration. If it fails, try using a
communications progam and doing an ASCII file send of the plot to the
plotter. Otherwise, you'll need a communications port spooler - Try
the Shareware FASTPLOT available in DL10 of the Autodesk CIS forum.

The HPGL files produced by SlideManager are nearly identical in format
to those produced by AutoCAD. The major exception being that the
AutoCAD files contain plotting information in "plotter units" while
SlideManager uses HPGL's scaling features to allow the plot information
to be in "drawing" or "screen" units. These units are slightly less
precise but allow for faster translation and are sufficient for the
resolutions provided by slide files.

AutoCAD colors one through six are mapped to pens one through six. Colors
seven through twelve are again mapped to pens one through six and son on.
All plots are done in landscape orientation, scaled to fill standard A
size (8-1/2" x 11") paper at the proper aspect ratio. The plots will be
expanded if you have other size paper loaded, but the aspect ratio will
not be corrected.

The same solid fill problems that arise in DXF conversion rear their ugly
head again here. For the time being, solid areas are not filled, they are
merely outlined with the fill color. I'm gonna solve this one yet.

Lastly, there is vary little plot optimization done in the base translate
routine. Although the approach is logical, there may be times when the
plotter appears to be making unnecessary pen movements or raising and
lowering the pen for no good reason. This makes for fast creation of plot
files but slower plots. If you would like the plot files to be more
efficient, there are two types of optimization available through the use
of option flags:

Pen Turret Optimization

With this flag enabled, pen changes are minimized. All of the lines
to be drawn with one pen are completed before the plotter moves on
to the next pen.

End Point Swapping

With this flag enabled, pen movements on the page are minimized as
well as up and down movements of the pen. For each new line to be
drawn, SlideManager determines which end point is closest and
starts there. SlideManager also keeps track of the pen up/down
status and does not raise the pen if the next line is to be drawn
from the end point of the current line.
Editorial

I hope someone finds this program useful! I wrote it as a learning
experience and it certainly has been that. It's the first program I ever
wrote in C and it's not the most elegant code you've ever seen. It does
seem to work most of the time. If you have suggestions about how to make
it better or you find something that doesn't work quite the way that you
think it should, please let me know! I can be contacted at the listed
mailing address or in the Autodesk forum on CompuServe (Go ADESK) as user
73417,155. You can also call me at (617) 273-0561 from 8:00am to 9:00pm
Eastern time if you've got an urgent problem. (If you wake me up, I won't
answer your question! You'll probably get an answering machine if you do
call but I'll try to get back to you.) If you're making money with this
thing, send me some! Otherwise, enjoy! That's the whole point. I wrote
this program for fun and if you're having fun with it, I'm glad. On the
other hand, if you're making a profit using the work that I've done, I
hope you'll share it!

If SlideManager doesn't work the way you expected it to, I'm sorry. It's
tough to test a program on equipment that you don't have access to so
support for some display cards, printers, CPU's etc. may be untested. If
you have suggestions on how to improve the program, constructive
criticism, or new features that you would find desirable, let me know!
I'm always looking for a new project. If you just have complaints,
please don't bother.

I'm grateful to all the folks at Autodesk and on the CompuServe forum that
helped me to complete this project either directly or indirectly. I owe
all of you guys beers! Jamie, Duff, Brad, Lansing, all the regulars,
and all, my continued thanks! Beers are still due!

Finally, this program went through a lot of revisions in a short period of
time. Things seemed to have settled down a bit but there are no
guarantees. I apologize to those of you who've had to download it form
CIS five or six or seven times to try to keep up with things. One could
argue that I should hold back on uploading new versions until they have
several new features in them. I like the opposite argument which says get
the new stuff up right away and let the downloader decide when upgrading
his or her version is worth the download time! So, if an added feature
isn't worth another download to you, just hang on: there will probably be
more!


Revision History

This program was originally developed using the Microsoft QuickC compiler
Version 1.0 on a Taiwanese clone and had been tested with slides created
by AutoCAD Version 2.18, 2.6, and 9.0. Version 3.0 was re-written for
Borland Turbo C Version 1.5. Version 4.0 was developed and compiled
with Turbo C Version 2.0 and tested with slides produced by AutoCAD
Version 10.0.

Version 1.0 - December 10, 1987

Original release.

Version 1.1 - December 11, 1987

Rewrote merge logic for greater speed.
Altered temporary file handling for greater speed.
Miscellaneous speed enhancements and clean ups.
Added w option for wide listings (Corona to JC).

Version 2.0 - December 17, 1987

Fixed bug in r option.
Added prompt before overwriting slide files.
Added v option for viewing slides from a library.
Added s option to show a slide file.
Added c option to convert to .DXF format (Apologies to DTO).

Version 2.1 - December 20, 1987

Added i option for creating libraries.
Added + and - options for format conversion.
Added prompts before overwriting any file.
Added ability to specify multiple files for a - add option.

Version 2.2 - December 21, 1987

Fixed "fanning" of common end point vectors.
Cleaned up error handling routine.
Fixed color mapping.

Version 2.3 - December 22, 1987

Improved solid outlining in .DXF conversions.
Fixed crash-causing bug in .DXF conversion of solids.
Improved file name handling.
Revived help screen (Lost it in 2.2!).

Version 2.4 - January 18, 1988

Fixed another bug in display of solid areas.

Version 2.5 - January 21, 1988

Added ability to "zoom" into sections of slides.


Version 2.6 - February 15, 1988

Added 21 additional zoom modes.
Added ability to display solids as unfilled shapes.

Version 3.0 - February 25, 1988

Re-written for Borland Turbo C Version 1.5 (Thanks CS!).
Now correctly fills solids.
Added direct support for Hercules displays.
Removed option for unfilled solids.

Version 3.0a - February 26, 1988

Fixed a problem with the color of solid fill.

Version 3.1 - March 2, 1988

Added full support for IBM 8514 display.
Fixed color mappings (again).

Version 3.2 - March 20, 1988

Added q - Quadview option for display of multiple slides.
Added l and h tags to s, v, and q options for 8514 drivers.

Version 3.3 - April 18, 1988

Added g - Gyroview option to allow dynamic pans and zooms.

Version 3.3a - May 1, 1988

Minor release. SlideManager split to multiple source code files for
ease of programming.

Version 4.0 - December 10, 1988 (One Year Old!)

Began use of Borland Turbo C Version 2.0.
Added p - Presentation option display of slide shows.
Added o - Output option for Epson compatible printers.
Added p tag to s, v, q, and g options to allow for printing.
Added option to print from show and view modes.
Added wildcard capability to a and i options.
Added full path name support for all options.
Added f - Flip option for library scanning.
Added h - HPGL translation option.
Added support for binary .DXF files.
Improved display speed.
Added option for display of slide name.

Version 4.1 - January 30, 1989

FIxed bug affecting i and a functions
Added Del key to gyroview keypad
Reset printer after slide dump



 December 10, 2017  Add comments

Leave a Reply