<?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 iLogic drawing view controls in drawing files in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-controls-in-drawing-files/m-p/5966436#M106766</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for how to&amp;nbsp;use inventor iLogic to activate and deactivate&amp;nbsp;the "Definition in Base View" option for drawing views. This is found by double clicking on a drawing view and selecting the "Display Options" tab.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a drawing&amp;nbsp;file that uses an&amp;nbsp;iLogic rule to&amp;nbsp;activate and place section views but I want to give the option to our engineering staff to change the locations of the section views, then run a rule that hides all the arrows that clog up the Base view without having to click on every view manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The closest post I've found was this one:&amp;nbsp;&lt;A href="http://forums.autodesk.com/t5/inventor-general-discussion/ilogic-make-drawing-view-shaded/td-p/3758610" target="_blank"&gt;http://forums.autodesk.com/t5/inventor-general-discussion/ilogic-make-drawing-view-shaded/td-p/3758610&lt;/A&gt; that discussed how to use iLogic to change the view style, however I haven't discovered how to control the "Definiton in Base View" option yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 28 Dec 2015 18:26:48 GMT</pubDate>
    <dc:creator>tonychristman4915</dc:creator>
    <dc:date>2015-12-28T18:26:48Z</dc:date>
    <item>
      <title>iLogic drawing view controls in drawing files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-controls-in-drawing-files/m-p/5966436#M106766</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for how to&amp;nbsp;use inventor iLogic to activate and deactivate&amp;nbsp;the "Definition in Base View" option for drawing views. This is found by double clicking on a drawing view and selecting the "Display Options" tab.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a drawing&amp;nbsp;file that uses an&amp;nbsp;iLogic rule to&amp;nbsp;activate and place section views but I want to give the option to our engineering staff to change the locations of the section views, then run a rule that hides all the arrows that clog up the Base view without having to click on every view manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The closest post I've found was this one:&amp;nbsp;&lt;A href="http://forums.autodesk.com/t5/inventor-general-discussion/ilogic-make-drawing-view-shaded/td-p/3758610" target="_blank"&gt;http://forums.autodesk.com/t5/inventor-general-discussion/ilogic-make-drawing-view-shaded/td-p/3758610&lt;/A&gt; that discussed how to use iLogic to change the view style, however I haven't discovered how to control the "Definiton in Base View" option yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2015 18:26:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-controls-in-drawing-files/m-p/5966436#M106766</guid>
      <dc:creator>tonychristman4915</dc:creator>
      <dc:date>2015-12-28T18:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic drawing view controls in drawing files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-controls-in-drawing-files/m-p/5966471#M106767</link>
      <description>&lt;P&gt;Hi tonychristman4915,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's&amp;nbsp;a quick example based on the one at the link you provided.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&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;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oDrawDoc As DrawingDocument
 oDrawDoc = ThisApplication.ActiveDocument

Dim oSheet As Sheet
oSheet = oDrawDoc.ActiveSheet

' select drawing views on active sheet
Dim oDrawView As DrawingView

For Each oDrawView In oSheet.DrawingViews	
	'adjust drawing view
	If oDrawView.ViewType = DrawingViewTypeEnum.kDetailDrawingViewType Then
		'toggle detail view fence visiblility
		If oDrawView.DisplayDefinitionInBase = False Then
		oDrawView.DisplayDefinitionInBase = True
		Else
		oDrawView.DisplayDefinitionInBase = False
		End If
	End If
Next

' **** DrawingViewTypeEnums ****
'	kAssociativeDraftDrawingViewType = 10506 
'	kAuxiliaryDrawingViewType = 10499 
'	kCustomDrawingViewType = 10498 
'	kDefaultDrawingViewType = 10497 
'	kDetailDrawingViewType = 10502  
'	kDraftDrawingViewType = 10505 
'	kOLEAttachmentDrawingViewType = 10500  
'	kOverlayDrawingViewType = 10507 
'	kProjectedDrawingViewType = 10504 
'	kSectionDrawingViewType = 10503 
'	kStandardDrawingViewType = 10501 

&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Dec 2015 19:01:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-controls-in-drawing-files/m-p/5966471#M106767</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2015-12-28T19:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic drawing view controls in drawing files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-controls-in-drawing-files/m-p/5966474#M106768</link>
      <description>&lt;P&gt;Here's another example that turns off sections arrows/lines for sections views:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oDrawDoc As DrawingDocument
 oDrawDoc = ThisApplication.ActiveDocument

