|
//从Block UI(截面构建器)获取曲线,赋值给vector <NXOpen::TaggedObject *>类型变量tagObjArray8 F% g/ w: @5 k
! l% E6 ]7 e5 S' q# a6 fNXOpen::BlockStyler:ropertyList* SectionToTubeproplist = SectionToTube->GetProperties();" ~* F- U' f! v0 N; I
std::vector<NXOpen::TaggedObject *>tagObjArray = SectionToTubeproplist->GetTaggedObjectVector("SelectedObjects");7 k: @/ E* @1 Q j
" S9 O$ d$ d4 j" `$ C% m( b$ [* a' B. O0 z# u: [$ O/ @
NXOpen::Features::Feature* nullFeatures_Feature = NULL;0 I) T5 W: i- u! A7 A
NXOpen::Features::TubeBuilder* tubeBuilder1 = workPart->Features()->CreateTubeBuilder(nullFeatures_Feature);+ K# o( p5 i9 V! L3 | W( {
! b' |, M0 W' ]- T/ C
. X' \! M4 U: U" U# H4 E
//定义管道路径
/ ^# v' X9 S& v. _
! K: F3 g5 f. X, utubeBuilder1->athSection()->AddToSection();, T0 {7 t; p. o1 h$ w7 ^
' G% {- c2 p3 w+ t2 J$ J
- ]4 C* }$ P Y4 h% D: [6 {
到这一步需要如何把tagObjArray对应的曲线转成管道路径?
5 Y7 \. }0 j# x* r0 W1 k6 U! k( u
) k3 m& _/ M o9 h$ S8 l
0 G6 M# n+ x9 s& H" ^4 O1 g9 g求大神指导!
8 ^* M7 E$ [5 z; @2 g5 W. q/ a/ x9 f6 \% {' S7 z
谢谢。
5 v) y) L* F. I- I& N' k |
|