HyperWorks Desktop

Session File Sample

Session File Sample

Previous topic Next topic No expanding text in this topic  

Session File Sample

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

*Id("MotionView v11.0")

*BeginPage()                   // Page 1

   *IsActive()

   *Title("Linear Acceleration-1", On)

   *Layout(10)

   *CurrentTimeStep(0)

   *StartTime(0)

   *EndTime(150000)

   *BeginWindow(Model)         // Window 1

       *IsActive()

       *BeginModel()

       *MdlFile("/homes /test.mdl")

       *BeginGraphic()

           *LightInfo(0, 0, 1, 0.5, 0.5, 0.5, 64)

           *RotationAngle(15)

       *EndGraphic()

   *EndModel()

*EndWindow()

*BeginWindow(Graphic)         // Window 2

   *TimeScale(1)

   *TimeDelay(0)

   *BeginGraphic()

       *ClippingRegion(-3.37538, -1.67749, -0.798684,

                       0.0767936)

       *GraphicSource("pass_bag.KIN3", 1, -1, 1)

       *Preferences(FixF, FixM, 500, 500, 100,

                    RenderHelix, 0, 1, TimestepOn,

                    FramenameOff)

       *Part("FEM_1_mat_5_geom_4", On, IdOff, 5, Opa,

             Sha, NoTrace)

       *Tracking(Off)

   *EndGraphic()

*EndWindow()

*BeginWindow(Plot)         // Window 3

   *BeginPlot()

       *BeginHeader(On)

           *Text("LOWER TORSO - Res. acceleration

            (m/s**2)")

       *EndHeader()

       *BeginAxis(X, "Primary", on)

       *EndAxis()

       *BeginAxis(Y, "Primary", on)

       *EndAxis()

       *BeginCurve(On, "Untitled")

           *BeginVector(X, File)

               *Filename("LINACC")

               *Datatype("Time")

           *EndVector()

           *BeginVector(Y, File)

               *Filename("LINACC")

               *Datatype("Linear Acceleration")

               *Request("LOWER TORSO")

               *Component("Res. acceleration (m/s**2)")

           *EndVector()

       *EndCurve()

   *EndPlot()

*EndWindow()

*BeginWindow(TextEditor)         // Window 4

   *BeginTextEditor()

       *Filename("altair/demos/Templex/sqrt5.tpl")

       *TextColor(0)

       *BackgroundColor(8)

       *Font(courier, 1, 1, 12)

   *EndTextEditor()

*EndWindow()

*EndPage()

*BeginDefinitions()

   *DefineReport(repdef_sdf_test, dat_file)

       *Parameter(dat_file, "Wheel datafile name",

        filename, "*.dat")

       *ReportLabel("SDF Test Summary")

       *Page(page_text_sum, "SDF Text Summary",

        pagedef_text_sum, dat_file)

   *EndDefine()

 

   *DefinePage(pagedef_text_sum, dat_file)

       *Layout(1)

       *TextEditor(text_sum, "Table", txtdef_text_sum,

        dat_file)

   *EndDefine()

 

   *DefineTextEditor(txtdef_text_sum, dat_file)

       *Filename("sdf_sum.tpl")

       *SetString(temp_var, dat_file)

   *EndDefine()

*EndDefinitions()

*BeginPalette()

*EndPalette()

 

See also

Session Files