MANox
Mechanical
- Apr 2, 2007
- 121
Hey,
For find solid body in part I use:
and it works fine.
But I have part with Delete Body function.
In Part Navigator Window I have only one body, but Vb sees two bodies, and one of then is no solid and no sheet body.
And can't add fantom body to solidbodies()
I don't know what I must doing for eliminate deleted body.
Maybe somebody can help me.
Best regards
Michał Nowak
NX9 & Tc10
For find solid body in part I use:
Code:
Dim bodies As BodyCollection = workpart.Bodies
Dim solidBodies(0) As NXObject
Dim counter as Integer = 0
if bodies.ToArray.Length > 0 then
For Each thisBody As Body In bodies
If thisBody.IsSheetBody.Equals(False) Then
solidbodies(counter)=(thisBody)
counter += 1
End If
Next
End If
But I have part with Delete Body function.
In Part Navigator Window I have only one body, but Vb sees two bodies, and one of then is no solid and no sheet body.
And can't add fantom body to solidbodies()
I don't know what I must doing for eliminate deleted body.
Maybe somebody can help me.
Best regards
Michał Nowak
NX9 & Tc10