<?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: iLogic include work axis from assembly to drawing in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9523294#M63283</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;sorry my mistake. I wrote wrong view name. (first capital letter).&lt;/P&gt;&lt;P&gt;I little bit change your code: Visibility is controlled by linked paramter:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&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;ActiveSheet&lt;/SPAN&gt;.&lt;SPAN&gt;Sheet&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oViewName&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;"Hlavni"&lt;/SPAN&gt; &lt;SPAN&gt;'Name of the view&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;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;osView&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingView&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;osView&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;oViewName&lt;/SPAN&gt;
		&lt;SPAN&gt;oView&lt;/SPAN&gt; = &lt;SPAN&gt;osView&lt;/SPAN&gt;
		&lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;For&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;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;MsgBox&lt;/SPAN&gt;(&lt;SPAN&gt;"No view found with name: "&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oViewName&lt;/SPAN&gt;)
	&lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;Sub&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;refDoc&lt;/SPAN&gt; = &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocumentDescriptor&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocument&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyComponentDefinition&lt;/SPAN&gt; = &lt;SPAN&gt;refDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;'Dim oOcc As ComponentOccurrence = oDef.Occurrences.ItemByName("teplomer")&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAxis&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;WorkAxis&lt;/SPAN&gt; = &lt;SPAN&gt;oDef&lt;/SPAN&gt;.&lt;SPAN&gt;WorkAxes&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Work Axis5"&lt;/SPAN&gt;) &lt;SPAN&gt;'Get axis by name&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"ENG-000218317-P.ipt.teplomer_01"&lt;/SPAN&gt;) = 0.000 ul &lt;SPAN&gt;'See if teplomer is supress&lt;/SPAN&gt;
	&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;SetIncludeStatus&lt;/SPAN&gt;(&lt;SPAN&gt;oAxis&lt;/SPAN&gt;, &lt;SPAN&gt;False&lt;/SPAN&gt;)
