User Tools

Site Tools


Intro | Session 1 | Session 2 | Session 3 | Session 4 | Session 5 | Session 6 | Session 7 | Session 8

Session 2: Add more inputs to the GUI

Estimated completion time → 45 minutes.

In this session we build a tab where a User may configure an arrangements of loads as input to the underlying simulation program.

Then on a second tab we ask the User to specify details that will be included in the report.

Finally we provide the User with a button to Submit a run of the EASAP to the underlying software.

At the end of the session our two new tabs will appear as below.


A. Use a SLIDER to define load location

  • if starting back from the EASA Web Pages,
    • log in, and Set Mode→Author.
    • go to EASA→Applications→My EASAPs and find your ‘Rectangular Plate’ EASAP
    • click on it and then click on the EASAP Builder link in the new page
    • after the EASAP Builder window appears…
  • expand the USER INTERFACE branch
  • similarly expand the TABBED PANE LIST.
  • right-click edges
    • select Sibling→Add TABBED PANE rename it loads
      • set Tab: 3. Loads on Plate

Nested within the loads TABBED PANE we now configure two other TABBED PANE's, a User will specify concentrated loads on the first or else will specify a uniform load on the second pane.

  • right-click on loads
    • select Child→Add TABBED PANE LIST ()
      • expand it
        • select the Child TABBED PANE rename it concentrated
          • set Tab: Concentrated Loads
  • let's add a second TABBED PANE.
  • right-click concentrated
    • select Sibling→Add TABBED PANE () rename it uniform
      • set Tab: Uniform Load
  • right-click concentrated
    • select Child→Add SUB PANE
      • set Border: Location
  • right-click this SUB PANE
    • select Child→Add SLIDER () rename it xloc
      • set
        • Default: 50
        • Upper Bound: 100
        • Lower Bound: 0
        • Number of Divisions: 20
        • Label: X (% of width)
  • select xloc and make a copy using CTRL-c and then Paste (Sibling) with CTRL-b
  • rename the new SLIDER yloc
    • set Label: Y (% of length)
  • right-click the Parent SUB PANE
    • select Sibling→Add REALBOX rename it input_Lc
      • set Units: Force
      • select kip from the dropdown menu at the far right when the following parameters are set,
        • Default: 0,kip
        • Label: Load magnitude
        • Upper bound: 10,kip
        • Lower bound: 0,kip

B. Create an new UNIT

We need to create a new unit which will be used for uniform loads which is not in the default set of units.

A new DIMENSIONAL GROUP automatically creates a Child CONVERSION

  • expand the Stress2 object
    • select conversion1 rename it ksf, which stands for ‘kilo-pounds per square foot’,
      • set
        • Unit: ksf
        • Factor: 2.088543E-5
  • we are ready to apply our newly created ksf unit
  • on the Tree
    • right-click USER INTERFACE→loads→TABBED PANE LIST→uniform
      • select Child→Add REALBOX rename it Lu
        • set parameters below, starting with Units: so we get the correct dropdown list for units on the far right
          • Units: Stress2
          • Default: 0 ksf
          • Label: Load magnitude (ksf)
          • Upper Bound: 10 ksf
          • Lower Bound: 0 ksf
  • save and check the EASAP, the USER INTERFACE branch of the Tree should appear as below,

The third TABBED PANE should look like this after clicking on the Open Web Browser Test button.


C. Allow a User to upload a logo via a FILE CHOICE

  • return to the Builder
    • right-click USER INTERFACE→TABBED PANE LIST→loads
      • select Sibling→Add TABBED PANE rename it report
        • set Tab: 4. Output Preferences
  • on this pane we create three data entry objects for a User to input fields in the report title,
    • Name
    • Project title
    • Case title
  • right-click report
    • select Child→Add SUB PANE rename it row1
      • set
        • Layout: HORIZONTAL
        • Show Border: FALSE
  • right-click row1
    • select Child→Add SUB PANE rename it titles
      • set Border: Report Titles
  • right-click titles
    • select Child→Add INPUTBOX rename it name
      • set
        • Label: Your name
        • Default: Name
        • Input Type: Text
  • right-click name
    • select Sibling→Add INPUTBOX rename it project
      • set
        • Label: Project title
        • Default: Project
        • Input Type: Text
  • right-click project
    • select Sibling→Add INPUTBOX rename it case
      • set
        • Label: Case title
        • Default: Case
        • Input Type: Text
  • we want a User to be able to upload a small image such as a brand in the report
  • right-click titles
    • select Sibling→Add SUB PANE rename it logo
      • set Border: Report Logo
  • right-click on logo
    • select Child→Add FILE CHOICE () rename it file
      • set
        • Label: Logo image file
        • File Filter: *.jpg
        • Rename To: logo.jpg
  • right-click file
    • select Sibling→Add INPUTBOX rename it lw
      • set
        • Default: 250
        • Label: Logo width in pixels
        • Input Type: Number
  • right-click lw
    • select Sibling→Add INPUTBOX rename it lh
      • set
        • Default: 43
        • Label: Logo height in pixels
        • Input Type: Number
  • should data tables be included in the report? Let's let the User decide with a tick box…
  • right-click TABBED PANE LIST→report→row1
    • select Sibling→Add SUB PANE rename it row2
      • set the same parameters as row1 (below),
        • Layout: HORIZONTAL
        • Show Border: FALSE
  • right-click row2
    • select Child→Add SUB PANE rename it tables
      • set
        • Border: Report Tables
        • Layout: HORIZONTAL
        • Label Width: 180
  • right-click tables
    • select Child→Add LOGICBOX () rename it showdisp
      • set
        • Default: TRUE
        • Label: Show table of plate displacements
        • Order: LABEL FIRST
        • Tool Tip: Check the box if you want a table of plate displacement values shown in your report
  • right-click on showdisp
    • select Sibling→Add SPACER ()
  • right-click on the SPACER
    • select Sibling→Add LOGICBOX () rename it showmom
      • set
        • Default: TRUE
        • Label: Show table of plate moments
        • Order: LABEL FIRST
        • Tool Tip: Check the box if you want a table of plate moment values shown in the report
  • finally we add a button to Submit the inputs to the underlying software (Session 5)…
  • right-click on the tables SUB PANE
    • select Sibling→Add SPACER ()
  • right-click the SPACER
    • select Sibling→Add BUTTON () rename it button_submit
      • set
        • Label: Submit Run
        • Tool Tip: Sends run submission of the EASAP to the EASA Server for processing
  • right-click button_submit
  • save and check the EASAP.

The USER INTERFACE branch of the Tree should appear as below,

The fourth TABBED PANE in our EASAP should look like this,

  • exit EASAP Builder; either select File→Exit or just click on the x in the top-right corner of the window.
    • if a pop-up window asks whether to save or not, select ‘Yes’.

We have completed Session 2. Let's continue on to Session 3.


Introduction | Session 1 | Session 2 | Session 3 | Session 4 | Session 5 | Session 6 | Session 7 | Session 8