找回密码 注册 QQ登录
开思网工业级高精度在线3D打印服务

iCAx开思网

CAD/CAM/CAE/设计/模具 高清视频【积分说明】如何快速获得积分?快速3D打印 手板模型CNC加工服务在线3D打印服务,上传模型,自动报价
查看: 21706|回复: 30
打印 上一主题 下一主题

关于UG中的KF模块

[复制链接]
跳转到指定楼层
1
发表于 2005-1-17 20:36:11 | 只看该作者 回帖奖励 |正序浏览 |阅读模式

马上注册,结交更多同行朋友,交流,分享,学习。

您需要 登录 才可以下载或查看,没有帐号?注册

x
kf模块中的几何采用可以将几何建模特征采纳到知识模型库里面,并且在模型树中体现出来,可是我却无法对几何采用的模块进行编辑操作,一旦借助到所采用的几何体的操作系统就报错,请问各位,你们也有类似的情况么,怎么解决。
要是没有解决办法,这个几何采用还有什么意义?
谢谢各位了,请指教!
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 赞一下!赞一下!
31
发表于 2005-4-6 04:18:01 | 只看该作者
对话框可以和多层class关联的。比如你有个a1.dlg + a1.dfa, a1里面有个child rule,用了b1 class, 你可以有b1.dlg对话框
  
Dialog Launching
The following describes the behavior when you attach a button on the KF UIStyler dialog to a child rule in Fusion. When the button is pressed it realizes that it is associated to a child rule and goes to look for a .dlg file that matches the class of the child. This allows a KF UIStyler dialog to display additional dialogs for child classes.  
  
If the KF UIStyler interface can find a .dlg file that matches the name of the class of the child rule then it displays the new dialog and allows you to input parameters. Pressing OK or Cancel returns you back to the parent dialog. You can nest down multiple levels and all of the concepts for a KF UIStyler dialog apply to the children.     
  
When you invoke the subdialog it automatically creates a temporary instance of the rules if that has not already occurred. This automatic action is as if there were a refresh callback on the button. This is required for technical reasons because in order to output parameters to KF from the subdialog it has to put a dynamic rule over an existing rule in Fusion. In order for that to work the child needs to exist - so it creates a temporary copy.
  
When you press OK or APPLY in the child dialog it never runs the full UG update. It applies any parameter changes to KF, and either exits the dialog with OK or in the case of Apply it updates the dialog presentation with any changes. Since you are not in the primary parent dialog, doing a full UG update may cause update errors if all parameters are not entered or changed as yet. Therefore, you do not see geometry updates when you hit OK or Apply in the child dialog. That only happens in the main parent.
  
Hitting cancel in the child dialog only exits the dialog.
  
When you get back to the main parent dialog - then OK and Apply causes the full UG update and realizes any child dialog parameter changes.
  
Given this information it is worth looking at how parameter values are passed and updated in the child rule.
  
  DefClass: MainClass ...
  
   (child) aaa: { class, SubClass, parm1, 10};
  
   
  
   DefClass: SubClass ...
  
    (number parameter modifiable) parm1: 0;
  
    (number parameter modifiable) parm2: 0;
  
UI/Styler File MainClass.dlg:
  
    Button named "aaa" to launch the child dialog.
  
   
  
UI/Styler File SubClass.dlg:
  
    Two Number fields named "parm1" and "parm2"
  
When the child dialog displays, the initial value of parm2 is 0.0, and the initial value of parm1 is 10. If the value of parm1 is changed to 99 and you choose OK in the dialog - then a new dynamic rule writes over parm1 to set the value to 99. This dynamic rule overrides the value of 10 that was set by the parent and passed as a parameter to the child. As long as that dynamic rule exists the value remains 99. The only way to get rid of the dynamic rule is to delete it using the VDE, in which case the value goes back to 10.
  
Note the following when creating a child class that updates with a KF UIStyler dialog:
  
The parameters (like Parm1 and Parm2 ) need to have the modifiable attribute - otherwise the dialog cannot overlay the dynamic rule.
  
The parameters cannot be canonical, because you can't put a dynamic rule over a canonical parameter.
  
It is not necessary for the control values to be formal parameters. It can just be a "local variable" in that class as long as it has a modifiable attribute set. Making it a parameter is more consistent, but not required.
  
For example, the following situation would also work as a variation from what was shown above using local variables instead of parameters in the child class:
  
    DefClass: MainClass ...
  
     (child) aaa: { class, SubClass };   # no parameters passed
  
   
  
    DefClass: SubClass ...
  
     (number modifiable) parm1: 0;       # just local attributes
  
     (number modifiable) parm2: 0;
  
This is somewhat different from how you deal with rules and parameters for top level classes and dialogs (at the root level). For top level classes all of the values do need to be parameters for the class, they can be canonical, and they do not have to be modifiable.
30
发表于 2005-4-5 10:18:50 | 只看该作者
继续请教各位高手,KF可以实现对话框的嵌套调用么,还是仍然需要借助C来实现?具体怎么作呢?谢谢!
29
发表于 2005-4-1 06:15:56 | 只看该作者
隐藏以%起头的规则,避免被用户在KF Navigator里改动它们
28
发表于 2005-3-31 16:54:00 | 只看该作者
%好像用于隐藏KF类或属性,以%开头的类和属性将不会在KF导航器中显现。
  
原来已经有那么多高人说过了啊!班门弄斧了啊!
27
发表于 2005-3-1 19:22:24 | 只看该作者
还有一个问题,请问和dfa文件关联起来的dlg对话框可以实现对窗口的零件特征和dfa内部函数的交互活动么?
例如:用一张面切一个实体(实体是由dfa文件生成的),能否通过对话框实现kf的Defun: ug_adoptObject(Any $object)几何采用功能实现对面的选取,然后在kf中用选中面来切实体呢?
先谢谢啦
26
发表于 2005-2-27 14:38:52 | 只看该作者
%只是为了隐藏建模的细节.你可以把%去掉后,再在UG里面运行一下,
比较一下有什么差别,你就很清楚%的作用的.
另外,帮助上面也有说明的.
25
发表于 2005-2-27 09:36:39 | 只看该作者
frecar果然高人也,又学到一点,请受小弟一拜!
24
发表于 2005-2-26 08:47:26 | 只看该作者
%不是必需的.加%只是为了在KF模块隐藏所创建特征的细节.
如果没有都%,那么在KF导航器中你可以看到实例是由line,extrusion,等等
特征所构成.
有%你就看不到这些信息
23
发表于 2005-2-25 10:42:50 | 只看该作者
不麻烦frecar了,谢谢!小弟已经发现出错的地方了,呵呵
您需要登录后才可以回帖 登录 | 注册

本版积分规则

3D打印手板模型快速制作服务,在线报价下单!

QQ 咨询|手机版|联系我们|iCAx开思网  

GMT+8, 2024-12-26 14:26 , Processed in 0.027031 second(s), 11 queries , Gzip On, Redis On.

Powered by Discuz! X3.3

© 2002-2024 www.iCAx.org

快速回复 返回顶部 返回列表