&lt;SPAN&gt;Else&lt;/SPAN&gt;
	&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;SetIncludeStatus&lt;/SPAN&gt;(&lt;SPAN&gt;oAxis&lt;/SPAN&gt;, &lt;SPAN&gt;True&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;&lt;/P&gt;&lt;P&gt;If teplomer is&amp;nbsp;availabilite then&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"ENG-000218317-P.ipt.teplomer_01"&lt;/SPAN&gt;) = 1 ul&amp;nbsp;&lt;/P&gt;&lt;P&gt;If teplomer is&amp;nbsp;suppress then&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"ENG-000218317-P.ipt.teplomer_01"&lt;/SPAN&gt;) = 0 ul&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can´t linked True/ false parametr from base component..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, one more problem :/. If axis get visibly, it´s "small", can I manage size of axis in code?&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6.PNG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/772025i0A5DC250D949CD9A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="6.PNG" alt="6.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="7.PNG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/772026i9486399688D74327/image-size/medium?v=v2&amp;amp;px=400" role="button" title="7.PNG" alt="7.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 May 2020 10:07:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-18T10:07:49Z</dc:date>
    <item>
      <title>iLogic include work axis from assembly to drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9515638#M63277</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;Could anybody help me with edditing code:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;doc&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;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;sheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Sheet&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;doc&lt;/SPAN&gt;.&lt;SPAN&gt;Sheets&lt;/SPAN&gt;
    &lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;view&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingView&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;Sheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;

        &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;camera&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Camera&lt;/SPAN&gt; = &lt;SPAN&gt;View&lt;/SPAN&gt;.&lt;SPAN&gt;Camera&lt;/SPAN&gt;
        &lt;SPAN&gt;If&lt;/SPAN&gt; (&lt;SPAN&gt;camera&lt;/SPAN&gt;.&lt;SPAN&gt;ViewOrientationType&lt;/SPAN&gt; = &lt;SPAN&gt;ViewOrientationTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kIsoTopRightViewOrientation&lt;/SPAN&gt;) &lt;SPAN&gt;Then&lt;/SPAN&gt;
            &lt;SPAN&gt;Continue&lt;/SPAN&gt; &lt;SPAN&gt;For&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;refDoc&lt;/SPAN&gt; = &lt;SPAN&gt;View&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocumentDescriptor&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocument&lt;/SPAN&gt;
        &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;axis&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;WorkAxes&lt;/SPAN&gt; = &lt;SPAN&gt;refDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;WorkAxes&lt;/SPAN&gt;

        &lt;SPAN&gt;View&lt;/SPAN&gt;.&lt;SPAN&gt;SetIncludeStatus&lt;/SPAN&gt;(&lt;SPAN&gt;axis&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(1), &lt;SPAN&gt;True&lt;/SPAN&gt;)
        &lt;SPAN&gt;View&lt;/SPAN&gt;.&lt;SPAN&gt;SetIncludeStatus&lt;/SPAN&gt;(&lt;SPAN&gt;axis&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(2), &lt;SPAN&gt;True&lt;/SPAN&gt;)
        &lt;SPAN&gt;View&lt;/SPAN&gt;.&lt;SPAN&gt;SetIncludeStatus&lt;/SPAN&gt;(&lt;SPAN&gt;axis&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(3), &lt;SPAN&gt;True&lt;/SPAN&gt;)
    &lt;SPAN&gt;Next&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I want include work axis from assembly to drawing - include controll ilogic rule.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is possible to define for what drawing view and for what axis (by name)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 11:21:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9515638#M63277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-14T11:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic include work axis from assembly to drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9515773#M63278</link>
      <description>&lt;P&gt;Hi @Anonymous&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you looking for something like this?&lt;/P&gt;&lt;P&gt;The rule lets you pick the view in the drawing and then answer yes/no if you want to include the axes...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;View&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingView&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Pick&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kDrawingViewFilter&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Pick view"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;refDoc&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;View&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ReferencedDocumentDescriptor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ReferencedDocument&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAxes&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;WorkAxes&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;refDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;WorkAxes&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAxis&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;WorkAxis&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAxes&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oInclude&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DialogResult&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oInclude&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Show&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Include "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;oAxis&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;"?"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Include Axis"&lt;/SPAN&gt;, _
	&lt;SPAN style="color: #800000;"&gt;MessageBoxButtons&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;YesNo&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;MessageBoxIcon&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Question&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oInclude&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;DialogResult&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Yes&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;View&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetIncludeStatus&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oAxis&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;Else&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;View&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetIncludeStatus&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oAxis&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 May 2020 12:01:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9515773#M63278</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-05-14T12:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic include work axis from assembly to drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9515796#M63279</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thats instring too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this is not what I need.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If teplomer not suprres do:&amp;nbsp;&lt;/P&gt;&lt;P&gt;include Work Axis5 - include / visibly.&lt;/P&gt;&lt;P&gt;If teplomer is suprres - Work Axis5 will be unvisibly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(in drawing will be more views, so i need to specific for what view I want to include the axis. but by name not with click set.)&lt;/P&gt;&lt;P&gt;I know how to do If.... and so on, but I´m fighting with VBA.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.PNG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/770378iEFE68272B33F26A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3.PNG" alt="3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 12:12:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9515796#M63279</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-14T12:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic include work axis from assembly to drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9515880#M63280</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume you mean if "teplomer" is invisible in the view, not suppressed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Sheet&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ActiveSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Sheet&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oViewName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"VIEW1"&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;'Name of the view&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingView&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;osView&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingView&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DrawingViews&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;osView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oViewName&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;osView&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Is&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Nothing&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"No view found with name: "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;oViewName&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;refDoc&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ReferencedDocumentDescriptor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ReferencedDocument&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyComponentDefinition&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;refDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ComponentOccurrence&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Occurrences&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ItemByName&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"teplomer"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAxis&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;WorkAxis&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;WorkAxes&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Work Axis5"&lt;/SPAN&gt;) &lt;SPAN style="color: #808080;"&gt;'Get axis by name&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;GetVisibility&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;) = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;'See if teplomer is visible&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetIncludeStatus&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oAxis&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Else&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetIncludeStatus&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oAxis&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 12:41:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9515880#M63280</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-05-14T12:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic include work axis from assembly to drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9523256#M63281</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want only:&lt;/P&gt;&lt;P&gt;Visibly axis if teplomer isn´t supress in assembly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to dimension angle of teplomer in drawing. So if I don´t have teplomer in assy, I don´t want to include axis in drawing.&lt;/P&gt;&lt;P&gt;Your code show me error. I don´t know why.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="slo0102_0-1589795007067.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/772014i1651B5A2CE7C4BC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="slo0102_0-1589795007067.png" alt="slo0102_0-1589795007067.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="slo0102_1-1589795083398.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/772015iD7A83CF57EF121FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="slo0102_1-1589795083398.png" alt="slo0102_1-1589795083398.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 09:45:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9523256#M63281</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-18T09:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic include work axis from assembly to drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9523273#M63282</link>
      <description>&lt;P&gt;Were you running the code on a view based on a part when you got the error?&lt;/P&gt;&lt;P&gt;Could you attach the assembly? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 09:54:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9523273#M63282</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-05-18T09:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic include work axis from assembly to drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9523294#M63283</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;sorry my mistake. I wrote wrong view name. (first capital letter).&lt;/P&gt;&lt;P&gt;I little bit change your code: Visibility is controlled by linked paramter:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&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;ActiveSheet&lt;/SPAN&gt;.&lt;SPAN&gt;Sheet&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oViewName&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;"Hlavni"&lt;/SPAN&gt; &lt;SPAN&gt;'Name of the view&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;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;osView&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingView&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;osView&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;oViewName&lt;/SPAN&gt;
		&lt;SPAN&gt;oView&lt;/SPAN&gt; = &lt;SPAN&gt;osView&lt;/SPAN&gt;
		&lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;For&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;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;MsgBox&lt;/SPAN&gt;(&lt;SPAN&gt;"No view found with name: "&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oViewName&lt;/SPAN&gt;)
	&lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;Sub&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;refDoc&lt;/SPAN&gt; = &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocumentDescriptor&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocument&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyComponentDefinition&lt;/SPAN&gt; = &lt;SPAN&gt;refDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;'Dim oOcc As ComponentOccurrence = oDef.Occurrences.ItemByName("teplomer")&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAxis&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;WorkAxis&lt;/SPAN&gt; = &lt;SPAN&gt;oDef&lt;/SPAN&gt;.&lt;SPAN&gt;WorkAxes&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Work Axis5"&lt;/SPAN&gt;) &lt;SPAN&gt;'Get axis by name&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"ENG-000218317-P.ipt.teplomer_01"&lt;/SPAN&gt;) = 0.000 ul &lt;SPAN&gt;'See if teplomer is supress&lt;/SPAN&gt;
	&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;SetIncludeStatus&lt;/SPAN&gt;(&lt;SPAN&gt;oAxis&lt;/SPAN&gt;, &lt;SPAN&gt;False&lt;/SPAN&gt;)
