I am trying to add an unknown number of holes at random locations up and down a pipe. Because of the geometry of the pipe, I cannot simply use the Part Hole Feature. I'm trying to use the Part Extrude Feature and I'm lost as to how it actually works.
In the assembly design I have
Child pipe_1 as :pipe
End Child
In the pipe design I have:
Child Hole As :IvPartExtrudeFeature
distance = 2
operation = :cut
extentDirection = :Positive
sketchPart = pipe_1
sketchName = "Sketch7"
face = "XY Plane"
origin = "Center Point"
xAxis = "X Axis"
End Child
In the Sketch7 I have a circle drawn in space without any reference lines crossing through the circle.
I'm getting the error "No such rule 'pipe_1' (parameter) "
I'm not sure what I'm doing wrong.
Is there a better way to add the holes to my pipe?
Andrew
CAD Drafter
Solved! Go to Solution.
Solved by alundr. Go to Solution.
OK. sketchPart cannot reference the part I am trying to cut a hole in. Therefore, I needed to create an .ipt file with a sketch of the profile that I wanted to cut out. my code now looks like this :
Child HoleSketch As :HoleSketch
visible? = False
End Child
Child Hole As :IvPartExtrudeFeature
distance = 10
operation = :Cut
extentDirection = :positive
sketchPart = HoleSketch_1
sketchName = "Sketch1"
face = "XY Plane"
origin = "Center Point"
xAxis = "Y Axis"
End Child
good luck
- Andrew -