PLM之家PLMHome-工业软件践行者

[原创] NX 2007系列二次开发增加了新测量方法获取尺寸的API

[复制链接]

2022-6-13 00:05:27 1427 0

2470

主题

1275

回帖

8万

积分

管理员

PLM之家站长

积分
82162
QQ
发表于 2022-6-13 00:05:27 | 显示全部楼层 |阅读模式

请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!

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

x
Methods to query measure results4 ~. n) M7 t! Y5 ^' C& V
NX新的测量功能引入,但是在进行JA录制发现无法获取测量的结果,这个显然是官方还没有来得及进行更新API发布。在最小的2007版本系类中增加了相关获取结果的API。, m, P0 R0 r; K6 c+ A+ d
现在很容的获取相关对象和结果。
  • getMeasureElement
    The method is for MeasureMaster and it returns MeasureElement for a master measure feature.
  • getMeasureElementExpressions
    The method is for MeasureElement and it returns an array of expression objects for a measure element of a measure feature.
  • getMeasureElementExpressionsType
    The method is for MeasureElement and it returns an array of strings that corresponds to the expression types for a measure element of a measure feature. You should generally use this method in conjunction with getMeasureElementExpressions() to pass along the same index value to find the expression and expression type associated with a MeasureElement.
    3 b  z/ L0 ^: u8 w0 ^8 ~1 N# {4 N
直接通过录制JA就可以获取相关属性。
  • getProjectedDistanceProperties
  • getFaceProperties
  • getBodyProperties
  • getDistance
  • getAngle
  • getArcAndCurveProperties
  • getPolarAreaProperties
  • getPolarRadiusProperties
  • getPolarAngleProperties
  • geTCenterlineProperties
  • getBoundingBoxProperties
  • getExtremePointProperties
  • getEulerAnglesProperties
  • getPointProperties

    5 ~; b% N. i" `- M% Y+ O. v

1 f/ K: d; `. U0 }. T3 r& S/ C& t' A
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 doTeam.tech
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 注册

返回列表 本版积分规则

  • 发布新帖

  • 在线客服

  • 微信

  • 客户端

  • 返回顶部

  • x
    温馨提示

    本网站(plmhome.com)为PLM之家工业软件学习官网站

    展示的视频材料全部免费,需要高清和特殊技术支持请联系 QQ: 939801026

    PLM之家NX CAM二次开发专题模块培训报名开始啦

    我知道了