&lt;SPAN&gt;Else&lt;/SPAN&gt;
	&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;SetIncludeStatus&lt;/SPAN&gt;(&lt;SPAN&gt;oAxis&lt;/SPAN&gt;, &lt;SPAN&gt;True&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;&lt;/P&gt;&lt;P&gt;If teplomer is&amp;nbsp;availabilite then&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"ENG-000218317-P.ipt.teplomer_01"&lt;/SPAN&gt;) = 1 ul&amp;nbsp;&lt;/P&gt;&lt;P&gt;If teplomer is&amp;nbsp;suppress then&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"ENG-000218317-P.ipt.teplomer_01"&lt;/SPAN&gt;) = 0 ul&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can´t linked True/ false parametr from base component..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, one more problem :/. If axis get visibly, it´s "small", can I manage size of axis in code?&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6.PNG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/772025i0A5DC250D949CD9A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="6.PNG" alt="6.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="7.PNG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/772026i9486399688D74327/image-size/medium?v=v2&amp;amp;px=400" role="button" title="7.PNG" alt="7.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 10:07:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9523294#M63283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-18T10:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic include work axis from assembly to drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9523431#M63284</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems like you want to move the endpoint of the centerline representing the axis.&lt;/P&gt;&lt;P&gt;Maybe something like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Sheet&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ActiveSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Sheet&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oViewName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"Hlavni"&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;'Name of the view&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingView&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;osView&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingView&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DrawingViews&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;osView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oViewName&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;osView&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Is&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Nothing&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"No view found with name: "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;oViewName&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;refDoc&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ReferencedDocumentDescriptor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ReferencedDocument&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyComponentDefinition&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;refDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'Dim oOcc As ComponentOccurrence = oDef.Occurrences.ItemByName("teplomer")&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAxis&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;WorkAxis&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;WorkAxes&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Work Axis5"&lt;/SPAN&gt;) &lt;SPAN style="color: #808080;"&gt;'Get axis by name&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"ENG-000218317-P.ipt.teplomer_01"&lt;/SPAN&gt;) = 0.000 ul &lt;SPAN style="color: #808080;"&gt;'See if teplomer is supress&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetIncludeStatus&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oAxis&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Else&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetIncludeStatus&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oAxis&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAxisLine&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Centerline&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Centerlines&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Centerlines&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Count&lt;/SPAN&gt;)
