版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 氢电导指示剂阳离子交换树脂受污染的对策与处理
- 手工陶泥课件
- 《口头沟通管理沟通》课件
- 《SMART原则培训》课件
- 《注浆技术培训》课件
- 《工业化与城市化》课件
- 黑龙江省哈尔滨市萧红中学2024-2025学年九年级上学期期中考试数学试题
- 【语文课件】愚公移山
- 《业务流程管理介绍》课件
- 《罗马人的法律上》课件
- 中学语文教学法智慧树知到答案2024年山东航空学院
- 22数字化学习与创新教学设计2023-2024学年粤教版(2019)高中信息技术必修1
- 做一颗硬核牛油果让勤励成为青春底色课件高中心理健康教育主题班会
- 糖尿病教育幻灯片
- 小区物业、保安服务投标方案(技术标)
- 生鲜肉购销简单合同
- 2024-年体育赛事承办合同协议书共五则
- 职熵-大学生职业素质与能力提升智慧树知到期末考试答案章节答案2024年中国海洋大学
- 走进生活中的化学智慧树知到期末考试答案章节答案2024年哈尔滨学院
- 走近核科学技术智慧树知到期末考试答案章节答案2024年兰州大学
- DBJ33-T 1009-2023 园林植物种植与养护技术规程
评论
0/150
提交评论