admin 发表于 2022-6-13 00:05:28

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

Methods to query measure results
NX新的测量功能引入,但是在进行JA录制发现无法获取测量的结果,这个显然是官方还没有来得及进行更新API发布。在最小的2007版本系类中增加了相关获取结果的API。
现在很容的获取相关对象和结果。
[*]getMeasureElementThe method is for MeasureMaster and it returns MeasureElement for a master measure feature.
[*]getMeasureElementExpressionsThe method is for MeasureElement and it returns an array of expression objects for a measure element of a measure feature.
[*]getMeasureElementExpressionsTypeThe 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.
直接通过录制JA就可以获取相关属性。
[*]getProjectedDistanceProperties
[*]getFaceProperties
[*]getBodyProperties
[*]getDistance
[*]getAngle
[*]getArcAndCurveProperties
[*]getPolarAreaProperties
[*]getPolarRadiusProperties
[*]getPolarAngleProperties
[*]getCenterlineProperties
[*]getBoundingBoxProperties
[*]getExtremePointProperties
[*]getEulerAnglesProperties
[*]getPointProperties


页: [1]
查看完整版本: NX 2007系列二次开发增加了新测量方法获取尺寸的API