&lt;SPAN style="color: #808080;"&gt;'Should be the last centerline, otherwise try below for loop to get it...&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;'For Each ocLine As Centerline In oSheet.Centerlines&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'	If ocLine.ModelWorkFeature Is oAxis&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'		oAxisLine = ocLine&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'		Exit For&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'	End If&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oPoint&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Point2d&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oAxisLine&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;EndPoint&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Copy&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oVector&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Vector2d&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oAxisLine&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Geometry&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Direction&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AsVector&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Copy&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oVector&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ScaleBy&lt;/SPAN&gt;(10) &lt;SPAN style="color: #808080;"&gt;'Set distance to move endpoint of line.&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oPoint&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TranslateBy&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oVector&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;oAxisLine&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;EndPoint&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPoint&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 May 2020 11:00:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9523431#M63284</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-05-18T11:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic include work axis from assembly to drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9523464#M63285</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes you´re right. But it´s look that end point going to out of drawing view.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="slo0102_0-1589800453510.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/772070iB32F58D7BDDB325A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="slo0102_0-1589800453510.png" alt="slo0102_0-1589800453510.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried to change vector to (-10) etc..But nothing help. Maybe change:&amp;nbsp;&lt;/P&gt;&lt;P&gt;oAxisLine.EndPoint.Copy&amp;nbsp;&lt;/P&gt;&lt;P&gt;To something like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;oAxisLine.StartPoint.Copy ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 11:17:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9523464#M63285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-18T11:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic include work axis from assembly to drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9523518#M63286</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this instead &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Sheet&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ActiveSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Sheet&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oViewName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"Hlavni"&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;'Name of the view&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingView&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;osView&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingView&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DrawingViews&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;osView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oViewName&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;osView&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Is&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Nothing&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"No view found with name: "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;oViewName&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;refDoc&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ReferencedDocumentDescriptor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ReferencedDocument&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyComponentDefinition&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;refDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'Dim oOcc As ComponentOccurrence = oDef.Occurrences.ItemByName("teplomer")&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAxis&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;WorkAxis&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;WorkAxes&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Work Axis5"&lt;/SPAN&gt;) &lt;SPAN style="color: #808080;"&gt;'Get axis by name&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"ENG-000218317-P.ipt.teplomer_01"&lt;/SPAN&gt;) = 0.000 ul &lt;SPAN style="color: #808080;"&gt;'See if teplomer is supress&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetIncludeStatus&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oAxis&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Else&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetIncludeStatus&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oAxis&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAxisLine&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Centerline&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Centerlines&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Centerlines&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Count&lt;/SPAN&gt;)
&lt;SPAN style="color: #808080;"&gt;'Should be the last centerline, otherwise try below for loop to get it...&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;'For Each ocLine As Centerline In oSheet.Centerlines&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'	If ocLine.ModelWorkFeature Is oAxis&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'		oAxisLine = ocLine&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'		Exit For&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'	End If&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oPoint&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Point2d&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oAxisLine&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;StartPoint&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Copy&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oVector&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Vector2d&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oAxisLine&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Geometry&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Direction&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AsVector&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Copy&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oVector&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ScaleBy&lt;/SPAN&gt;(-10)
&lt;SPAN style="color: #800000;"&gt;oPoint&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TranslateBy&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oVector&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;oAxisLine&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;StartPoint&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPoint&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 May 2020 11:42:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9523518#M63286</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-05-18T11:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic include work axis from assembly to drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9523578#M63287</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5330176"&gt;@JhoelForshav&lt;/a&gt;&amp;nbsp;thank you a lot!&lt;/P&gt;&lt;P&gt;Where do you learn it?&lt;BR /&gt;I tried to find some books, but I found just one book from Autodesk, but there are just elementary knowledge.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 12:05:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9523578#M63287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-18T12:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic include work axis from assembly to drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9523603#M63288</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You're welcome. I think it's best to move the scaling of the axis to within the if-statement. So you don't do all of that if the axis isn't included...&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Sheet&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ActiveSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Sheet&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oViewName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"Hlavni"&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;'Name of the view&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingView&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;osView&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingView&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DrawingViews&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;osView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oViewName&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;osView&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Is&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Nothing&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"No view found with name: "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;oViewName&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;refDoc&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ReferencedDocumentDescriptor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ReferencedDocument&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyComponentDefinition&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;refDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'Dim oOcc As ComponentOccurrence = oDef.Occurrences.ItemByName("teplomer")&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAxis&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;WorkAxis&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;WorkAxes&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Work Axis5"&lt;/SPAN&gt;) &lt;SPAN style="color: #808080;"&gt;'Get axis by name&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"ENG-000218317-P.ipt.teplomer_01"&lt;/SPAN&gt;) = 0.000 ul &lt;SPAN style="color: #808080;"&gt;'See if teplomer is supress&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetIncludeStatus&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oAxis&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;)

