Message 1 of 6
iLogic To Create Mirrored Part Feature
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Forum,
I am trying to create a mirrored feature of another feature using iLogic. Here's what I've written and I am not sure why it is not being executed
Dim oPartDoc As PartDocument = ThisDoc.Document Dim oPDC As Inventor.PartComponentDefinition = oPartDoc.ComponentDefinition Dim oFeatures As Inventor.PartFeatures = oPDC.Features Dim oExtrude As Inventor.PartFeature = oFeatures("Extrude1") Dim oPlane As Inventor.WorkPlane = oPDC.WorkPlanes.Item("Work Plane2") Dim oBjColSweep As Inventor.ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection Dim oBjColPlane As Inventor.ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection oBjColExtrude.Add(oExtrude) oBjColPlane.Add(oPlane) Dim oMirs As Inventor.MirrorFeatures = oFeatures.MirrorFeatures Dim oMirFeatDef As Inventor.MirrorFeatureDefinition oMirFeatDef = oFeatures.MirrorFeatures.CreateDefinition(oBjColExtrude, oBjColPlane) Dim oMirFeat As Inventor.MirrorFeature oMirFeat = oMirs.AddByDefinition(oMirFeatDef) oMirFeat.Name = "Testing"
Best regards,
Felix