I'm looking for a good example on how to use this command (:IvPartExtrudeFeature). I would like to cut a rectangular hole (opening) on a sheet metal part. I created and adopted both the sheet metal and the opening part. I have a sketch (visible & exported). Sheet metal part is resides in an Assy.
Using ETO 2012 Version 5.1 Build: 322
Never mind, I figure it out (thanks to Andrew )
1) Created a sketch Part (sketch visible and exported).
2) Named the sketch = sketch_Opening
3) Adopted the sketch part.
4) Added these child rules inside the part to cut.
Design FloorLiner : M0122_TestZonesAdoptedComponents FloorLinerAdopt
Child FloorOpeningSketch As :FloorOpeningSketch, Quantity = length(openingSizes)
visible? = False
OpeningX = nth(1, nth(child.index, openingSizes))
OpeningY = nth(2, nth(child.index, openingSizes))
YOffsetFromOrigin = nth(2, nth(child.index, openingLocations)) - tubingWidth - gapAroundFloorLiner
XOffsetFromOrigin = nth(1, nth(child.index, openingLocations)) - tubingWidth - gapAroundFloorLiner
Child LinerOpeningFeature As :IvPartExtrudeFeature, Quantity = length(FloorOpeningSketch)
distance = 10
operation = :Cut
extentDirection = ymmetric
sketchPart = nth(child.index, FloorOpeningSketch)
sketchName = "sketch_Opening"
face = "XY Plane"
origin = "Center Point"
xAxis = "X Axis"
reverseSketchNormal? = False
reverseXdirection? = False
'END OF CODE
If you're working with sheet metal parts, look at IvSMPartPunchFeature instead of ivPartExtrudeFeature. It's simpler to use and is beffer for situations where you have multiple feautres, as you simply supply a list of points and faces. No need for sketches.
There is a sample in the ETO Samples project.
Thanks Chris for the advise!
I had lots of trouble make it work. I found that iLogic rules and IvPartExtrudeFeature don't collaborate very well when mixed together. I logged a case (Case 07545190 - IvPartExtrudeFeature vs iLogic rules). If i remove all iLogic rules from the part then everything works fine! I wonder if IvSMPartPunchFeature has the same behavior?
is it still a problem happening on you? it may happen on me soon.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!
Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.