&lt;SPAN style="color: #ff0000;"&gt;Else&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetIncludeStatus&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oAxis&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)
	
	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAxisLine&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Centerline&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Centerlines&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Centerlines&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Count&lt;/SPAN&gt;)
	&lt;SPAN style="color: #808080;"&gt;'Should be the last centerline, otherwise try below for loop to get it...&lt;/SPAN&gt;

	&lt;SPAN style="color: #808080;"&gt;'For Each ocLine As Centerline In oSheet.Centerlines&lt;/SPAN&gt;
	&lt;SPAN style="color: #808080;"&gt;'	If ocLine.ModelWorkFeature Is oAxis&lt;/SPAN&gt;
	&lt;SPAN style="color: #808080;"&gt;'		oAxisLine = ocLine&lt;/SPAN&gt;
	&lt;SPAN style="color: #808080;"&gt;'		Exit For&lt;/SPAN&gt;
	&lt;SPAN style="color: #808080;"&gt;'	End If&lt;/SPAN&gt;
	&lt;SPAN style="color: #808080;"&gt;'Next&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oPoint&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Point2d&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oAxisLine&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;StartPoint&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Copy&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oVector&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Vector2d&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oAxisLine&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Geometry&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Direction&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AsVector&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Copy&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oVector&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ScaleBy&lt;/SPAN&gt;(-10)
	&lt;SPAN style="color: #800000;"&gt;oPoint&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TranslateBy&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oVector&lt;/SPAN&gt;)
	&lt;SPAN style="color: #800000;"&gt;oAxisLine&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;StartPoint&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPoint&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;I've learnt a lot from this forum or just googling stuff.&lt;/P&gt;&lt;P&gt;The API reference manual here is great for looking up objects and their properties, functions etc.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2020/ENU/" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/INVNTOR/2020/ENU/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 12:15:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/9523603#M63288</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-05-18T12:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic include work axis from assembly to drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/11741770#M63289</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5330176" target="_self"&gt;&lt;SPAN class=""&gt;JhoelForshav&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'd like to include the work axis of a part in the assembly view, not of the assembly itself.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After selecting the view, is there a way to select the part I like in the selected view?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 07:22:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-include-work-axis-from-assembly-to-drawing/m-p/11741770#M63289</guid>
      <dc:creator>TecnicoPanni</dc:creator>
      <dc:date>2023-02-09T07:22:47Z</dc:date>
    </item>
  </channel>
</rss>

