Inventor Engineer-to-Order

Reply
Distinguished Contributor
ludesroc
Posts: 172
Registered: ‎05-03-2005
Message 1 of 5 (268 Views)

IvPartExtrudeFeature

268 Views, 4 Replies
08-14-2012 06:02 AM

Hi, 

 

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

 

Regards,

Luc

Ludesroc
Distinguished Contributor
ludesroc
Posts: 172
Registered: ‎05-03-2005
Message 2 of 5 (241 Views)

Re: IvPartExtrudeFeature

08-15-2012 11:51 AM in reply to: ludesroc

Never mind, I figure it out (thanks to Andrew :smileywink:)

 

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.

 

'CODE

Design FloorLiner : M0122_TestZonesAdoptedComponents FloorLinerAdopt

 

'Sketch Part
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
End Child

 

'Extrude Feature

Child LinerOpeningFeature As :IvPartExtrudeFeature, Quantity = length(FloorOpeningSketch)
distance = 10
operation = :Cut
extentDirection = :smileyfrustrated:ymmetric
sketchPart = nth(child.index, FloorOpeningSketch)
sketchName = "sketch_Opening"
face = "XY Plane"
origin = "Center Point"
xAxis = "X Axis"
reverseSketchNormal? = False
reverseXdirection? = False
End Child

End Design

'END OF CODE

 

Luc

Ludesroc
Employee
Chris.Palmatier
Posts: 177
Registered: ‎05-27-2010
Message 3 of 5 (226 Views)

Re: IvPartExtrudeFeature

08-16-2012 01:24 PM in reply to: ludesroc

Hi Luc,

 

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. 



Chris Palmatier
Customer Success Engineer
Inventor Engineer-to-Order

Distinguished Contributor
ludesroc
Posts: 172
Registered: ‎05-03-2005
Message 4 of 5 (214 Views)

Re: IvPartExtrudeFeature

08-17-2012 05:46 AM in reply to: ludesroc

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?

 

Regards,

Luc

Ludesroc
Valued Mentor
jcneal
Posts: 339
Registered: ‎04-10-2010
Message 5 of 5 (105 Views)

Re: IvPartExtrudeFeature

11-08-2013 12:32 PM in reply to: ludesroc

hi,

 

is it still a problem happening on you? it may happen on me soon.

 

thanks

Autodesk Inventor Professional 2014
Autodesk Product Design Suite Standard 2014
Microsoft Office 2007 & 2013
Windows 7 64bit
Synergis Adept 2014
Visual Studio Express 2010
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.

Announcements
Manufacturing Community
The Manufacturing Community provides additional access to tips, tutorials, blogs and networking with peers.