<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Betreff: Mirror Part in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5492864#M53909</link>
    <description>&lt;P&gt;I think you want to mirror a sketch in the same part document, if the source planar sketch(say Sketch1) is based on a work plane(say WorkPlane1) then you can create a mirrored work plane(say WorkPlane2) and then create a planar sketch(say Sketch2) on the mirrored work plane(WorkPlane2), and then you may use the&amp;nbsp;AddByProjectingEntity (I suggested to use CopyContentsTo, but use&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;AddByProjectingEntity may be better) to project the sketch entities in the source sketch Sketch1 to the target sketch Sketch2. If the source planar sketch is based on a planar Face, then you can firstly create a work plane based on the Face then follow similar steps to create the target sketch and project sketch entities from the source sketch to target sketch.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It is better you can provide a data if you still not sure how to do with it.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Feb 2015 08:37:40 GMT</pubDate>
    <dc:creator>YuhanZhang</dc:creator>
    <dc:date>2015-02-03T08:37:40Z</dc:date>
    <item>
      <title>Mirror Part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5474284#M53653</link>
      <description>&lt;P&gt;Hello together,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a way to mirror a complete part (sketch, extrusion etc.)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Georg&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jan 2015 10:05:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5474284#M53653</guid>
      <dc:creator>GeorgK</dc:creator>
      <dc:date>2015-01-19T10:05:21Z</dc:date>
    </item>
    <item>
      <title>Betreff: Mirror Part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5478031#M53716</link>
      <description>&lt;P&gt;I would like to mirror the part with a VBA or iLogic program. Otherwiese I have to rebuild each part manually from the beginning. The part should be equal to the origin - but not derived.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2015 07:55:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5478031#M53716</guid>
      <dc:creator>GeorgK</dc:creator>
      <dc:date>2015-01-22T07:55:57Z</dc:date>
    </item>
    <item>
      <title>Betreff: Mirror Part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5483450#M53784</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure how easy it would be to do it in a way that keeps the part in tact and all features where they should be.&lt;/P&gt;
&lt;P&gt;E.g. if you move things around in a sketch the feautures based on the solid extruded from it might not find the edges they were originally on, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess how easy it would be&amp;nbsp;to achieve what you want depends on how complicated the part documents are.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2015 01:06:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5483450#M53784</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2015-01-27T01:06:57Z</dc:date>
    </item>
    <item>
      <title>Betreff: Mirror Part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5483746#M53788</link>
      <description>&lt;P&gt;Hello Adam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;are there any sample to mirror a part?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you Georg&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2015 09:23:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5483746#M53788</guid>
      <dc:creator>GeorgK</dc:creator>
      <dc:date>2015-01-27T09:23:54Z</dc:date>
    </item>
    <item>
      <title>Betreff: Mirror Part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5483802#M53790</link>
      <description>&lt;P&gt;Hi Georg,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use API(MirrorFeatures.Add) to mirror all the part features and work features in a part, but not sketches.&amp;nbsp;I don't understand why you need to mirror the whole part, can you explain more about your requirement?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2015 10:17:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5483802#M53790</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2015-01-27T10:17:59Z</dc:date>
    </item>
    <item>
      <title>Betreff: Mirror Part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5483919#M53792</link>
      <description>&lt;P&gt;Hello Rocky,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;its much easier to edit the part in the wright direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Georg&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2015 12:44:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5483919#M53792</guid>
      <dc:creator>GeorgK</dc:creator>
      <dc:date>2015-01-27T12:44:39Z</dc:date>
    </item>
    <item>
      <title>Betreff: Mirror Part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5485202#M53814</link>
      <description>&lt;P&gt;Hi Georg,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to know is not the current MirrorFeatures.Add sufficient for now? Can you explain in detail&amp;nbsp;about why you&amp;nbsp;want&amp;nbsp;to mirror sketches also? It&amp;nbsp;would be better you can provide an example.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2015 02:39:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5485202#M53814</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2015-01-28T02:39:37Z</dc:date>
    </item>
    <item>
      <title>Betreff: Mirror Part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5485912#M53826</link>
      <description>&lt;P&gt;Hello Rocky,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we have very complex components . It is much easier to edit them in the correct position and orientation. Therefor I need the function to mirror the sketch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Georg&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2015 14:28:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5485912#M53826</guid>
      <dc:creator>GeorgK</dc:creator>
      <dc:date>2015-01-28T14:28:38Z</dc:date>
    </item>
    <item>
      <title>Betreff: Mirror Part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5488949#M53865</link>
      <description>&lt;P&gt;If you do like to mirror a sketch, maybe you can try a workaround as below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Mirror&amp;nbsp;a WorkPlane for a source sketch you want to mirror it. If the source sketch you want to mirror is based on a planar face then you can create a WorkPlane on the face first.&lt;/P&gt;
