【NX二次开发】Block UI对话框-代码生成部分

常规:

   语言:生成的代码语言

   生成附注:是否生成注释代码

   生成特定与块的代码:

输入点:

   回调:对话框通过回调函数调用,例如通过另一个对话框的按钮调用本对话框

   菜单:对话框通过菜单调用

   用户出口:对话框通过用户出口调用

对话框回调:

   过滤:选择对象时调用,只用于具有选择功能的块

   更新:块更新时调用,例如在文本框中输入数据时调用

   确定:单击确定时调用

   应用:单击应用时调用

   取消:单击取消时调用

   初始化:初始化对话框时调用

   显示的对话框:对话框显示前调用,更改会话框内容写在这里

   焦点通知:当控件获得焦点时调用,只用于不需要键盘输入的块,例如“选择对象”

   键盘焦点通知:当控件获得焦点时调用,只用于需要键盘输入的块,例如“整型”

   启用“确定”/“应用”按钮:

 

界面如下图所示:

 

 

//==============================================================================
//  WARNING!!  This file is overwritten by the Block UI Styler while generating
//  the automation code. Any modifications to this file will be lost after
//  generating the code again.
//  警告! !在生成自动化代码时,Block UI Styler会覆盖该文件。
//  再次生成代码后,对该文件的任何修改都将丢失。
//==============================================================================

//==============================================================================
//  Purpose:  This TEMPLATE file contains C++ source to guide you in the
//  construction of your Block application dialog. The generation of your
//  dialog file (.dlx extension) is the first step towards dialog construction
//  within NX.  You must now create a NX Open application that
//  utilizes this file (.dlx).
//  目的:这个模板文件包含了c++源代码来指导你构建你的Block应用程序对话框。
//  生成你的对话框文件(.dlx扩展)是在NX中构建对话框的第一步。
//  现在必须创建一个利用该文件(.dlx)的NX Open应用程序。

//  The information in this file provides you with the following:
//  1.  Help on how to load and display your Block UI Styler dialog in NX
//      using APIs provided in NXOpen.BlockStyler namespace
//  2.  The empty callback methods (stubs) associated with your dialog items
//      have also been placed in this file. These empty methods have been
//      created simply to start you along with your coding requirements.
//      The method name, argument list and possible return values have already
//      been provided for you.
//  该文件提供的信息如下:
//  1.  关于如何使用NXOpen提供的api在NX中加载和显示Block UI Styler对话框的帮助。BlockStyler名称空间
//  2.  与对话框项相关联的空回调方法(存根)也被放置在此文件中。
//  创建这些空方法只是为了满足您的编码需求。
//  已经为您提供了方法名、参数列表和可能的返回值。
//==============================================================================

 

posted @ 2019-11-30 15:32  王牌飞行员_里海  阅读(931)  评论(0编辑  收藏  举报