Dim oSheet As Sheet
oSheet = oDrawDoc.ActiveSheet

' select drawing views on active sheet
Dim oDrawView As DrawingView

For Each oDrawView In oSheet.DrawingViews	
	'look for section views
	If oDrawView.ViewType = DrawingViewTypeEnum.kSectionDrawingViewType Then
		'turn off section view annotations
		oDrawView.DisplayDefinitionInBase = False
	End If
Next&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Dec 2015 19:12:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-controls-in-drawing-files/m-p/5966474#M106768</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2015-12-28T19:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic drawing view controls in drawing files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-controls-in-drawing-files/m-p/5966480#M106769</link>
      <description>&lt;P&gt;This worked perfectly and was exactly what I was looking for. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2015 19:14:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-controls-in-drawing-files/m-p/5966480#M106769</guid>
      <dc:creator>tonychristman4915</dc:creator>
      <dc:date>2015-12-28T19:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic drawing view controls in drawing files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-controls-in-drawing-files/m-p/9363638#M106770</link>
      <description>&lt;P&gt;Hi Curtis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been looking for a way to change the Model State of a DrawingView object. I can't find any settings in the object browser. Any chance I am missing it under an obscure name?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I half expect it to look something like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim oDrawView As DrawingView&lt;BR /&gt;oDrawView.ModelState = "Machining"&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lance Skelly&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 18:33:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-controls-in-drawing-files/m-p/9363638#M106770</guid>
      <dc:creator>LSKELLY</dc:creator>
      <dc:date>2020-03-06T18:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic drawing view controls in drawing files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-controls-in-drawing-files/m-p/9363752#M106771</link>
      <description>&lt;P&gt;Don't worry I found it. The following snippet illustrates how to change the Model State of a weldment view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Create View&lt;/SPAN&gt;
&lt;SPAN&gt;oBaseView&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;AddBaseView&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;oPartDoc&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;oPoint1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;ViewScale&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;ViewOrientationTypeEnum&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;kIsoTopRightViewOrientation&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;DrawingViewStyleEnum&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;kHiddenLineRemovedDrawingViewStyle&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
                
&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;View Settings&lt;/SPAN&gt;
&lt;SPAN&gt;oBaseView&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;DisplayForeshortenedTangentEdges&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;True&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oPartDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;DocumentSubType&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;DocumentSubTypeID&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;{28EC8354-9024-440F-A8A2-0E0E55D635B0}&lt;/SPAN&gt;&lt;SPAN&gt;" 'If Weldment&lt;/SPAN&gt;
&lt;SPAN&gt;    oBaseView&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;SetWeldmentState&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;WeldmentStateEnum&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;kMachiningWeldmentState&lt;/SPAN&gt;&lt;SPAN&gt;)&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;</description>
      <pubDate>Fri, 06 Mar 2020 19:31:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-controls-in-drawing-files/m-p/9363752#M106771</guid>
      <dc:creator>LSKELLY</dc:creator>
      <dc:date>2020-03-06T19:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic drawing view controls in drawing files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-controls-in-drawing-files/m-p/11998531#M153259</link>
      <description>&lt;P&gt;HI Guts,&lt;/P&gt;&lt;P&gt;Making the view is one thing, put how do I access the (Welds Model State) and the (Welds components) in that view to Make Dimensions on named Faces using ILogic. I can make Dimensions for the (Assembly Model State) and its Components). ........&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 13:34:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-controls-in-drawing-files/m-p/11998531#M153259</guid>
      <dc:creator>dbushDQ3RE</dc:creator>
      <dc:date>2023-05-30T13:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic drawing view controls in drawing files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-controls-in-drawing-files/m-p/11998656#M153262</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9290335"&gt;@dbushDQ3RE&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would suggest to make a new post as this original post is solved and relates to a very generic question "iLogic drawing view controls in drawing files"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your question relates to multiple questions each likely deserving its own post due to there complications.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 14:18:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-controls-in-drawing-files/m-p/11998656#M153262</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2023-05-30T14:18:29Z</dc:date>
    </item>
  </channel>
</rss>

