|
楼主 |
发表于 2016-1-11 08:29
|
显示全部楼层
本帖最后由 f1405602 于 2016-1-11 08:47 编辑
0 W0 r* G+ _, o/ ~4 w$ Y
3 v, u5 j# Y- l B: Jvs2010 ug8.0 64bit
! }( I' O$ U% ^$ C2 y我在调试过程中,直接将生成的nxobject定义Features.Text类型,后面通过 % o& ~& E7 W& o. w
Dim features1(0) As Features.Feature* Y4 L1 k& [2 x8 t
features1(0) = nxobject1 F' b% V. \( \& `2 J) ]0 x
Dim curveFeatureRule1 As CurveFeatureRule
( O3 D1 I# C/ V& F+ _ curveFeatureRule1 = wpt.ScRuleFactory.CreateRuleCurveFeature(features1)
/ n: t( L9 w q [+ `8 B然后给出的提示为“第一个参数无效”,看了一下日志,提示为 Invalid NX signature found,说明
8 w: g& f: ?/ J' M; h0 F" E8 Bfeatures1值无效,通过JA,其类型也是 Features.Text m0 [- r# g$ F! S9 e' n
Dim features1(0) As Features.Feature
& X8 b3 m9 _7 a2 E! Y' EDim text1 As Features.Text = CType(workPart.Features.FindObject("TEXT(167)"), Features.Text)
6 i1 y7 H" S& b! wfeatures1(0) = text1 n4 w7 M* I. n7 T; A7 y
Dim curveFeatureRule1 As CurveFeatureRule
) q& E$ z$ _/ N8 k' C ^5 w8 G/ Q& \% WcurveFeatureRule1 = workPart.ScRuleFactory.CreateRuleCurveFeature(features1)
; L9 b+ d9 n' j2 {6 g数据类型没有问题啊,难道这是因为Textbuilder.commit生成的对象定义有问题???请版主帮忙研究研究?谢谢!* p; e/ a5 R1 N/ }3 v- f' D
$ Q" ^8 _% g8 T$ D1 b6 u |
-
|