欢迎来到天天文库
浏览记录
ID:44083997
大小:156.28 KB
页数:17页
时间:2019-10-18
《直齿花键C语言程序源代码》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、需要使用UGUISTYLER建立对话框和建立一个花键模板零件下面分别是主要程序代码WARNING!!ThisfileisoverwrittenbytheUlStylereachtimetheStylerfileissaved・Filename:spline_dialog_template.cThisfilewasgeneratedbytheNXUserInterfaceStylerCreatedby:HaoVersion:NX4Date:06-04-11Time:22:26ThistemplatefileisoverwritteneachtimetheUlStylerdial
2、ogissaved・Anymodificationstothisfilewillbelost.Purpose:ThisTEMPLATEfilecontainsCsourceandstaticstructurestoguideyouintheconstructionofyourNXOpenapplicationdialog・Thegenerationofyourdialogfile(.digextension)isthefirststeptowardsdialogconstructionwithinUnigraphics.YoumustnowcreateaUGOpenappli
3、cationthatutilizesthisfile(.dig).Theinformationinthisfileprovidesyouwiththefollowing:1•Helpontheuseofthefunctions,UF_MB_add_styler_actionsandUF_STYLER_create_dialoginyourNXOpenapplication.ThesefunctionswillloadanddisplayyourUlStylerdialoginUnigraphics.Anexampleofthefunction,UF_MB_add_styler
4、_actionstoassociateyourdialogtothemenubarisshownbelow(SearchonExample1).AnexampleofainvokingadialogfromacallbackutilizingUF_STYLER_create_dialogisalsoshownbelow(SearchforExample2).AnexampleofauserexitutilizingUF_STYLER_create_dialogisalsoshownbelow(SearchforExample3).2.Thecallbackstructure:
5、---CHANGE_cbs---ThisstructureisVERYimportantifyouhavecallbacksassociatedwithyourdialog.Itcorrelatesthedialogitemsinyourdialogwiththecallbackfunctionsyoumustsupply.YoushouldnotmodifythisstructuresinceitMUSTmatchuptotheinformationstoredinyourdialogfile(.dig).Anyattempttodosowillcauseanerrorwh
6、ileconstructingyourdialog.Ifyouwishtomodifytheassociationofyourcallbackstoyourdialog,pleasereloadyourdialogfile(.dig)intotheUlStylerandregenerateyourfiles.Youdonotneedtobeconcernedaboutthisstructure,simplypassitasanargumenttothefunction,UF_STYLER_create_dialogalongwithyourdialogfile(.dig).E
7、xample1displaystheactualcallyoumaymakeforthisparticulardialog.3.Theemptycallbackfunctions(stubs)associatedwithyourdialogitemshavealsobeenplacedinthisfile.Theseemptyfunctionshavebeencreatedsimplytostartyoualongwithyourcodingrequirements・Thefunctionname,ar
此文档下载收益归作者所有