&lt;P&gt;2. Create a sketch on the mirrored WorkPlane. You may need to change the sketch properties to make it looks like a mirrored sketch of the source sketch.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Use&amp;nbsp;PlanarSketch.CopyContentsTo&amp;nbsp;to copy the sketch entities from source sketch to the target sketch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will make the taget sketch looks like the mirrored sketch, but the problem is the target sketch could not automatically update when the source sketch has any change. Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2015 04:48:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5488949#M53865</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2015-01-30T04:48:48Z</dc:date>
    </item>
    <item>
      <title>Betreff: Mirror Part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5489021#M53866</link>
      <description>&lt;P&gt;Do you have an example for this? Thank you very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could copy the sketch&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sub VBAMain()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Dim oPart1 As PartDocument&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Set oPart1 = ThisApplication.Documents.Open("c:\part1.ipt", False)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Dim oSketch_inPart1 As Sketch&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Set oSketch_inPart1 = oPart1.ComponentDefinition.Sketches(1)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Dim oPart2 As PartDocument&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Set oPart2 = ThisApplication.Documents.Open("c:\part2.ipt", False)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Dim oSketch_inPart2 As Sketch&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Set oSketch_inPart2 = oPart2.ComponentDefinition.Sketches(1)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Call oSketch_inPart1.CopyContentsTo(oSketch_inPart2)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Call oPart1.Close(True)&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPart2.Update&lt;BR /&gt;&amp;nbsp;&amp;nbsp; oPart2.Save&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Call oPart2.Close(True)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;End Sub&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2015 07:38:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5489021#M53866</guid>
      <dc:creator>GeorgK</dc:creator>
      <dc:date>2015-01-30T07:38:17Z</dc:date>
    </item>
    <item>
      <title>Betreff: Mirror Part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5492864#M53909</link>
      <description>&lt;P&gt;I think you want to mirror a sketch in the same part document, if the source planar sketch(say Sketch1) is based on a work plane(say WorkPlane1) then you can create a mirrored work plane(say WorkPlane2) and then create a planar sketch(say Sketch2) on the mirrored work plane(WorkPlane2), and then you may use the&amp;nbsp;AddByProjectingEntity (I suggested to use CopyContentsTo, but use&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;AddByProjectingEntity may be better) to project the sketch entities in the source sketch Sketch1 to the target sketch Sketch2. If the source planar sketch is based on a planar Face, then you can firstly create a work plane based on the Face then follow similar steps to create the target sketch and project sketch entities from the source sketch to target sketch.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It is better you can provide a data if you still not sure how to do with it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2015 08:37:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5492864#M53909</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2015-02-03T08:37:40Z</dc:date>
    </item>
    <item>
      <title>Betreff: Mirror Part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5497265#M53973</link>
      <description>&lt;P&gt;I created a simple VBA sample to "mirror" 2D sketch, it can work for simple 2D sketch, you can start with it to add more code to make it work better, to run it you should first open a part document and select a planar object which can be used as the mirror tool:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub MirroSketchInPartSimpleSample()
    Dim oDoc As PartDocument
    Set oDoc = ThisApplication.ActiveDocument
    
    Dim oMirrorPlaneEntity As Object
    Set oMirrorPlaneEntity = oDoc.SelectSet(1)
    
    Dim oCompDef As PartComponentDefinition
    Set oCompDef = oDoc.ComponentDefinition
    
    Dim oSk As PlanarSketch, oMirrorSk As PlanarSketch
    Dim oCol As ObjectCollection
    Set oCol = ThisApplication.TransientObjects.CreateObjectCollection
    
    For Each oSk In oCompDef.Sketches
        If oSk.PlanarEntity.Type = kWorkPlaneObject Then
            Dim oMirrorFeature As MirrorFeature, oMirrorWP As WorkPlane
            oCol.Clear
            oCol.Add oSk.PlanarEntity
            Set oMirrorFeature = oCompDef.Features.MirrorFeatures.Add(oCol, oMirrorPlaneEntity)
            Set oMirrorWP = oCompDef.WorkPlanes(oCompDef.WorkPlanes.Count)
            
            Set oMirrorSk = oCompDef.Sketches.Add(oMirrorWP)
            
            oSk.CopyContentsTo oMirrorSk
        ElseIf oSk.PlanarEntity.Type = kFaceObject Then
            Dim oWPForSourceSk As WorkPlane
            Set oWPForSourceSk = oCompDef.WorkPlanes.AddByPlaneAndOffset(oSk.PlanarEntity, 0, True)
            
            oCol.Clear
            oCol.Add oWPForSourceSk
            Set oMirrorFeature = oCompDef.Features.MirrorFeatures.Add(oCol, oMirrorPlaneEntity)
            Set oMirrorWP = oCompDef.WorkPlanes(oCompDef.WorkPlanes.Count)
            
            Set oMirrorSk = oCompDef.Sketches.Add(oMirrorWP)
            oSk.CopyContentsTo oMirrorSk
        End If
    Next
End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me if you have more questions on this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2015 09:45:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-part/m-p/5497265#M53973</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2015-02-06T09:45:14Z</dc:date>
    </item>
  </channel>
</rss>

