<?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: Can ilogic rules be used to auto' produce a drg from an ilogic, form run par in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-ilogic-rules-be-used-to-auto-produce-a-drg-from-an-ilogic/m-p/8884573#M109567</link>
    <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not having much luck in working out the correct illogic code to add views to an automatically generated drawing sheet. I only really need to add a base view and a projected view with width, height, depth and length dimensions fixed to them.&lt;/P&gt;&lt;P&gt;Does anyone have any ideas that may help?&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;</description>
    <pubDate>Tue, 02 Jul 2019 07:28:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-02T07:28:38Z</dc:date>
    <item>
      <title>Can ilogic rules be used to auto' produce a drg from an ilogic, form run part?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-ilogic-rules-be-used-to-auto-produce-a-drg-from-an-ilogic/m-p/8877603#M109563</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an Inventor ilogic problem I hope someone could help with.&lt;/P&gt;&lt;P&gt;I have a part that has a form to change the height, depth &amp;amp; length and a set of ilogic rules that also change the flange sizes and hole sizes and pitches within this flange.&lt;/P&gt;&lt;P&gt;What I need to do now is attach a drawing to this that will automatically generate to suit the sizes inputted into the form.&lt;/P&gt;&lt;P&gt;I admit that I am very new to ilogic code but is this possible using ilogic rules? The code seems very complicated and in depth for my level of knowledge.&lt;/P&gt;&lt;P&gt;What code would attach a drawing to a part and allow it to generate a drawing with two views with dimensions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any advice.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 19:15:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-ilogic-rules-be-used-to-auto-produce-a-drg-from-an-ilogic/m-p/8877603#M109563</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-27T19:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can ilogic rules be used to auto' produce a drg from an ilogic, form run par</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-ilogic-rules-be-used-to-auto-produce-a-drg-from-an-ilogic/m-p/8877998#M109564</link>
      <description>&lt;P&gt;Hi! I believe this is doable. I have seen customer examples doing exactly like what you want. Could you share an example here? We have quite a few iLogic experts who can show you how to do that. Without an example, it is very hard to find a solution.&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 22:31:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-ilogic-rules-be-used-to-auto-produce-a-drg-from-an-ilogic/m-p/8877998#M109564</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2019-06-27T22:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can ilogic rules be used to auto' produce a drg from an ilogic, form run par</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-ilogic-rules-be-used-to-auto-produce-a-drg-from-an-ilogic/m-p/8878708#M109565</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Hi Johnson, thank you for your reply.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Below is a screenshot of the part I am working with, it's a very simple part. The form has the 3 variables and a set of illogic rules changes the flange sizes, corner holes position and central holes pitches to suit sizes (50mm increments).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Silencerpic.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/652058i4DFC514C81351D4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Silencerpic.jpg" alt="Silencerpic.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I've decided to split this down into workable sections of code, as below:-&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;1. Code to attach the correct drawing to the part.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;2. Code to set up the views (a view on flange holes &amp;amp; a view on side)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;3. Code to attach dimensions to these views.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I have managed to add the first rule to attach the drawing to the part, which seems to work with one error which I'm not sure how to fix?:-&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Error in rule: Rule22, in document: Silencer.ipt&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Public member 'Add' on type 'Application' not found.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;The code I've done is here:-&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000" size="2"&gt;Imports Inventor.ViewOrientationTypeEnumImportsInventor.DrawingViewStyleEnum&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000" size="2"&gt;Dim oDrawingDoc As DrawingDocument&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;Dim oPartDoc As Document&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;Dim oSheet As Sheet&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;Dim oTG As TransientGeometry&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;Dim oView1 As DrawingView&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;Dim oView2 As DrawingView&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;Dim oView3 As DrawingView&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;Dim oView4 As DrawingView&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;ViewScale=3/16&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;'Ask to create drawing?&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;dwgQuery=MsgBox("Would you like to Create a drawing for this MODEL?", vbYesNo,"Drawing Selection")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;If dwgQuery=vbYes&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;ThenoPartDoc=ThisDoc.Document&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;'Define IDW Template File Location&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;oDrawingDoc=ThisApplication.Add.kDrawingDocument("C:\VaultWorkingFolder\Designs\Templates\SilencerAssembly.idw", True)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;oSheet=oDrawingDoc.Sheets.Item(1)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;'Define 2d view bottom left corner points for four views&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;oPoint1=ThisApplication.TransientGeometry.CreatePoint2d(1, 1)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;oPoint2=ThisApplication.TransientGeometry.CreatePoint2d(1, 6)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;oPoint3=ThisApplication.TransientGeometry.CreatePoint2d(5, 1)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;oBaseView=oSheet.DrawingViews.AddBaseView(oPartDoc,oPoint1, 3/16,kFrontViewOrientation, kHiddenLineDrawingViewStyle)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;', KTANGENTEDGESON)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;oView2=oSheet.DrawingView.AddProjectedView(oBaseView,oPoint2, kHiddenLineDrawingViewStyle, 3/16)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;oView3=oSheet.DrawingView.AddProjectedView(oBaseView,oPoint3, kHiddenLineDrawingViewStyle, 3/16)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" size="2"&gt;End If&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;If I can fix this error that will be task 1 done. I'm really not sure about the others yet though!!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Thank you for your help&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 08:44:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-ilogic-rules-be-used-to-auto-produce-a-drg-from-an-ilogic/m-p/8878708#M109565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-28T08:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can ilogic rules be used to auto' produce a drg from an ilogic, form run par</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-ilogic-rules-be-used-to-auto-produce-a-drg-from-an-ilogic/m-p/8879287#M109566</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;Step 1 to automatically generate a drawing is working with this code:-&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;'Ask to create drawing?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;dwgQuery=MsgBox("Would you like to Create a drawing for this MODEL?", vbYesNo,"Drawing Selection")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;If dwgQuery=vbYes&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;ThenoPartDoc=ThisDoc.Document&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;'Define IDW Template File Location&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;ThisDoc.Launch("C:\VaultWorkingFolder\Designs\Templates\Silencer Drawing.idw")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;End If&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;The next step is to automatically generate a front and side view on that drawing. Can anyone help?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Even just one view would do the trick!!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 13:12:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-ilogic-rules-be-used-to-auto-produce-a-drg-from-an-ilogic/m-p/8879287#M109566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-28T13:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can ilogic rules be used to auto' produce a drg from an ilogic, form run par</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-ilogic-rules-be-used-to-auto-produce-a-drg-from-an-ilogic/m-p/8884573#M109567</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not having much luck in working out the correct illogic code to add views to an automatically generated drawing sheet. I only really need to add a base view and a projected view with width, height, depth and length dimensions fixed to them.&lt;/P&gt;&lt;P&gt;Does anyone have any ideas that may help?&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;</description>
      <pubDate>Tue, 02 Jul 2019 07:28:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-ilogic-rules-be-used-to-auto-produce-a-drg-from-an-ilogic/m-p/8884573#M109567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-02T07:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can ilogic rules be used to auto' produce a drg from an ilogic, form run par</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-ilogic-rules-be-used-to-auto-produce-a-drg-from-an-ilogic/m-p/8886506#M109568</link>
      <description>&lt;P&gt;Hi! Let me ping&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4253164"&gt;@Sergio.D.Suárez&lt;/a&gt;. He is very active on the forum and he knows iLogic very well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi Sergio,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have an example showing the Drawing automation workflow?&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 21:49:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-ilogic-rules-be-used-to-auto-produce-a-drg-from-an-ilogic/m-p/8886506#M109568</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2019-07-02T21:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can ilogic rules be used to auto' produce a drg from an ilogic, form run par</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-ilogic-rules-be-used-to-auto-produce-a-drg-from-an-ilogic/m-p/8887664#M109569</link>
      <description>&lt;P&gt;Hi, This code could be useful to you, at least it does not throw me errors. I retouch it a bit to simplify it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;templateFile&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; &lt;SPAN&gt;'Create a drawing from the drawing template&lt;/SPAN&gt;
