SCRIPTO Interface

Home » Knowledge Base » LS-Prepost » Other » SCRIPTO Interface

SCRIPTO is a tool that allows users to customize the LS-PrePost UI and implement their own functions for manipulating models and post-processing results. Anyone interested in using SCRIPTO should download the files listed below.

1. scripto_rev20070906.pdf

The official documentation for each published routine currently available to script writers. Users that wish to customize LS-PrePost2.2 should have this manual and update this document regularly.

2. scripto_workshop.pdf

A powerpoint transfered file demonstrated in the workshop at the 5th LS-DYNA user forum in Ulm Germany. This file is the class notes for the users who attended the conference. Other users may read through it for an overview of customization in LS-PrePost.


A folder that contains a demonstration of a chess game written in the scripting language. The whole game contains 6 script files. Users should load chess.sco into LS-PrePost to start the game.

This game demonstrates how to use the c-parser syntax to develop a script. A class ChessPiece is introduced as a link-list in the scripts to demonstrate how the scripting language can define a user-defined class.


A set of QA scripts that demonstrate how to use every object defined in SCRIPTO.

  • 4.1 widgets
  • 4.1.1 dialog
  • dg.sco          : demonstrate how to create a dialog

  • 4.1.2 docommand
  • dcm.sco         : demonstrate how to execute a command

  • 4.1.3 form
  • fm.sco          : demonstrate how to create a form and change the title

  • 4.1.4 label
  • lb.sco          : demonstrate how to create a label

  • 4.1.5 list
  • dblclklst.sco   : demonstrate double-click events
  • ls.sco          : demonstrate how to create the list and use its manipulation functions

  • 4.1.6 menu
  • menu.sco        : demonstrate how to create a menu
  • menu_new.sco    : demonstrate how to add/insert/remove a menu item dynamically

  • 4.1.7 pushbutton
  • pb.sco          : demonstrate how to create a pushbutton

  • 4.1.8 radiobox
  • rb.sco          : demonstrate how to create a radiobox

  • 4.1.9 scrolltext
  • st.sco          : demonstrate how to create scrolled text

  • 4.1.10 separator
  • sep.sco         : demonstrate how to create separators

  • 4.1.11 slider
  • sld.sco         : demonstrate how to create sliders

  • 4.1.12 tab
  • tb.sco          : demonstrate how to create tabs and tabpages

  • 4.1.13 textfield
  • tf.sco          : demonstrate different textfields

  • 4.1.14 togglebutton
  • tg.sco          : demonstrate how to create toggle buttons

  • 4.1.15 tree
  • tr.sco          : demonstrate how to create a tree
  • 4.2 util
  • Demontrates how to use the utility functions to manipulate models or use as a tool such as general selection mechanism.
  • genselect.sco   : demonstrate how to use the general selection scheme in LS-PrePost
  • move_ele.sco    : demonstrate how to move elements from one part to the other
  • utilfdialog.sco : demonstrate how to use file dialog
  • utilkform.sco   : demonstrate how to sumon the keyword forms
  • 4.3 data
  • Demonstrate how to uses the data functions to manipulate model data.
  • setelem.sco     : change connectivity of a shell element (the associated script “dyncalc.sco” is also needed)
  • setnode2.sco    : change the nodal coordinates of a shell part (nodal.k is needed)
  • setnode.sco     : set/get nodal coordinates of an element (nodal.k is needed)
  • transp.sco      : set/get the transparency of a part (mf.k is needed)
  • utilpinfo.sco   : get the part/element/nodal information from a model
  • 4.4 dyna
  • dynacalc.sco    : a routine that can be shared by other scripts to calculate a shell element area is demonstrated
  • 4.5 misc
  • Scripts in this folder either using functions that are still under development or are currently undocumented. When they are documented/tested, they will be moved to one of the previous sections (4.1 – 4.3).


A set of scripts that demonstrates how you can load a model and access it from the DataCenter routines. This will show you how to create bitmaps, use highlight mechanisms, create new sets through the general selection mechanism, and set up initial and boundary conditions for a keyword deck. To load the scripts, please read main.sco.