|
楼主 |
发表于 2016-1-11 08:29
|
显示全部楼层
本帖最后由 f1405602 于 2016-1-11 08:47 编辑 9 S, ] V- M" i
0 o% z, ^* j8 w( a ?3 {8 m
vs2010 ug8.0 64bit% W. R, s' ^1 S5 T- X2 q9 s
我在调试过程中,直接将生成的nxobject定义Features.Text类型,后面通过 ; _, h7 Y. \1 o& e! e
Dim features1(0) As Features.Feature2 T8 r) c9 w' \" p& s* U
features1(0) = nxobject' J+ D& D+ h( ^3 i; V
Dim curveFeatureRule1 As CurveFeatureRule
8 m6 {' q7 ^* H curveFeatureRule1 = wpt.ScRuleFactory.CreateRuleCurveFeature(features1)3 t+ P/ L% K' R5 L5 e4 E5 E
然后给出的提示为“第一个参数无效”,看了一下日志,提示为 Invalid NX signature found,说明4 \1 S7 B) u+ s m: x% t. R8 H! M/ K
features1值无效,通过JA,其类型也是 Features.Text* y0 i7 U8 m# f3 V9 ^: h4 c
Dim features1(0) As Features.Feature
+ r% Q" r$ C1 t0 qDim text1 As Features.Text = CType(workPart.Features.FindObject("TEXT(167)"), Features.Text)/ l2 }% |; w8 r r: [
features1(0) = text1
3 T8 u; V8 H" p: L8 L4 pDim curveFeatureRule1 As CurveFeatureRule. a& N% V/ l+ X" t5 Y. P9 ]
curveFeatureRule1 = workPart.ScRuleFactory.CreateRuleCurveFeature(features1) F+ x+ B2 x6 H6 d$ t
数据类型没有问题啊,难道这是因为Textbuilder.commit生成的对象定义有问题???请版主帮忙研究研究?谢谢!
! _: E* w0 Y" X' e( @# X3 h
0 H, U% l1 m+ G0 a" ~1 \$ Q' Y |
-
|