<?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 Re: Need i-logic function for Export sketch to dwg from part file in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/need-i-logic-function-for-export-sketch-to-dwg-from-part-file/m-p/5594515#M119069</link>
    <description>&lt;P&gt;Thank you Jones,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is working fine. I have one more question. If you can, guide me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to Use this macro after finishing the sketch. You told to use in sketch environment. Instead, Is it possible way to use this macro from I-logic rules or form like that (automatically triggering from some click on buttons) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kanagavel.M&lt;/P&gt;</description>
    <pubDate>Thu, 16 Apr 2015 07:23:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-16T07:23:02Z</dc:date>
    <item>
      <title>Need i-logic function for Export sketch to dwg from part file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/need-i-logic-function-for-export-sketch-to-dwg-from-part-file/m-p/5590490#M119067</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have drawn one rectangular sketch in part model. I want to use i-logic rule or form to export that sketch to dwg format.i will use that dwg file in auto cad in future.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kanagavel.M&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2015 04:08:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/need-i-logic-function-for-export-sketch-to-dwg-from-part-file/m-p/5590490#M119067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-14T04:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need i-logic function for Export sketch to dwg from part file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/need-i-logic-function-for-export-sketch-to-dwg-from-part-file/m-p/5591294#M119068</link>
      <description>&lt;P&gt;I modified the code from the following link and made it work with the VBA editor within Inventor.&lt;/P&gt;&lt;P&gt;&lt;A target="_self" href="https://forums.autodesk.com/t5/inventor-customization/export-sketch-as-autocad-dwg-file-question/td-p/5483168"&gt;http://forums.autodesk.com/t5/inventor-customization/export-sketch-as-autocad-dwg-file-question/td-p/5483168&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a sketch and run this macro from the sketch enviroment.&lt;/P&gt;&lt;P&gt;It created a dwg file named sketch.dwg on my desktop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Option Explicit
Sub ExportDWG()

  Dim DWGAddIn As TranslatorAddIn
Dim Doc As Document
       Set DWGAddIn = ThisApplication.ApplicationAddIns.ItemById("{C24E3AC2-122E-11D5-8E91-0010B541CD80}")

       Set Doc = ThisApplication.ActiveDocument

       Dim transObjs As TransientObjects

       Set transObjs = ThisApplication.TransientObjects

       Dim context As TranslationContext

       Set context = transObjs.CreateTranslationContext

       context.Type = kFileBrowseIOMechanism

       Dim options As NameValueMap

       Set options = transObjs.CreateNameValueMap

       If DWGAddIn.HasSaveCopyAsOptions(Doc, context, options) Then
          options.Value("Sketch") = True

          options.Value("DwgVersion") = 25
       End If

       Dim oDataMedium As DataMedium

       Set oDataMedium = transObjs.CreateDataMedium

       oDataMedium.FileName = "sketch.dwg"

       Call DWGAddIn.SaveCopyAs(Doc, context, options, oDataMedium)
    
End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2015 12:56:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/need-i-logic-function-for-export-sketch-to-dwg-from-part-file/m-p/5591294#M119068</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-14T12:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need i-logic function for Export sketch to dwg from part file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/need-i-logic-function-for-export-sketch-to-dwg-from-part-file/m-p/5594515#M119069</link>
      <description>&lt;P&gt;Thank you Jones,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is working fine. I have one more question. If you can, guide me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to Use this macro after finishing the sketch. You told to use in sketch environment. Instead, Is it possible way to use this macro from I-logic rules or form like that (automatically triggering from some click on buttons) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kanagavel.M&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2015 07:23:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/need-i-logic-function-for-export-sketch-to-dwg-from-part-file/m-p/5594515#M119069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-16T07:23:02Z</dc:date>
    </item>
  </channel>
</rss>

