iLogic - Check flat pattern shapes

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Need to finish up my Sheet Metal Processing code to check the shape of the flat pattern, and have been stuck for a while now. soooo help?
NOTE: some of this is very specific for our workplace so please don't ask why.. to populate and sort our Shop's Cut Lists, we add custom properties that denotes whether the sheet metal needs to be formed/bent or not (Y or N) & a S or P for "Process" depending on if it is a Shear Part (square) or a Plasma Table part. *THIS IS WHERE I NEED HELP
What I have so far:
- ilogic scans Assembly for Sheetmetal components.
- opens each and checks for Flat Pattern, If nothing, one is created
- checks for Bends, If so, adds a "Y" to its "FORM" iProperty
- (runs external rule) Flips Flat Pattern so the bend "UP" is set to front (since Inventor always chooses the opposite side) so that when placed in drawing, the first(FRONT) view is default (99%) of the time.
- Creates a folder for DXF files
- Exports DXFs to that Folder
- Closes Part
What I Need (Want):
somewhere in there I would like to look at the flat pattern, if it has holes, cutouts or is not square, add a "P".... if not add "S"... Initially I was going to check the Flat Pattern or dxf for Inner & Outer Profiles Layers, but wont account for square cut-outs (ie: Stair Stringers, Bench Profiles) since they aren't inner profile and they are square...maybe number of corners/angles... I'm also not sure if it would be better to add the code to my main rule, run external or add it to the sm part templates and trigger it.
This may not even be possible, but if anyone knows how, I would greatly appreciate any help.