




已阅读5页,还剩13页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Lecture8Customizing:Toolbar,p3printers.def,Keymapping,CreatinganAnalysisPreference,Display-Toolbar,TheToolbarprovidesquickaccesstofrequentlyusedfunctionsAdditionalfunctionsmaybeaddedtothetoolbar32ToolbarfunctionsaresuppliedwithMSC.PatranThedefaultUNIXtoolbarcontains30iconsThedefaultNTtoolbarscontain32icons,PATRANDefaultToolbarIcons,PATRANDefaultToolbarIcons(cont.),PATRANToolbarControlFile,TheToolbaronthemainformisconfiguredbythep3toolbar.deffile.p3toolbar.defislocatedintheMSC.Patraninstallationdirectory.Thefileisreadinsequentialorderwhenthep3toolbarisdisplayed.i.e.,toptobottominthefilereferstotheiconslefttorightonthetoolbarp3toolbar.deffileexample:StartToolbar=Transform*ICON=tbrotatexy.bmp*CLASS=uil_toolbar*FUNCTION=rotate_xy*HELP=MouseRotateXY*LOADITEMEndToolbar,PATRANToolbarControlFile(cont.),TheiconscanbefoundinPatran_install_dir/iconsdirectory.*CLASSindicateswheretofindthefunctionfortheicon.*FUNCTIONindicateswhichfunctionwillbeexecutedwhentheiconisselected.*HELPindicatesthehelpbubblethatwillbedisplayedwhenthemousemovesovertheicon.ThereisalsoanoptionforwhetherornottoloadtheiconintothetoolbarwhenPATRANisexecuted.InorderfortheicontoloadintoMSC.Patran,*LOADITEMmustbeaddedafterthe*HELPcall.TheStart/EndToolbarLines(NTonly)definetheboundariesofthedockabletoolbars,PATRANToolbarIcons,*ICONspecifiestheiconthatistobeusedintheToolbarform.Theiconsarerestrictedtoa40 x40bitmapformat(typically28x28forUNIXor16x16forNT).IconscanbecreatedusingvariousUNIXbitmaputilitiesorPaintforNT.Atoolbaricontemplate(UNIX)issuppliedwithMSC.Patranandcanbeusedtocreateuser-definedicons.tbblank.28.iconTheuserdefinediconsmustbereferencedinthep3toolbar.deffileandmustbeinMSC.Patranspathp3toolbar.defmustbeineitherthePatran_install_dirortheusershomedirectory,PATRANToolbarFunctions,*CLASSand*FUNCTIONspecifythefunctionthatistobeusedbytheIconintheToolbar.CLASSandFUNCTIONdefinitionscanbespecifiedbycreatingrelativelysimplePCLfunctions.PCLfunctionsthatresidewithinauserdefinedclassaremadeavailablebyreferencingthelibraryintheusersp3epilog.pclfile.!PATHUNIX_path_to_libraryorsys_path(“ADD”,.)!LIBRARYclass.plborsys_path(“ADD”,.),p3printers.def(UNIXonly),Thep3printers.deffileislocatedinthePatran_install_dir.Thefileallowsyoutoconfiguretheprintersthatwillappearinthe“AvailablePrinters”listboxonthePrintform.TheprintersavailableonNTneedtobesetupthroughstarndardWindowsconfiguration.Anexampleoftheformatisshownbelow:$ThisistheDefaultPostscriptPrinterPrinter=PostscriptDefaultDevice=UnknownDriver=PostscriptDestination=UnknownPaperSize=Letter,Custom$SeethedocumentationforadditionalsizesWidth=0.0$DefaultwidthforCustompapersizeHeight=0.0$DefaultheightforCustompapersizeLeftMargin=0.5inRightMargin=0.5inTopMargin=0.5inBottomMargin=0.5inDefaultUnits=Inches,Points,cm$OtherunitsarePicasandmmPrintOrientation=Portrait,Landscape;Landscape$NoteuseofdefaultNumberofCopies=1,p3printers.def(cont.),Thedriverisalsodisplayedinthep3printers.deffileAnexampleisshownbelow:$.DriverSpecificOptions.Format=BlacktoWhite,WhitetoBlack,Color$anotheroptionis“Grayscale”Background=White,Black,ActualLines75%,Keymapping(UNIXonly),HotKeysTouchakeytoexecuteanoption,suchas:rotate,zoom,labelson/offFunctionsonthequickpick/toolbarcanbeexecutedfromthekeyboardProvidedbyX-lib(UNIXonly)Definedinafilecalled.Patran.EventMapsDefaultisinPatran_install_dir,andissearchedforthroughthePCLPathMostrecentkeymaphaspriorityIfthekeyisdefinedtwicethelastdefinitiontakesprecedence.,Keymapping(cont.),KeymappingSyntax,Modifier:FunctionModifiers:NoneMetaShiftCtrlAltLockEvent:Btn3DownBtn2DownBtn1DownBtn3UpBtn2UpBtn1UpKeyIfyouwanttospecifyacertainkeyKeynameKeyname=a,F1,KP_1Note:None:do_this(),makesanykeyyouhitexecutedo_this(),KeymappingExample:,Forexample,youmayhavethefollowingmappings:None1:LabelsOn()Shift1:LabelsOff()Alt:LabelsOn()Alt:LabelsOff()CtrlAlt:ZoomOut()CtrlAlt:ZoomIn()Ctrls:SpectrumOnOff()osfUp:PanUp()osfDown:PanDown()NoneKP_1:RearView()NoneKP_2:BottomView()Ctrl:PopupGMenu(*selectMenu)Ctrl:PopupGMenu(*appsPopMenu)Nonec:CallPCL(test_event)Wheretest_eventis:Functiontest_event()ui_exec_function(“my_class”,”display”)EndFunction/*test_event*/,StepstoIncorporateyourownpreferenceintoMSC.Patran,Loadthetemplatedatabasewithappl
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 潍坊滨海疫情管理办法
- 网络药物安全管理办法
- 网络信息生态管理办法
- 环保咨询提成管理办法
- 出行安全培训演讲课件
- 2025年中医学的试题及答案
- 2025年发展对象培训班题库(附含答案)
- 出租屋培训课件
- 山西省太原市2024-2025学年八年级下学期期末历史试题(含答案)
- 2025年关于二手房屋买卖合同范本
- 中国园林史全
- 社会调查研究方法-课件
- 雕塑基础教学课件
- 沥青混合料低温弯曲试验2002363
- 《普通逻辑》全册课后练习题参考答案(含原题)
- 新版(七步法案例)PFMEA
- 01血涂片、红细胞形态PPT课件
- 高二年级开学学生大会年级主任的讲话[001]
- 校企合作讲座精品PPT课件
- 煤矿电缆与电缆敷设标准
- 以内加减法口算100题可直接打印
评论
0/150
提交评论