User Guide

Chapter 4 Creating and editing models
100
Enabling and disabling automatic part creation
Part creation in the Model Editor is optional. By default,
automatic part creation is enabled. However, if you
previously disabled part creation, you will need to enable
it before creating a new model and part.
To automatically create parts for new models
1 From the Tools menu, choose Options.
2 If not already checked, select Always Create Part to
enable automatic part creation.
3 Under Save Part To, enter the name of the part library
for the new part. Choose either:
Part Library Path Same As Model Library to create
or open the *.OLB file that has the same name
prefix as the currently open model library (*.LIB).
User-Defined Part Library, and then enter a file
name in the Part Library Name text box.
Note
If you select a user-defined Part library, the Model Editor saves all
new parts to the specified file until you change it.
Saving global models (and parts)
When you save your changes, the Model Editor does the
following for you:
Saves the model definition to the model library that
you originally opened.
If you had the automatic part creation option enabled,
saves the part definition to
MODEL_LIBRARY_NAME.OLB.
To save the new model (and part)
1 From the File menu, choose Save to update
MODEL_LIBRARY_NAME.LIB (and, if you enabled
part creation, MODEL_LIBRARY_NAME.OLB), and
save them to disk.
Instea
d
o
f
using t
h
e OrCAD
d
e
f
au
l
t part set
for new models, you can have the Model
Editor use your own set of standard parts.
To find out more, see Basing new
parts on a custom set of parts on
page 5-133.
Examp
l
e: I
f
t
h
e mo
d
e
l
l
i
b
rary is
MYPARTS.LIB, then the Model Editor
creates the part library MYPARTS.OLB.
I
f
you want to save t
h
e open mo
d
e
l
l
i
b
rary
to a new library, then:
1 From the File menu, choose Save As.
2 Enter the name of the new model
library.
If you want to save only the model
definition that you are currently editing to
a different library, then
1 From the Part menu, select Export.
2 Enter the name of the new file.
3 If you want PSpice to search this file
automatically, configure it in Capture
(using the Libraries tab on the
Simulation Settings dialog box).
Pspug.book Page 100 Wednesday, November 11, 1998 1:14 PM