联系我们 | 站点地图
 
华软科技
 
客户服务
您现在的位置是:UGS技巧及解答(二)
 
UGS技巧及解答(一)
UGS技巧及解答(二)
UGS技巧及解答(三)
服务热线
联系我们

UGS技术技巧二

1.如何将装配模型中的配对关系屏蔽掉?

装配模型中的配对关系非常有用,但是有的时候也会产生负面的影响,比如说在assembly sequence 中,配对关系将阻止我们对装配进行拆装设计。那么如何处理这个矛盾呢:

比如在下面的模型中:如果你需要一个没有配对关系的模型,你可以: 在ANT 树中选择装配模型 assembly-MB3-Arrangements-Edit

在arrangements 对话框里面:

创建一个新的arrangement,命名为:without_mate_condition
在 properties 对话框种选择 “ignore all mating constraints”.

这样就可以通过切换arrangement 的方式来控制配对关系是否被屏蔽掉了

Note: 没有配对关系的模型将和原来模型之间保持相关

3.怎样从Teamcenter NXMI 中输出item 的属性到一个pkg文件中去?

是否能够和怎样写出item 的属性表到pkg 文件中,这样就可以输出到TDM 中去呢?

解决方法:

  1. 在Tceng 中输出所有的属性对应表。使用下面的命令:
    export_attr_mappings.exe -file=c:\temp\ideas_mapping.txt -u=infodba -p=infodba -g=dba
  2. 当输出到这个tmp 的目录中去的时候, 编辑这个文件然后加入几个对应的属性:
  3. 比如在这里的情况就有一个表格名字叫做 "TDMAttributesForm", 有自己的参考 类。 这个类叫做"TDMAttributes", 而且有下面这些变量:
    Project
    Library
    PartNumber
    PartName
    Revision
    State
    VersionDescription
    Creator
    CreateDateTime
    Modifier
    ModifyDateTime
    ChangeHistory
    这些表格是我和在产生ItemRevision 的时候同时产生的相关的属性表。
    这个表格是这样定义的:
    { Dataset type="IdeasPart"
    I-DEAS Version Description :
    ItemRevision.GRM(IMAN_specification,TDMAttributesForm).VersionDescription
    /master=both
    I-DEAS State : ItemRevision.GRM(IMAN_specification,TDMAttributesForm).State
    /master=both
    I-DEAS Revision :
    ItemRevision.GRM(IMAN_specification,TDMAttributesForm).Revision /master=both
    I-DEAS Project :
    ItemRevision.GRM(IMAN_specification,TDMAttributesForm).Project /master=both
    I-DEAS Part Number :
    ItemRevision.GRM(IMAN_specification,TDMAttributesForm).PartNumber /master=both
    I-DEAS Part Name :
    ItemRevision.GRM(IMAN_specification,TDMAttributesForm).PartName /master=both
    "I-DEAS Modify Date / Time" :
    ItemRevision.GRM(IMAN_specification,TDMAttributesForm).ModifyDateTime /master=both
    I-DEAS Modifier :
    ItemRevision.GRM(IMAN_specification,TDMAttributesForm).Modifier /master=both
    I-DEAS Library :
    ItemRevision.GRM(IMAN_specification,TDMAttributesForm).Library /master=both
    I-DEAS Creator :
    ItemRevision.GRM(IMAN_specification,TDMAttributesForm).Creator /master=both
    "I-DEAS Create Date / Time" :
    ItemRevision.GRM(IMAN_specification,TDMAttributesForm).CreateDateTime
    /master=both
    I-DEAS Change History :
    ItemRevision.GRM(IMAN_specification,TDMAttributesForm).ChangeHistory
    /master=both
    }
  4. 当这个mapping 已经做好以后,就可以使用下面的命令导入:
    import_attr_mappings.exe -file=c:\temp\ideas_mapping.txt -u=infodba -p=infodba -g=dba
    这样我就能够在我的pkg 文件中看到下面的信息了:
    version = {
    project = "project_change"
    library = "LIb_change"
    item_passport = "1ad7146e-20c9-11db-8ebe-000cf1c904bb"
    version_passport = "1ad7146a-20c9-11db-8ebe-000cf1c904bb"
    type = "LIB PART"
    intent = "reference"
    version_number = 1
    filename = "attr_part_0057.prt"
    name = "name_change"
    part_number = "attr_part"
    revision = "revision_change"
    description = %{
    version_disc_chnage
    %}
    created = {
    login = "creat_change"
    on = "fsf"
    }
    last_modified = {
    login = "mod_change"
    on = "date"
    }
    change_history = %{
    history
    %}
    state = "state_change"
关于华软 | 联系我们 | 招贤纳士 | 友情链接 | 网站地图 | 版权声明
Copyright(2007) 版权所有 华软科技有限公司 浙ICP备05029030号