CADD II

Assignment #21

SLIDE LIBRARIES

Objective:

The student will create and use a slide library.

Assignment:

Part 1

Using Autocad 2000i’s MS-DOS Editor, create a file listing the slide names of each of the slides to be included in the slide library. Do this by entering SHELL at the command line. At the prompt OS Command: <ENTER>. You will see the following in the MS-DOS window:

Microsoft® windows 98

©Copyright Microsoft Corp 1981-1998

Type the following line:

c:\progra~1\mdt5\support\slidelib a:name_of_your_slide_library

This opens the slidelib.exe utility.

When the slidelib.exe utility is opened you will then see:

Slidelib 1.2 (3/8/89)

© copyright 1987-89,1994,1995 Autodesk, Inc.

all rights reserved

List your slide names by typing:

a:\slide name <ENTER ¿

a:\slide name <ENTER ¿

a:\slide name <ENTER ¿

When you have typed the last slide name, <ENTER ¿> three times. This exits the slidelib.exe utility.

Part 2

¨ On Engineering Paper write a script file to execute a slide show calling slide files from the slide library. Be sure to include the file name of the script file.

File Name: ______

An example of the script file would be as follows:

VSLIDE A:MYLIB(SLIDE1)

VSLIDE A:MYLIB(SLIDE2)

VSLIDE A:MYLIB(SLIDE3)

VSLIDE A:MYLIB(SLIDE4)

The reference (A:MYLIB) is the slide library file name on the disk drive A: and the reference (SLIDE1) is the slide file name contained within the slide library.

¨ Add a 1 second delay at the end of the slide show script file before the rscript command.

¨ Add a 1 second delay between each slide to allow time for viewing if necessary.

CADD II

Assignment #21

SLIDE LIBRARIES

Evaluation:

¨ Save the Slide Library File.slb, and the Slide Show Script file.scr on your BACK-UP disk and your ASSIGNMENTS TO BE GRADED disk. Print a copy of all slides and your script file.

Vocabulary:

MSLIDE VSLIDE SCRIPT FILES

DELAY RSCRIPT SLIDELIB.EXE

Procedure from the AutoCAD Help: User Documentation

Compiles AutoCAD slide files listed in an ASCII file into a slide library file

You can construct slide library files (SLB) from slide files (SLD) by using the SLIDELIB utility program supplied in the AutoCAD support directory. The following operating system command line syntax constructs a slide library:

slidelib library [ < slidelist ]

where

library specifies the slide library file (extension .slb) into which the slide files (extension .sld) are added. slidelist specifies a list of slide files. If you want to specify a file extension, it must be .sld.

SLIDELIB reads a list of slide file names. This list is normally supplied by redirecting a list of files (one per line in another file created using a text editor or a user-supplied utility program) to standard input.

The operating system commands shown below will create a slidelist file that can be used with SLIDELIB. All the slide files you want to compile into a slide library should be placed in a single directory. At a DOS prompt (version 5.0 or newer), enter the following:

dir *.sld /b > mylist

This creates the mylist file, which you can pass to SLIDELIB. You can also create the mylist file with a text editor by listing the slide file names (and paths, if necessary), such as lobby, d:\slides\office, and \aec\slides\stairs. The slide file name, but not the drive and directory information, is saved in the library file. Because only the file name is included, a library can contain slides with the same name from different directories, but AutoCAD can access only one of the slides.

To generate the slide library mlib from mylist, enter the following:

slidelib mlib < mylist

This entry creates the file mlib.slb, which contains the names and definitions of the slides listed in mylist.

WARNING! Do not delete your original slides. SLIDELIB has no provision for updating a slide library once it is created. If you want to add or delete a slide, update the slidelist file and re-create the library with SLIDELIB. All the original slides must be present in order to do this.