|
楼主 |
发表于 2016-1-11 08:29
|
显示全部楼层
本帖最后由 f1405602 于 2016-1-11 08:47 编辑
2 w Z `* p) u, ]6 X7 g6 H, `% H+ a6 d; S, l
vs2010 ug8.0 64bit' s% U$ y" h9 I" e3 \
我在调试过程中,直接将生成的nxobject定义Features.Text类型,后面通过 6 k0 h- P) w5 s) c6 g
Dim features1(0) As Features.Feature3 I$ i. R( h) _& L4 ^2 R
features1(0) = nxobject
6 W7 ~, Y: |1 L% o3 t/ u) U' K* pDim curveFeatureRule1 As CurveFeatureRule4 y" X+ U7 e: g
curveFeatureRule1 = wpt.ScRuleFactory.CreateRuleCurveFeature(features1)+ g) ~: R6 A( b' V
然后给出的提示为“第一个参数无效”,看了一下日志,提示为 Invalid NX signature found,说明
2 m3 J) x7 Q% L* Ffeatures1值无效,通过JA,其类型也是 Features.Text
8 l, O: g: A, R6 ^/ @Dim features1(0) As Features.Feature
) d! L3 b" k$ J8 _) C% E! UDim text1 As Features.Text = CType(workPart.Features.FindObject("TEXT(167)"), Features.Text)8 k& o! W* @" x0 r. P# k
features1(0) = text18 }2 t* o$ R: h& Q
Dim curveFeatureRule1 As CurveFeatureRule& b: _0 q& P9 A3 I" Q# i$ S7 c
curveFeatureRule1 = workPart.ScRuleFactory.CreateRuleCurveFeature(features1)
( _/ [ Y X$ Y1 B6 P5 {数据类型没有问题啊,难道这是因为Textbuilder.commit生成的对象定义有问题???请版主帮忙研究研究?谢谢!
5 I1 W/ @" F( h7 W% F& @7 M @! [4 E, }5 E# _% V* L: M
|
-
|