<?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: How to create a drawing using iLogic (simple instructions) in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-drawing-using-ilogic-simple-instructions/m-p/9159815#M109072</link>
    <description>&lt;P&gt;Thank you again for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indeed, it does appear to be not as "simple" as I was hoping but it couldn't hurt to ask the community, maybe there was something out there I hadn't found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will continue to familiarize myself with the API, it's tough but I'll work on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your time Sergio. Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2019 14:51:01 GMT</pubDate>
    <dc:creator>Paul.Bennett3YZEV</dc:creator>
    <dc:date>2019-11-21T14:51:01Z</dc:date>
    <item>
      <title>How to create a drawing using iLogic (simple instructions)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-drawing-using-ilogic-simple-instructions/m-p/9157408#M109068</link>
      <description>&lt;P&gt;I have been searching around for a tutorial that identifies all the steps for automating a drawing file using iLogic and I can't seem to find anything,&amp;nbsp; what I do find is information that is steps ahead but doesn't start from the very beginning. I understand it is a complex topic but I am looking for a tutorial that identifies and explains all the steps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone can provide some information(video, PDF, ...etc) on&lt;/P&gt;&lt;P&gt;- Creating a drawing from an .ipt&lt;/P&gt;&lt;P&gt;- Place a few views in the .idw&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no coding experience and have tried messing around with iLogic on my own but I am struggling.&lt;/P&gt;&lt;P&gt;I am running Inventor 2019.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be very much appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 14:30:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-drawing-using-ilogic-simple-instructions/m-p/9157408#M109068</guid>
      <dc:creator>Paul.Bennett3YZEV</dc:creator>
      <dc:date>2019-11-20T14:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drawing using iLogic (simple instructions)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-drawing-using-ilogic-simple-instructions/m-p/9157513#M109069</link>
      <description>&lt;P&gt;Hi, this is an example in ilogic.&lt;BR /&gt;It can be executed in a part or assembly file.&lt;BR /&gt;"oSep" is the separation between views.&lt;BR /&gt;It is an example, a more complex code can be made as more functions are added, but it can serve as a starting point for learning.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;  &lt;SPAN&gt;' Part Document or Assembly Document&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oSep&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Double&lt;/SPAN&gt; = 2

&lt;SPAN&gt;'Create a drawing from the drawing template&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oFileDlg&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;FileDialog&lt;/SPAN&gt; = &lt;SPAN&gt;Nothing&lt;/SPAN&gt;
&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CreateFileDialog&lt;/SPAN&gt;(&lt;SPAN&gt;oFileDlg&lt;/SPAN&gt;)
&lt;SPAN&gt;oFileDlg&lt;/SPAN&gt;.&lt;SPAN&gt;Filter&lt;/SPAN&gt; =  &lt;SPAN&gt;"Inventor Files (*.idw)|*.idw"&lt;/SPAN&gt;
&lt;SPAN&gt;oFileDlg&lt;/SPAN&gt;.&lt;SPAN&gt;DialogTitle&lt;/SPAN&gt; = &lt;SPAN&gt;"Select Drawing Template"&lt;/SPAN&gt;
&lt;SPAN&gt;oFileDlg&lt;/SPAN&gt;.&lt;SPAN&gt;InitialDirectory&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;FileOptions&lt;/SPAN&gt;.&lt;SPAN&gt;TemplatesPath&lt;/SPAN&gt;
&lt;SPAN&gt;oFileDlg&lt;/SPAN&gt;.&lt;SPAN&gt;CancelError&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
&lt;SPAN&gt;On&lt;/SPAN&gt; &lt;SPAN&gt;Error&lt;/SPAN&gt; &lt;SPAN&gt;Resume&lt;/SPAN&gt; &lt;SPAN&gt;Next&lt;/SPAN&gt;
&lt;SPAN&gt;oFileDlg&lt;/SPAN&gt;.&lt;SPAN&gt;ShowOpen&lt;/SPAN&gt;()
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Err&lt;/SPAN&gt;.&lt;SPAN&gt;Number&lt;/SPAN&gt; &amp;lt;&amp;gt; 0 &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;
&lt;SPAN&gt;ElseIf&lt;/SPAN&gt; &lt;SPAN&gt;oFileDlg&lt;/SPAN&gt;.&lt;SPAN&gt;FileName&lt;/SPAN&gt; &amp;lt;&amp;gt; &lt;SPAN&gt;""&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
&lt;SPAN&gt;MasterFile&lt;/SPAN&gt; = &lt;SPAN&gt;oFileDlg&lt;/SPAN&gt;.&lt;SPAN&gt;FileName&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;Documents&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kDrawingDocumentObject&lt;/SPAN&gt;,&lt;SPAN&gt;templateFile&lt;/SPAN&gt;,&lt;SPAN&gt;True&lt;/SPAN&gt;)

&lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Activate&lt;/SPAN&gt;()
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Sheet&lt;/SPAN&gt; = &lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Sheets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(1)

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oCentralPoint&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Point2d&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN&gt;CreatePoint2d&lt;/SPAN&gt;(&lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;Width&lt;/SPAN&gt;/2, &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;Height&lt;/SPAN&gt;/2)

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingView&lt;/SPAN&gt;
&lt;SPAN&gt;oView&lt;/SPAN&gt; = &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;.&lt;SPAN&gt;AddBaseView&lt;/SPAN&gt;(&lt;SPAN&gt;oDoc&lt;/SPAN&gt;,&lt;SPAN&gt;oCentralPoint&lt;/SPAN&gt;, 1, &lt;SPAN&gt;ViewOrientationTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kBottomViewOrientation&lt;/SPAN&gt;, &lt;SPAN&gt;DrawingViewStyleEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kHiddenLineDrawingViewStyle&lt;/SPAN&gt;)

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;V1Point2D&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Point2d&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN&gt;CreatePoint2d&lt;/SPAN&gt;(&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Center&lt;/SPAN&gt;.&lt;SPAN&gt;X&lt;/SPAN&gt; + 10, &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Center&lt;/SPAN&gt;.&lt;SPAN&gt;Y&lt;/SPAN&gt;)
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;V2Point2D&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Point2d&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN&gt;CreatePoint2d&lt;/SPAN&gt;(&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Center&lt;/SPAN&gt;.&lt;SPAN&gt;X&lt;/SPAN&gt;, &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Center&lt;/SPAN&gt;.&lt;SPAN&gt;Y&lt;/SPAN&gt; - 10)
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;V3Point2D&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Point2d&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN&gt;CreatePoint2d&lt;/SPAN&gt;(&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Center&lt;/SPAN&gt;.&lt;SPAN&gt;X&lt;/SPAN&gt; + 10, &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Center&lt;/SPAN&gt;.&lt;SPAN&gt;Y&lt;/SPAN&gt; - 10)

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oView1&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingView&lt;/SPAN&gt; = &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;.&lt;SPAN&gt;AddProjectedView&lt;/SPAN&gt;(&lt;SPAN&gt;oView&lt;/SPAN&gt;, &lt;SPAN&gt;V1Point2D&lt;/SPAN&gt;, &lt;SPAN&gt;DrawingViewStyleEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kFromBaseDrawingViewStyle&lt;/SPAN&gt;)
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oView2&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingView&lt;/SPAN&gt; = &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;.&lt;SPAN&gt;AddProjectedView&lt;/SPAN&gt;(&lt;SPAN&gt;oView&lt;/SPAN&gt;, &lt;SPAN&gt;V2Point2D&lt;/SPAN&gt;, &lt;SPAN&gt;DrawingViewStyleEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kFromBaseDrawingViewStyle&lt;/SPAN&gt;)
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oView3&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingView&lt;/SPAN&gt; = &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;.&lt;SPAN&gt;AddProjectedView&lt;/SPAN&gt;(&lt;SPAN&gt;oView&lt;/SPAN&gt;, &lt;SPAN&gt;V3Point2D&lt;/SPAN&gt;, &lt;SPAN&gt;DrawingViewStyleEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kFromBaseDrawingViewStyle&lt;/SPAN&gt;)

