HyperWorks Desktop

Preference File Sample

Preference File Sample

Previous topic Next topic No expanding text in this topic  

Preference File Sample

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

*Id("MotionView v11.0")

*BeginDefaults()

 *SetAutoSaveInterval(60)

 *SetBubbleHelpStatus(On)

 *PrintAreaBorders(On)

 *SetDefaultPageLayout(1)

 *SetDefaultPSFile("YourName.ps")

 *SetDefaultPrinterOrientation(Landscape)

 *SetDefaultPrintRange(Current)

 *SetDefaultPrintMargins(1,1.5,.75,.75,2,2,inches)

 *BeginModelDefaults()

   *BeginModelGUIDefaults()

     *BeginUserMode(mode1, "Designer")

        *Hide(Markers, Beams, Forces, Motions, Outputs)

     *EndUserMode()

   *EndModelGUIDefaults()

   *BeginMdlDefaults()

     *RegisterAdamsScript(std_exe, "Standard executable", "/homes/altair/std_exe")

     *RegisterAdamsScript(user_exe, "User executable", "user_exe")

   *EndMdlDefaults()

 *EndModelDefaults()

 *BeginGraphicDefaults()

   *SetBrowserExtension("*gra")

   *SetOrientation(Top)

   *SetBackGroundColor(31)

   *NumStepsToTrace(5)

   *Part(Default, On, IdOff, -1, Opaque, Shaded, NoTrace)

   *Force(Default, On, IdOff, 2, Opaque, Shaded, NoTrace, Force, Component, None)

   *Marker(Default, On, IdOff, 5, Opaque, Shaded, NoTrace)

   *SetPartColorList(2, 3, 4, 5, 6, 7)

 *EndGraphicDefaults()

 *BeginPlotDefaults()

   *RegisterExportTemplate("Altair Format", "altair.tpl", "alt")

   *SetBrowserExtension("*req")

   *RegisterImportTemplate("/usr/people/altair/new_format.tpl")

   *RegisterExternalReader("/usr/people/altair/altair_exe")/

   *RegisterExternalFunction("HIC","/usr/bin/madymo_hic")

   *SetBackgroundColor(0)

   *SetGridlineColor(14)

   *SetHeaderColor(1)

   *SetBorderColor(12)

   *SetZerolineColor(10)

   *SetFrameColor(31)

   *SetAxisColor(1)

   *SetAxisDefaults(0, 11, 2, 1, 11, 4)

   *SetAxisLabelFont("Times", 1, 0, 8)

   *SetAxisTicFont("New Century Schoolbook", 0, 1, 18)

   *SetHeaderColor(3)

   *SetLine1HeaderFont("Times",0,0,8)

   *SetLine2HeaderFont("Times",1,0,10)

   *SetLine3HeaderFont("Times",0,1,12)

   *SetFooterColor(3)

   *SetLine1FooterFont("Helvetica",0,0,8)

   *SetLine2FooterFont("Helvetica",0,1,10)

   *SetLine3FooterFont("Helvetica",1,0,12)

   *SetCurveDefaults(1, 2, 1, 0, 0)

   *SetCurveDefaults(1, 3, 1, 0, 0)

   *SetCurveDefaults(1, 4, 1, 0, 0)

   *SetCurveDefaults(1, 5, 1, 0, 0)

   *SetCurveDefaults(1, 6, 1, 0, 0)

   *SetCurveDefaults(1, 7, 1, 0, 0)

   *SetLegendPlacement(TopRight)

   *SetLegendFont("Helvetica",1,1,24)

   *SetNoteAttachment(View)

   *SetNoteAlignment(Left)

   *SetNoteColor(5)

   *SetNoteFont("Helvetica",1,1,24)

   *SetPrintLineThickness(0.5)

   *SetAnimBubbleColor(6)

 *EndPlotDefaults()

 *BeginTextEditorDefaults()

   *SetBrowserExtension("*txt")

   *Font("Courier",1,0,12)

   *TextColor(0)

   *BackGroundColor(1)

 *EndTextEditorDefaults()

 *BeginHeader()

   *BeginRegion(400, 0, 600, 300)

     *Alignment(Center)

     *Font("Times",0,1,12)

     *Text("Project Title")

     *BorderWidth(1,1,1,1)

   *EndRegion()

 *EndHeader()

 *BeginFooter()

   *BeginRegion(0, 0, 100, 1000)

     *Image("Altair_logo.gif")

     *Text("Your Name")

     *BorderWidth(1,1,1,1)

   *EndRegion()

   *BeginRegion(100, 0, 900, 500)

     *Alignment(Center)

     *Font("Helvetica",0,0,12)

     *Text("{time} on {date}")

   *EndRegion()

   *BeginRegion(100, 0, 900, 1000)

     *Alignment(Center)

     *Font("Times",0,1,12)

     *Text("Example Footer")

     *BorderWidth(1,1,1,1)

   *EndRegion()

   *BeginRegion(900, 0, 1000, 1000)

     *Font("Times",0,1,12)

     *BorderWidth(1,1,1,1)

     *Text("Page:  {pagenum}/{numpages}")

   *EndRegion()

 *EndFooter()

*EndDefaults()

*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)

       *TextFile("sdf_sum.tpl")

       *SetString(temp_var, dat_file)

   *EndDefine()

*EndDefinitions()

{templex_off}

*BeginStatsTemplates()

   *BeginTemplate("Linear Regression")

       *BeginText()

{N = min({numpts(x), numpts(y)}) }

{q = sum(x)}

{K = {{N, q}, {q, sum(x^2)}}}

{L = {sum(y), sum(x*y)}'}

{A = inverse(K)*L}

Linear Least Squares Regression over

the chosen range index {from} -> {to}

 

 y = A * x + B where A = {A[1]}

                     B = {A[0]}

 

       *EndText()

   *EndTemplate()

*EndStatsTemplates()

{templex_on}

*BeginPalette()

   *BeginMaterial()

       *Name("Default")

       *Emission(0, 0, 0)

       *Ambient(0.2, 0.2, 0.2)

       *Diffuse(0.8, 0.8, 0.8)

       *Specular(0, 0, 0)

       *Shininess(0)

       *Alpha(1)

   *EndMaterial()

   *BeginMaterial()

       *Name("Almost Black")

       *Emission(0.1, 0.10385, 0.10385)

       *Ambient(0, 0, 0)

       *Diffuse(0, 0, 0)

       *Specular(0, 0, 0)

       *Shininess(0)

       *Alpha(1)

   *EndMaterial()

*EndPalette()

 

See also

Preference Files