&lt;SPAN&gt;templateFile&lt;/SPAN&gt; = &lt;SPAN&gt;"C:\VaultWorkingFolder\Designs\Templates\SilencerAssembly.idw"&lt;/SPAN&gt; &lt;SPAN&gt;'''&lt;/SPAN&gt;&lt;SPAN&gt;Place the path of your template idw&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;ViewScale&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Double&lt;/SPAN&gt; = 3 / 16

&lt;SPAN&gt;dwgQuery&lt;/SPAN&gt; = &lt;SPAN&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN&gt;"Would you like to Create a drawing for this MODEL?"&lt;/SPAN&gt;, &lt;SPAN&gt;vbYesNo&lt;/SPAN&gt;, &lt;SPAN&gt;"Drawing Selection"&lt;/SPAN&gt;)

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;dwgQuery&lt;/SPAN&gt;=&lt;SPAN&gt;vbYes&lt;/SPAN&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;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;oPoint1&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;(1, 1)
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oPoint2&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;(1, 6)
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oPoint3&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;(5, 1)
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oBaseView&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;AddBaseView&lt;/SPAN&gt;(&lt;SPAN&gt;oDoc&lt;/SPAN&gt;,&lt;SPAN&gt;oPoint1&lt;/SPAN&gt;,&lt;SPAN&gt;ViewScale&lt;/SPAN&gt;,&lt;SPAN&gt;ViewOrientationTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kFrontViewOrientation&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;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;oBaseView&lt;/SPAN&gt;,&lt;SPAN&gt;oPoint2&lt;/SPAN&gt;, &lt;SPAN&gt;DrawingViewStyleEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kHiddenLineDrawingViewStyle&lt;/SPAN&gt;,&lt;SPAN&gt;ViewScale&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;oBaseView&lt;/SPAN&gt;,&lt;SPAN&gt;oPoint3&lt;/SPAN&gt;, &lt;SPAN&gt;DrawingViewStyleEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kHiddenLineDrawingViewStyle&lt;/SPAN&gt;,&lt;SPAN&gt;ViewScale&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The idea that you propose is good, you could load all these fragments as subroutines sub - end sub and command them from a main sub main.&lt;/P&gt;&lt;P&gt;That's why I'll add a code below to place dimensions in the drawing views.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;main&lt;/SPAN&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;If&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; = &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kDrawingDocumentObject&lt;/SPAN&gt;  &lt;SPAN&gt;Then&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;oSheet&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveSheet&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oViews&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;
	&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;Line1&lt;/SPAN&gt; :
	&lt;SPAN&gt;oView&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;Pick&lt;/SPAN&gt;(&lt;SPAN&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kDrawingViewFilter&lt;/SPAN&gt;, &lt;SPAN&gt;"Select view"&lt;/SPAN&gt;)
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;Is&lt;/SPAN&gt; &lt;SPAN&gt;Nothing&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oGeneralDimensionsEnum&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;GeneralDimensionsEnumerator&lt;/SPAN&gt;
	&lt;SPAN&gt;oGeneralDimensionsEnum&lt;/SPAN&gt; = &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingDimensions&lt;/SPAN&gt;.&lt;SPAN&gt;GeneralDimensions&lt;/SPAN&gt;.&lt;SPAN&gt;Retrieve&lt;/SPAN&gt;(&lt;SPAN&gt;oView&lt;/SPAN&gt;)
	&lt;SPAN&gt;GoTo&lt;/SPAN&gt; &lt;SPAN&gt;Line1&lt;/SPAN&gt;
	&lt;SPAN&gt;centrar_Cotas&lt;/SPAN&gt;
&lt;SPAN&gt;Else&lt;/SPAN&gt; 
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Please, open a drawing file"&lt;/SPAN&gt;, &lt;SPAN&gt;"Retrieve dimensions"&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;

&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;centrar_Cotas&lt;/SPAN&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;DrawingDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;
	&lt;SPAN&gt;' Set a reference to the active sheet&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;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveSheet&lt;/SPAN&gt;
	&lt;SPAN&gt;' Iterate over all dimensions in the drawing and&lt;/SPAN&gt;
	&lt;SPAN&gt;' center them if they are linear or angular.&lt;/SPAN&gt;
	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oDrawingDim&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDimension&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingDimensions&lt;/SPAN&gt;
	    &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;TypeOf&lt;/SPAN&gt; &lt;SPAN&gt;oDrawingDim&lt;/SPAN&gt; &lt;SPAN&gt;Is&lt;/SPAN&gt; &lt;SPAN&gt;LinearGeneralDimension&lt;/SPAN&gt; &lt;SPAN&gt;Or&lt;/SPAN&gt; _
	       &lt;SPAN&gt;TypeOf&lt;/SPAN&gt; &lt;SPAN&gt;oDrawingDim&lt;/SPAN&gt; &lt;SPAN&gt;Is&lt;/SPAN&gt; &lt;SPAN&gt;AngularGeneralDimension&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	        &lt;SPAN&gt;Call&lt;/SPAN&gt; &lt;SPAN&gt;oDrawingDim&lt;/SPAN&gt;.&lt;SPAN&gt;CenterText&lt;/SPAN&gt;
	    &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
	&lt;SPAN&gt;Next&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;This is a difficult issue, what this code does is to retrieve the dimensions of the drawing, something very useful when the workflow is directed thinking about how the part will be represented in a drawing.&lt;/P&gt;&lt;P&gt;With the code you select the views of the sheet where you need to retrieve the dimensions&lt;/P&gt;&lt;P&gt;I hope some of this help. regards&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 11:42:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-ilogic-rules-be-used-to-auto-produce-a-drg-from-an-ilogic/m-p/8887664#M109569</guid>
      <dc:creator>Sergio.D.Suárez</dc:creator>
      <dc:date>2019-07-03T11:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can ilogic rules be used to auto' produce a drg from an ilogic, form run par</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-ilogic-rules-be-used-to-auto-produce-a-drg-from-an-ilogic/m-p/8895054#M109570</link>
      <description>&lt;P&gt;Hi Sergio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've not had chance to try this yet but just wanted to thank you for your help.&lt;/P&gt;&lt;P&gt;I will let you know how it goes when I get around to giving it a try but wanted to let you know that your help is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll keep you posted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 08:25:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-ilogic-rules-be-used-to-auto-produce-a-drg-from-an-ilogic/m-p/8895054#M109570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-08T08:25:58Z</dc:date>
    </item>
  </channel>
</rss>

