版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、8-1PAT304 Course Notes Release 9.5Copyright 2001 MSC.Software Corporation1Lecture 8Customizing:Toolbar, p3printers.def, Keymapping, Creating an Analysis Preference8-2PAT304 Course Notes Release 9.5Copyright 2001 MSC.Software Corporation28-3PAT304 Course Notes Release 9.5Copyright 2001 MSC.Software C
2、orporation3Display - ToolbarlThe Toolbar provides quick access to frequently used functionsAdditional functions may be added to the toolbar32 Toolbar functions are supplied with MSC.PatranThe default UNIX toolbar contains 30 iconslThe default NT toolbars contain 32 icons8-4PAT304 Course Notes Releas
3、e 9.5Copyright 2001 MSC.Software Corporation4PATRAN Default Toolbar Icons8-5PAT304 Course Notes Release 9.5Copyright 2001 MSC.Software Corporation5PATRAN Default Toolbar Icons (cont.)8-6PAT304 Course Notes Release 9.5Copyright 2001 MSC.Software Corporation6PATRAN Toolbar Control FilelThe Toolbar on
4、the main form is configured by the p3toolbar.def file.lp3toolbar.def is located in the MSC.Patran installation directory.lThe file is read in sequential order when the p3toolbar is displayed.i.e., top to bottom in the file refers to the icons left to right on the toolbarlp3toolbar.def file example:S
5、tart Toolbar = Transform*ICON= tbrotatexy.bmp*CLASS= uil_toolbar*FUNCTION= rotate_xy*HELP= Mouse Rotate XY*LOAD ITEMEnd Toolbar8-7PAT304 Course Notes Release 9.5Copyright 2001 MSC.Software Corporation7PATRAN Toolbar Control File (cont.)lThe icons can be found in Patran_install_dir/icons directory.*C
6、LASS indicates where to find the function for the icon.*FUNCTION indicates which function will be executed when the icon is selected.*HELP indicates the help bubble that will be displayed when the mouse moves over the icon.lThere is also an option for whether or not to load the icon into the toolbar
7、 when PATRAN is executed.In order for the icon to load into MSC.Patran, *LOAD ITEM must be added after the *HELP call.lThe Start/End Toolbar Lines (NT only) define the boundaries of the dockable toolbars8-8PAT304 Course Notes Release 9.5Copyright 2001 MSC.Software Corporation8PATRAN Toolbar Iconsl*I
8、CON specifies the icon that is to be used in the Toolbar form.lThe icons are restricted to a 40 x40 bitmap format (typically 28x28 for UNIX or 16x16 for NT).lIcons can be created using various UNIX bitmap utilities or Paint for NT.lA toolbar icon template (UNIX) is supplied with MSC.Patran and can b
9、e used to create user-defined icons. tbblank.28.iconlThe user defined icons must be referenced in the p3toolbar.def file and must be in MSC.Patrans pathlp3toolbar.def must be in either the Patran_install_dir or the users home directory8-9PAT304 Course Notes Release 9.5Copyright 2001 MSC.Software Cor
10、poration9PATRAN Toolbar Functionsl*CLASS and *FUNCTION specify the function that is to be used by the Icon in the Toolbar.lCLASS and FUNCTION definitions can be specified by creating relatively simple PCL functions.lPCL functions that reside within a user defined class are made available by referenc
11、ing the library in the users p3epilog.pcl file.l! PATH UNIX_path_to_library or sys_path(“ADD”,.)l! LIBRARY class.plb or sys_path(“ADD”,.)8-10PAT304 Course Notes Release 9.5Copyright 2001 MSC.Software Corporation10p3printers.def (UNIX only)lThe p3printers.def file is located in the Patran_install_dir
12、.lThe file allows you to configure the printers that will appear in the “Available Printers” listbox on the Print form.lThe printers available on NT need to be set up through starndard Windows configuration.lAn example of the format is shown below:$This is the Default Postscript PrinterPrinter = Pos
13、tscript Default Device = Unknown Driver = Postscript Destination = Unknown Paper Size = Letter, Custom $ See the documentation for additional sizes Width = 0.0 $ Default width for Custom paper size Height = 0.0 $ Default height for Custom paper size Left Margin = 0.5 in Right Margin = 0.5 in Top Mar
14、gin = 0.5 in Bottom Margin = 0.5 in Default Units = Inches, Points, cm $ Other units are Picas and mm Print Orientation = Portrait, Landscape; Landscape $ Note use of default Number of Copies = 18-11PAT304 Course Notes Release 9.5Copyright 2001 MSC.Software Corporation11p3printers.def (cont.)lThe dr
15、iver is also displayed in the p3printers.def filelAn example is shown below:$ .Driver Specific Options.Format = Black to White, White to Black, Color $ another option is “Grayscale”Background = White, Black, Actual Lines & Text = White, Black, Actual; Black $ Note use of default Line Weight = 0.
16、5 pts Text Scale = 100 % Image Size = Fit on Page, As Is Scale Factor= No Show; 1.0 $ Note use of “No Show” and a default Center = No Show; Yes Draw Borders = Yes, No Quality = No Show; Normal Color Model = No Show; RGB GCR = No Show; 75 %8-12PAT304 Course Notes Release 9.5Copyright 2001 MSC.Softwar
17、e Corporation12Keymapping (UNIX only)lHot KeysTouch a key to execute an option, such as:rotate, zoom, labels on/offFunctions on the quickpick/toolbar can be executed from the keyboardlProvided by X-lib (UNIX only)lDefined in a file called .Patran.EventMapslDefault is in Patran_install_dir, and is se
18、arched for through the PCL PathlMost recent keymap has priorityIf the key is defined twice the last definition takes precedence.8-13PAT304 Course Notes Release 9.5Copyright 2001 MSC.Software Corporation13Keymapping (cont.)8-14PAT304 Course Notes Release 9.5Copyright 2001 MSC.Software Corporation14Ke
19、ymapping SyntaxlModifier : FunctionlModifiers:NoneMetaShiftCtrlAltLocklEvent:Btn 3 DownBtn 2 DownBtn 1 DownBtn 3 UpBtn 2 UpBtn 1 UplKeyIf you want to specify a certain key KeynameKeyname = a, F1, KP_1Note: None: do_this(), makes any key you hit execute do_this()8-15PAT304 Course Notes Release 9.5Cop
20、yright 2001 MSC.Software Corporation15Keymapping Example:lFor example,you may have the following mappings:None1: LabelsOn()Shift1: LabelsOff()Alt: LabelsOn()Alt: LabelsOff()Ctrl Alt: ZoomOut()Ctrl Alt: ZoomIn()Ctrl s: SpectrumOnOff()osfUp:PanUp()osfDown:PanDown()NoneKP_1: RearView()NoneKP_2: BottomView()Ctrl : PopupGMenu(*selectMenu)Ctrl : PopupGMenu(*appsPopMenu)None c:CallPCL(test_event)lWhere test_event is:Function test_event()ui_exec_function(“my_class”,”display”)End Function /* te
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 二零二五年度車牌轉(zhuǎn)讓與汽車租賃公司信用保證協(xié)議4篇
- 二零二五年度材料質(zhì)量保證及售后服務(wù)合同3篇
- 2025年度礦產(chǎn)資源開采土地承包合同書2篇
- 二零二五年度珠寶首飾打蠟保養(yǎng)工程合同3篇
- 個人租房協(xié)議書范本簡單版
- 2025年度吹填工程合同變更與解除協(xié)議3篇
- 豐巢快遞柜場地租賃協(xié)議(2024版)
- 二零二五年度車輛維修配件供應(yīng)與質(zhì)量控制協(xié)議4篇
- 2025年新能源設(shè)備進(jìn)出口合作協(xié)議4篇
- 二零二五年度電梯設(shè)備安全性能測試與認(rèn)證合同4篇
- 2025年N1叉車司機(jī)考試試題(附答案)
- 《醫(yī)院財務(wù)分析報告》課件
- 2025老年公寓合同管理制度
- 2024-2025學(xué)年人教版數(shù)學(xué)六年級上冊 期末綜合卷(含答案)
- 2024中國汽車后市場年度發(fā)展報告
- 感染性腹瀉的護(hù)理查房
- 天津市部分區(qū)2023-2024學(xué)年高二上學(xué)期期末考試 物理 含解析
- 《人工智能基礎(chǔ)》全套英語教學(xué)課件(共7章)
- GB/T 35613-2024綠色產(chǎn)品評價紙和紙制品
- 2022-2023學(xué)年五年級數(shù)學(xué)春季開學(xué)摸底考(四)蘇教版
- 【螞蟻?!?024中國商業(yè)醫(yī)療險發(fā)展研究藍(lán)皮書
評論
0/150
提交評論