|
楼主 |
发表于 2016-1-11 08:29
|
显示全部楼层
本帖最后由 f1405602 于 2016-1-11 08:47 编辑
5 L- a$ `4 [. Z+ D. O3 l
$ o6 g4 Y' S2 f, O1 ]vs2010 ug8.0 64bit
8 |) a3 s# K b% P" [我在调试过程中,直接将生成的nxobject定义Features.Text类型,后面通过
- V8 ]! M, T# m0 K$ `( a2 o Dim features1(0) As Features.Feature
0 j4 Y2 X$ j0 c+ _+ Q. c features1(0) = nxobject
# e* {( v K2 EDim curveFeatureRule1 As CurveFeatureRule
+ Z: A; O5 G% y8 J9 C! g# ^ curveFeatureRule1 = wpt.ScRuleFactory.CreateRuleCurveFeature(features1)8 d) Y0 p7 K2 a2 h- s8 R5 C% U
然后给出的提示为“第一个参数无效”,看了一下日志,提示为 Invalid NX signature found,说明
. x4 B* R8 u$ k0 U3 U; f5 Tfeatures1值无效,通过JA,其类型也是 Features.Text8 M: M3 b. E/ K4 A
Dim features1(0) As Features.Feature' S# K {" _# H8 r8 r r" u! U6 r
Dim text1 As Features.Text = CType(workPart.Features.FindObject("TEXT(167)"), Features.Text)8 p4 U+ o' k7 a7 f; Z
features1(0) = text1
7 ?& F% I* T/ D; n$ ADim curveFeatureRule1 As CurveFeatureRule
$ b; x. X; m) S" W; \' kcurveFeatureRule1 = workPart.ScRuleFactory.CreateRuleCurveFeature(features1)
5 x: y& e. s( a数据类型没有问题啊,难道这是因为Textbuilder.commit生成的对象定义有问题???请版主帮忙研究研究?谢谢! l: S. }5 C& G$ `/ S
9 o3 \$ M- w0 o$ Z
|
-
|