|
楼主 |
发表于 2016-1-11 08:29
|
显示全部楼层
本帖最后由 f1405602 于 2016-1-11 08:47 编辑
( |0 G! v0 k' n( \7 x! D1 d
; n/ w$ G3 k' P. x! z8 v. @vs2010 ug8.0 64bit
- K; V* t9 K; S我在调试过程中,直接将生成的nxobject定义Features.Text类型,后面通过 : p; w3 I8 i" |6 J; _6 |+ w& B
Dim features1(0) As Features.Feature
, G- ]$ |% T( C8 C0 z- c) j) j- ^ features1(0) = nxobject& H, c* k) t; X6 s/ m3 T+ a; w
Dim curveFeatureRule1 As CurveFeatureRule5 u8 j. j: B! X- O4 g( a
curveFeatureRule1 = wpt.ScRuleFactory.CreateRuleCurveFeature(features1)/ L6 d. ?; c9 C( |& m6 ^
然后给出的提示为“第一个参数无效”,看了一下日志,提示为 Invalid NX signature found,说明
/ B& q3 k" H5 W$ |7 lfeatures1值无效,通过JA,其类型也是 Features.Text* w5 e6 w4 T U6 n3 j
Dim features1(0) As Features.Feature
" V! _% R$ q, oDim text1 As Features.Text = CType(workPart.Features.FindObject("TEXT(167)"), Features.Text)& K: U3 c$ l/ O. g$ }
features1(0) = text1
# F8 X5 O8 g# b4 O$ KDim curveFeatureRule1 As CurveFeatureRule9 \2 f6 G5 I2 o ?0 W9 o" j3 F1 `
curveFeatureRule1 = workPart.ScRuleFactory.CreateRuleCurveFeature(features1)
6 R' ?; J$ N- E$ S# F) B数据类型没有问题啊,难道这是因为Textbuilder.commit生成的对象定义有问题???请版主帮忙研究研究?谢谢!
7 A |. U k8 K$ @$ j$ f3 ]1 c$ j. w5 u
|
-
|