- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
User Defined Features 创建用户自定义特征 Tools/ User Defined Feature/ Insert, Insert/ Form Feature /User Defined, 创建用户自定义特征 The process of creating a UDF is quite simple: Open or create the part file that contains the features you want to include in the UDF. Use the UDF wizard to: Define where you want the UDF to be stored (which library you want it to be in). Enter the file and UDF names and capture the image that will identify it. Select the features you want to have in the UDF. Select the expressions you want the user to be able to change when the UDF is used. Enter any desired values or ranges for the selected expressions. Select any additional desired references. Review the choices made. Definition Creating a User Defined Feature Creating a User Defined Feature Creating a User Defined Feature 文件形式 The UDF part file (*.prt) was saved into your default directory. (If you are unsure of your default directory, check with your system administrator.) The UDF part file name is what you entered for the Part Name when you defined the UDF, followed by .prt. You can open this part file in Unigraphics NX and edit the feature parameters. The image file was also saved in your default directory. The image file (*.cgm) records the graphic image that you captured. This also used the Part Name, followed by .cgm. A library_dir.txt file was created in your default directory. This records the file names the system needs for the UDF 建立自己的UDF库 备份$UGII_BASE_DIR/ugii 文件夹下的dbc_udf_ascii.def和udf_database.txt文件。 创建一新文件夹用以存放UG生成的UDF文件,如:在D盘下建立一个MyUDF文件夹,则此文件夹路径为:D:\MyUDF。 用文本编辑器打开dbc_udf_ascii.def文件,查找字符串“Library Hierarchy”,此行以下为UDF库类定义代码。 拷贝/粘贴一段类定义部分,例如: CLASS Fittings{TYPE FittingsQUERY [DB(udf_lib_name)] = [Fittings]FILE $UGII_UDF_LIBRARY_DIRDIALOG udf_nameRSET udf_file_name} 建立自己的UDF库 用新的类定义名称替换“Fittings”,用新的库文件路径替换环境变量。例如:用“MyUDF”作为新的类名,MyUDF文件夹所在路径作为新的库文件路径,如下所示: CLASS MyUDF{TYPE MyUDFQUERY [DB(udf_lib_name)] = [MyUDF]FILE D:\\MyUDFDIALOG udf_nam
您可能关注的文档
最近下载
- 血清酶变化的生理病理机制.ppt VIP
- 2025年秋季新教材部编版小学道德与法治三年级上册全册道法核心素养教案(教学设计)含教学反思.docx VIP
- 《智能机械与机器人》课件——3室内喷涂机器人施工工艺.pptx VIP
- 公司出门条模板.doc VIP
- 最新五年级(上册)《生活生命与安全》(全册)教案.docx
- 科学开学第一课.ppt VIP
- 《智能机械与机器人》课件——地面抹平机器人.pptx VIP
- (统编版2025新教材)道德与法治三年级上册开学第一课.pptx
- 1.2《我们都是社会的一员》【课件】2025-2026学年度统编版道德与法治八年级上册.pptx VIP
- 《智能机械与机器人》课件——地面整平机器人.pptx VIP
文档评论(0)