HyperWorks Tools

Process Creation in the Process Studio

Process Creation in the Process Studio

Previous topic Next topic Expand/collapse all hidden text  

Process Creation in the Process Studio

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  
hmtoggle_plus1greyCreate a New Process Template
1.Launch Process Studio by going to the start menu and selecting Altair HyperWorks 12.0 > Tools > Process Studio.
2.Create a new process template by selecting the New icon new16  from the toolbar, or by selecting New from the File menu.
3.Select your desired location and create a new process template called tutorial.
4.Click Create. By default, the process template allows you to create a process that would allow end-users to save a process state at any time and continue the process at a later time. To change this option, go to the Tools menu and select Template Preferences.  

newscreen_10

hmtoggle_plus1greySet up the HWPM Pages
1.Click the Control view tab.

controlview_10

2.Select utils from the categories drop-down menu.

utiltab_10

3.Select the Label control and drag it into the Page view panel.

tutorials_10

4.In the Property view panel, set the following:

Instance Name: DEMO_LabelFilename

Text: Filename:

property_imageview_10

5.Highlight and drag the Text field control, from the Control view, into the Page view panel and place beside the label.

pageview_10

6.In the Property view, set Instance Name to DEMO_TextFilename.

demofilename_10

7.Highlight and drag the File browser control into the Page view panel.
8.Set Instance Name to DEMO_FBFilename.

filebrower_demofb

9.Click the File Filter in the Property view panel.
10.Click Add, and type "iges" in the Extension column.

editfilter_10

11.Click Close.
12.Click Script located next to the OnClicked property.

onclicked_10

13.Set the Script Type to HWPM Script from the drop down menu.
14.Type the following HWPM script as the callback to:

var filename = DataModel.GetValue("DEMO_FBFilename");

DataModel.Property("DEMO_TextFilename.value", filename);
 

editactionscript_10

15.Click Close.
16.Select the Apply button in the Page view panel and change Text to Import.

textimport_10

17.Click Script located next to the OnClicked property.

onclickedscript_10

18.Select TCL Script from the drop down menu and type in the following script:

set filename [::hw::pmgr::PmgrGetData 0 "DEMO_TextFilename.value"];

set filename [file join $filename];

*feinput #iges\\\iges $filename 0 0 -0.01 1 0";

 

tclscript_10

19.Click Close.
20.Click the Layout tab. You may need to dock the tab using the pushpin icon.
21.Experiment with the different layout settings. For example, try setting the following on for the added controls:

Left: Anchor

Top: Fixed

Right: Free

Bottom: Free

layoutview_tutorial

22.Create a new page using the Add Page PSaddpage icon.
23.Select Control view and drag the Label control on the new page. Set the following:

Instance Name: DEMO_LabelMeshSize

demolabelmeshsize_10

Text: Mesh Size.

text_meshsize

24.Highlight and drag a Text field control beside the label.  Set the following:

Instance Name: DEMO_TextMeshSize.

25.Click Apply and change Text to Mesh.
26.Write the following TCL script as the callback to the OnClicked: property of the Apply button:

set meshsize [::hw::pmgr::PmgrGetData 0 "DEMO_TextMeshSize.value"];

*createmark surfaces 1 "all";

eval *defaultmeshsurf 1 $meshsize 2 1 1 0 1 1 1 0 0 0 0;

 

editactionscript_3_10

27. Click Close.

hmtoggle_plus1greyCreate the Process Tree
1.Switch to the Process view tab. A single folder will be displayed in the panel. The name of the folder can be changed to represent the process being authored. Individual tasks and folders can be added to the main process folder. If additional folders are added to the process, tasks can be added to each of the new folders.
2.Right-click the Process and select Add Task.

addtask_10

3.In the Property view, set the following: Name and Label to Import IGES.

importiges_10

Note:Editing the name will automatically edit the label for the first time. Also, an underscore will be automatically added to names separated with spaces.
4.Set the following:

Task Type:  HWPM Page

HWPM Page: tutorial_Page1.

5. Click Apply.

tutoral1_10

6.Create another task with Name and Label set to Mesh. Set the following:

Task Type: HWPM Page

HWPM Page: tutorial_Page2.

tutorialpage2_10

7.Click Apply.
hmtoggle_plus1greySet up Template Preferences
1.Select Template Preferences from the Tools menu.

PStempprefer

2.In the Template Preferences tab, you can give the process a title (user-friendly name).
3.In the About Dialog tab, you can specify the text to appear in the about box (as an HTML string).

PSaboutdialog

4.Save the file by selecting Save from the File menu.
hmtoggle_plus1greyExecute/Run the Process
1.Launch HyperMesh and select Process Manager from the Applications menu.

2.   Once Process Manager is open, click the open icon open16 and search for your .pmt project.

3.Save the process instance.

After saving, you can do any of the following:

Continue with the next set of section in the template, or go to the next task.
Close the instance and reopen the previously saved instance.