<?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 Mirror Drawing Sketch in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-drawing-sketch/m-p/11420207#M142652</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would need to horizontally mirror a sketch in a (.idw) drawing document. Unfortunately, the API does not offer a direct function for this, even though a button for manual operation is foreseen.&amp;nbsp;&lt;/P&gt;&lt;P&gt;See also:&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/how-to-mirror-a-sketch-using-vba-macro/m-p/8636387" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/how-to-mirror-a-sketch-using-vba-macro/m-p/8636387&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unlike a PlanarSketch, a DrawingSketch does not offer SketchBlocks which can be transformed by matrix operation, such as here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/rotate-sketchblock/m-p/11332890#M140793" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/rotate-sketchblock/m-p/11332890#M140793&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried changing SketchPoint coordinates one by one, as below. But if it doesn't lead to an error, it really alters the sketch into something unrecognizable.&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Dim oPt As SketchPoint
For Each oPt In oDrawSketch.SketchPoints
	oPt.MoveBy(oTG.CreateVector2d(-oPt.Geometry.X,0))
Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion for a workaround is greatly appreciated!&lt;/P&gt;</description>
    <pubDate>Wed, 14 Sep 2022 08:58:45 GMT</pubDate>
    <dc:creator>J.Pelfrene</dc:creator>
    <dc:date>2022-09-14T08:58:45Z</dc:date>
    <item>
      <title>Mirror Drawing Sketch</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-drawing-sketch/m-p/11420207#M142652</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would need to horizontally mirror a sketch in a (.idw) drawing document. Unfortunately, the API does not offer a direct function for this, even though a button for manual operation is foreseen.&amp;nbsp;&lt;/P&gt;&lt;P&gt;See also:&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/how-to-mirror-a-sketch-using-vba-macro/m-p/8636387" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/how-to-mirror-a-sketch-using-vba-macro/m-p/8636387&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unlike a PlanarSketch, a DrawingSketch does not offer SketchBlocks which can be transformed by matrix operation, such as here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/rotate-sketchblock/m-p/11332890#M140793" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/rotate-sketchblock/m-p/11332890#M140793&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried changing SketchPoint coordinates one by one, as below. But if it doesn't lead to an error, it really alters the sketch into something unrecognizable.&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Dim oPt As SketchPoint
For Each oPt In oDrawSketch.SketchPoints
	oPt.MoveBy(oTG.CreateVector2d(-oPt.Geometry.X,0))
Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion for a workaround is greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 08:58:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/mirror-drawing-sketch/m-p/11420207#M142652</guid>
      <dc:creator>J.Pelfrene</dc:creator>
      <dc:date>2022-09-14T08:58:45Z</dc:date>
    </item>
  </channel>
</rss>