&lt;SPAN&gt;oView1&lt;/SPAN&gt;.&lt;SPAN&gt;Position&lt;/SPAN&gt;= &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN&gt;CreatePoint2d&lt;/SPAN&gt;(&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Center&lt;/SPAN&gt;.&lt;SPAN&gt;X&lt;/SPAN&gt; + &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Width&lt;/SPAN&gt; / 2 + &lt;SPAN&gt;oSep&lt;/SPAN&gt; + &lt;SPAN&gt;oView1&lt;/SPAN&gt;.&lt;SPAN&gt;Width&lt;/SPAN&gt; / 2, &lt;SPAN&gt;oView1&lt;/SPAN&gt;.&lt;SPAN&gt;Center&lt;/SPAN&gt;.&lt;SPAN&gt;Y&lt;/SPAN&gt;)
&lt;SPAN&gt;oView2&lt;/SPAN&gt;.&lt;SPAN&gt;Position&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN&gt;CreatePoint2d&lt;/SPAN&gt;(&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Center&lt;/SPAN&gt;.&lt;SPAN&gt;X&lt;/SPAN&gt;, &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Center&lt;/SPAN&gt;.&lt;SPAN&gt;Y&lt;/SPAN&gt; - &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Height&lt;/SPAN&gt; / 2 - &lt;SPAN&gt;oSep&lt;/SPAN&gt; - &lt;SPAN&gt;oView2&lt;/SPAN&gt;.&lt;SPAN&gt;Height&lt;/SPAN&gt; / 2)

