how to edit hole object from a model

Valued Contributor
Valued Contributor

 

hi everybody,

i want to access holedata and hole object from model.

The problem is that i get objHoles.Count =1. And with this i can access third hole in hole collection where i actually want to access first hole. 

When i use HoleDataCollection sount =3

Can anyone tell me why this is happening. Am using SE-19

 i used following procedure......

 

 

objHoles As SolidEdgePart.Holes = objDoc.Models.Item(1).Holes

 

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

"& this code to get hole count"

Dim objHDColl As SolidEdgePart.HoleDataCollection

 objHDColl = objDoc.HoleDataCollection  

 

 

Dim holeData(holeCount - 1) As HoleData

For j AsInteger = 1 To holeCount

 

holeData(j - 1) = objHDColl.Item(holeCount)

 Next

MsgBox(objHoles.Count)Dim holeCount AsInteger = objHDColl.Count 

 

"i used this code to get hole object"

Dim

 

Posted by: makarand kulkarni
Post date: 9/21/2009 7:15:54 PM