Object Manipulation Typescript Commands
«className» «ident»
Typing the name of an object class followed by a new identifier creates a new object of the indicated type. The object is placed into the current module. The current module can be set prior to declaring a new object using Open m . A list of possible class names can be obtained by typing list object.
When the object is created, it becomes the current object. Attributes set without an explicit object identifier apply to this object.
Examples
Create a chance variable:
>Chance Adjusted_weight >Title : Adjusted Weight >Units : Lbs >Definition: Normal(155,15)
Create a variable inside the module Expense Details:
>Open Expense_details >Variable Water_pmts >Definition: 15 >Close Expense_details
Delete
- Delete «ident»
Deletes the object with the indicated identifier. If the object is a module, all objects contained within the model are also deleted.
Rename
- Rename «oldIdent» «newIndent»
Renames the identifier of an object.
Move
- Move o m
Moves object o from its current module into module m. More details can be found at Move.
Open
- Open m
Makes m the current module, so that any new objects created from typescript are placed into this module.
There is another form of the Open command that can be used for opening windows. See Open in User Interface Typescript Commands for details.
Close
- Close m
The parameter, m, must be the current module. If so, then sets the current module to be the parent of the current module. When new objects are created from typescript, they are placed into the current module.
When m is the top-level module or model object, this closes the model and exits Analytica.
There is another form of the Close command that can be used for closing windows within Analytica. See Close in User Interface Typescript Commands for details.
Edit
- Edit «ident»
Jumps to the appropriate user window where the definition of the indicated variable can be edited.
Enable comment auto-refresher