&lt;SPAN&gt;oView3&lt;/SPAN&gt;.&lt;SPAN&gt;Position&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN&gt;CreatePoint2d&lt;/SPAN&gt;(&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Center&lt;/SPAN&gt;.&lt;SPAN&gt;X&lt;/SPAN&gt; + &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Width&lt;/SPAN&gt; / 2 + &lt;SPAN&gt;oSep&lt;/SPAN&gt; + &lt;SPAN&gt;oView3&lt;/SPAN&gt;.&lt;SPAN&gt;Width&lt;/SPAN&gt; / 2, _
&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Center&lt;/SPAN&gt;.&lt;SPAN&gt;Y&lt;/SPAN&gt; - &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Height&lt;/SPAN&gt; / 2 - &lt;SPAN&gt;oSep&lt;/SPAN&gt; - &lt;SPAN&gt;oView3&lt;/SPAN&gt;.&lt;SPAN&gt;Height&lt;/SPAN&gt; / 2)
&lt;SPAN&gt;oView3&lt;/SPAN&gt;.&lt;SPAN&gt;ViewStyle&lt;/SPAN&gt; = &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;ViewStyle&lt;/SPAN&gt; &lt;/PRE&gt;&lt;P&gt;I hope this can be useful. Cheers!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 15:04:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-drawing-using-ilogic-simple-instructions/m-p/9157513#M109069</guid>
      <dc:creator>Sergio.D.Suárez</dc:creator>
      <dc:date>2019-11-20T15:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drawing using iLogic (simple instructions)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-drawing-using-ilogic-simple-instructions/m-p/9159701#M109070</link>
      <description>&lt;P&gt;Thank you for the reply Sergio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate you providing that code but I am looking for information that would go through each line and break down what it is and why it is used. Everything I have found skips this portion and assume the user understands this already, this is what I am struggling with as I do not have a coding background.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to teach myself but i am struggling with the language.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, any basic/beginner information or direction on this would be of great help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 14:11:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-drawing-using-ilogic-simple-instructions/m-p/9159701#M109070</guid>
      <dc:creator>Paul.Bennett3YZEV</dc:creator>
      <dc:date>2019-11-21T14:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drawing using iLogic (simple instructions)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-drawing-using-ilogic-simple-instructions/m-p/9159772#M109071</link>
      <description>&lt;P&gt;There are no "simple" instructions for what you just asked. In fact it is one of the things that are often asked, and I tried to create a code as simple as possible to achieve that and shared it.&lt;BR /&gt;Why are there no simple instructions? because the ilogic language is based on object language based on VB.net, and each object that provides each given access must be identified.&lt;BR /&gt;Ilogic has "shortcuts" of the accesses to access certain properties of a file, but not all the properties and all the different and complex accesses have ilogic shortcuts.&lt;BR /&gt;I think you should familiarize yourself with the inventor API, it's a lot of material, but even today I consult it daily.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/700243iAB5AD8AF5C15F7A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The question you should have asked would be:&lt;BR /&gt;How to learn programming? or where to consult bibliography to learn programming in inventor?&lt;/P&gt;&lt;P&gt;Check any material related to programming in VBA, ilogic, VB.net, there is a lot of material on the internet.&lt;BR /&gt;Place doubts about codes you experience in the customization threads&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 14:36:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-drawing-using-ilogic-simple-instructions/m-p/9159772#M109071</guid>
      <dc:creator>Sergio.D.Suárez</dc:creator>
      <dc:date>2019-11-21T14:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drawing using iLogic (simple instructions)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-drawing-using-ilogic-simple-instructions/m-p/9159815#M109072</link>
      <description>&lt;P&gt;Thank you again for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indeed, it does appear to be not as "simple" as I was hoping but it couldn't hurt to ask the community, maybe there was something out there I hadn't found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will continue to familiarize myself with the API, it's tough but I'll work on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your time Sergio. Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 14:51:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-drawing-using-ilogic-simple-instructions/m-p/9159815#M109072</guid>
      <dc:creator>Paul.Bennett3YZEV</dc:creator>
      <dc:date>2019-11-21T14:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drawing using iLogic (simple instructions)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-drawing-using-ilogic-simple-instructions/m-p/9159873#M109073</link>
      <description>&lt;P&gt;In the case of the previous code, you first identify the active document&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Dim oDoc As Document = ThisDoc.Document ' Part Document or Assembly Document&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now you define the separation between the views&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Dim oSep As Double = 2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now you need to open the dialog box to select a drawing template, look in the template path, look at the detail in red&lt;/P&gt;&lt;P&gt;&lt;EM&gt;'Create a drawing from the drawing template&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Dim oFileDlg As Inventor.FileDialog = Nothing&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ThisApplication.CreateFileDialog(oFileDlg)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;oFileDlg.Filter = "Inventor Files (*.idw)|*.idw"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;oFileDlg.DialogTitle = "Select Drawing Template"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;oFileDlg.InitialDirectory = &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ThisApplication.FileOptions.TemplatesPath&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;oFileDlg.CancelError = True&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;On Error Resume Next&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;oFileDlg.ShowOpen()&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there is an error or you do not select anything, leave the code without returning an error box&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;If Err.Number &amp;lt;&amp;gt; 0 Then&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Exit Sub&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ElseIf oFileDlg.FileName &amp;lt;&amp;gt; "" Then&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;MasterFile = oFileDlg.FileName&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;End If&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now you will create a new drawing file from the selected template&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Dim oDrawingDoc As DrawingDocument = ThisApplication.Documents.Add(DocumentTypeEnum.kDrawingDocumentObject,templateFile,True)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now activate the drawing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;oDrawingDoc.Activate()&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Dim oSheet As Sheet = oDrawingDoc.Sheets.Item(1)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now take the center point of the sheet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Dim oCentralPoint As Point2d = ThisApplication.TransientGeometry.CreatePoint2d(oSheet.Width/2, oSheet.Height/2)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now place the base view at the center point of the sheet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Dim oView As DrawingView&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;oView = oSheet.DrawingViews.AddBaseView(oDoc,oCentralPoint, 1, ViewOrientationTypeEnum.kBottomViewOrientation, DrawingViewStyleEnum.kHiddenLineDrawingViewStyle)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create projected views in arbitrary locations&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Dim V1Point2D As Point2d = ThisApplication.TransientGeometry.CreatePoint2d(oView.Center.X + 10, oView.Center.Y)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Dim V2Point2D As Point2d = ThisApplication.TransientGeometry.CreatePoint2d(oView.Center.X, oView.Center.Y - 10)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Dim V3Point2D As Point2d = ThisApplication.TransientGeometry.CreatePoint2d(oView.Center.X + 10, oView.Center.Y - 10)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Dim oView1 As DrawingView = oSheet.DrawingViews.AddProjectedView(oView, V1Point2D, DrawingViewStyleEnum.kFromBaseDrawingViewStyle)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Dim oView2 As DrawingView = oSheet.DrawingViews.AddProjectedView(oView, V2Point2D, DrawingViewStyleEnum.kFromBaseDrawingViewStyle)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Dim oView3 As DrawingView = oSheet.DrawingViews.AddProjectedView(oView, V3Point2D, DrawingViewStyleEnum.kFromBaseDrawingViewStyle)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Correct the positions of the views according to the separation entered and depending on the width and length of each view&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;oView1.Position= ThisApplication.TransientGeometry.CreatePoint2d(oView.Center.X + oView.Width / 2 + oSep + oView1.Width / 2, oView1.Center.Y)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;oView2.Position = ThisApplication.TransientGeometry.CreatePoint2d(oView.Center.X, oView.Center.Y - oView.Height / 2 - oSep - oView2.Height / 2)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;oView3.Position = ThisApplication.TransientGeometry.CreatePoint2d(oView.Center.X + oView.Width / 2 + oSep + oView3.Width / 2, _&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;oView.Center.Y - oView.Height / 2 - oSep - oView3.Height / 2)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;oView3.ViewStyle = oView.ViewStyle&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 15:04:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-drawing-using-ilogic-simple-instructions/m-p/9159873#M109073</guid>
      <dc:creator>Sergio.D.Suárez</dc:creator>
      <dc:date>2019-11-21T15:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drawing using iLogic (simple instructions)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-drawing-using-ilogic-simple-instructions/m-p/9159889#M109074</link>
      <description>&lt;P&gt;There are a few AU classes/demos like this about the topic..&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.autodesk.com/autodesk-university/class/Taking-It-Next-Level-Drawing-Automation-Inventor-2018" target="_blank"&gt;https://www.autodesk.com/autodesk-university/class/Taking-It-Next-Level-Drawing-Automation-Inventor-2018&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A google search of "Inventor Drawing Automation ilogic" yielded quite a few links to relevant training information.. Enough to keep you busy for hours and hours..&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 15:09:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-drawing-using-ilogic-simple-instructions/m-p/9159889#M109074</guid>
      <dc:creator>mcgyvr</dc:creator>
      <dc:date>2019-11-21T15:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drawing using iLogic (simple instructions)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-drawing-using-ilogic-simple-instructions/m-p/9159917#M109075</link>
      <description>&lt;P&gt;These are places that I consult a lot and are very good, I hope they can serve you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://modthemachine.typepad.com/" target="_blank"&gt;https://modthemachine.typepad.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://inventortrenches.blogspot.com/" target="_blank"&gt;http://inventortrenches.blogspot.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here a pdf that seems interesting, I have not studied it yet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/autodesk/attachments/autodesk/120/66335/1/SIDB9F74F1CA9F56A74E367EA6688F298C3.pdf" target="_blank"&gt;https://forums.autodesk.com/autodesk/attachments/autodesk/120/66335/1/SIDB9F74F1CA9F56A74E367EA6688F298C3.pdf&lt;/A&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 15:22:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-drawing-using-ilogic-simple-instructions/m-p/9159917#M109075</guid>
      <dc:creator>Sergio.D.Suárez</dc:creator>
      <dc:date>2019-11-21T15:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drawing using iLogic (simple instructions)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-drawing-using-ilogic-simple-instructions/m-p/9705854#M114930</link>
      <description>&lt;P&gt;Are these code working? I tried it with Inventor 2020, it only run up to "Select Drawing Template". I selected a template nothing happend when I click OK.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Aug 2020 10:05:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-drawing-using-ilogic-simple-instructions/m-p/9705854#M114930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-22T10:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drawing using iLogic (simple instructions)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-drawing-using-ilogic-simple-instructions/m-p/12974074#M171026</link>
      <description>Same problem for me. Nothing happens after clicking OK.</description>
      <pubDate>Thu, 22 Aug 2024 07:01:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-drawing-using-ilogic-simple-instructions/m-p/12974074#M171026</guid>
      <dc:creator>prudhvi_galiFSSED</dc:creator>
      <dc:date>2024-08-22T07:01:09Z</dc:date>
    </item>
  </channel>
</rss>

