
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Community,
I have some serrious trouble with a rule,
I need to extrude all closed loops in a specific sketch.
This problem have been well solved by the great Curtis in his Inventor trenches Blog page:
http://inventortrenches.blogspot.co.at/2012/03/ilogic-to-select-all-of-closed-profiles.html?m=1
But i need something similar but different!!!!
I don´t like to create a new extrusion.
I like to add the profiles from an specific sketch to an existing extrusion.
My code is attached below, I think I m very close to the solution but at this point my programming skills come to an end.
I have serious troubles with the
SyntaxEditor Code Snippet
Dim oExtrude As ExtrudeFeatures oExtrude = ThisApplication.ActiveDocument.ComponentDefinition.Extrusion
......Comand.......but I m not shure if this is the only thing whats wrong
If i know how i can specify the sketch and the extrusion , I can easy manage to copy them to other bodys.
May there is an "for every sketch" solution?
Any help in this case would be great!!!---------Kudo!
Excuse my texting, I m not a native
Thanks
Simon
Full Code:
SyntaxEditor Code Snippet
Dim oPartDoc As PartDocument oPartDoc = ThisApplication.ActiveDocument Dim oCompDef As PartComponentDefinition oCompDef = oPartDoc.ComponentDefinition Dim oSketches As PlanarSketches oSketches = ThisApplication.ActiveDocument.ComponentDefinition.Sketches Dim oSketch As PlanarSketch oSketch = oSketches.Item("CUT_SW1_S") Dim oProfile As Profile oProfile = oSketch.Profiles.AddForSolid ' Create an extrusion Dim oExtrude As ExtrudeFeatures oExtrude = ThisApplication.ActiveDocument.ComponentDefinition.Extrusion oExtrude = oExtrude.Item("CUT_SW1_S") oExtrude = oCompDef.ExtrudeDefinition.Profile(oProfile) iLogicVb.UpdateWhenDone = True
Solved! Go to Solution.