<?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: Speed up .idw's by turning off visibility based on idw view in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/speed-up-idw-s-by-turning-off-visibility-based-on-idw-view/m-p/5601598#M55458</link>
    <description>Would this be accomplished best by using pulling a matrix from the drawing view and applying that to the model, or is this better just copying the eye and target information of the camera and using that?&lt;BR /&gt;&lt;BR /&gt;Any assistance in this area specifically would be a ton of help!</description>
    <pubDate>Tue, 21 Apr 2015 16:34:29 GMT</pubDate>
    <dc:creator>MechMachineMan</dc:creator>
    <dc:date>2015-04-21T16:34:29Z</dc:date>
    <item>
      <title>Speed up .idw's by turning off visibility based on idw view</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/speed-up-idw-s-by-turning-off-visibility-based-on-idw-view/m-p/5601566#M55457</link>
      <description>&lt;P&gt;Is there a way/would it be smart to create a program that would:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Use a drawing view in an .idw.&lt;/P&gt;&lt;P&gt;2. Pulls it's orientation/style (Hidden Lines, etc)&lt;/P&gt;&lt;P&gt;3. Use this orientation in the drawing to create a view in the model&lt;/P&gt;&lt;P&gt;4. In this model view, hide all parts that are not in camera (if the view doesn't use hidden lines/has no cut-aways)&lt;/P&gt;&lt;P&gt;5. Set this new view (possibly a temporary view as to not make the model messy) as the design view for the view it was based upon?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternate: Use the drawing view and hide all parts that do not have visible lines in the specified drawing view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do this using camera information?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to make sense as I have heard that drawing will not load parts that are not visible, and thus will maybe save time in mroe complex assemblies/documents.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems weird how inventor always wants to access all of the information pertaining to a drawing, rather than just speeding the process up immensely by allowing a mode where drawings can just become static objects, such as "suppress view/model link".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts would help, thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 16:13:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/speed-up-idw-s-by-turning-off-visibility-based-on-idw-view/m-p/5601566#M55457</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-04-21T16:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up .idw's by turning off visibility based on idw view</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/speed-up-idw-s-by-turning-off-visibility-based-on-idw-view/m-p/5601598#M55458</link>
      <description>Would this be accomplished best by using pulling a matrix from the drawing view and applying that to the model, or is this better just copying the eye and target information of the camera and using that?&lt;BR /&gt;&lt;BR /&gt;Any assistance in this area specifically would be a ton of help!</description>
      <pubDate>Tue, 21 Apr 2015 16:34:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/speed-up-idw-s-by-turning-off-visibility-based-on-idw-view/m-p/5601598#M55458</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-04-21T16:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up .idw's by turning off visibility based on idw view</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/speed-up-idw-s-by-turning-off-visibility-based-on-idw-view/m-p/5601651#M55459</link>
      <description>&lt;P&gt;The untested code I have so far is:&lt;/P&gt;&lt;PRE&gt;Dim oView As DrawingView
Dim oViewDoc As Document
Dim oDoc As Document
Dim oCommandMgr As CommandManager
oCommandMgr = ThisApplication.CommandManager

oView=ThisApplication.CommandManager.Pick(SelectionFilterEnum.kDrawingViewFilter, "Select the base view")
oViewDoc = oView.ReferencedDocumentDescriptor.ReferencedDocument

Dim oEye As Point
'Dim oTarget As Point
Dim oUpVector As UnitVector

Dim oViewCam As Camera 
oViewCam = oView.Camera

oEye = oViewCam.Eye() 
'oTarge = oViewCam.Target()
oUpVector = oViewCam.UpVector()

oDoc = ThisApplication.Documents.Open(oViewDoc.FullDocumentName, True)
oDoc.Activate




oNewView = oDoc.RepresentationsManager.DesignViewRepresentations.Add()
oNewView.Activate
oNewViewCam = oNewView.Camera
With oNewViewCam
	.Eye = oEye
	.UpVector = oUpVector
	.Fit
	.Apply
End With
oNewView.SaveCurrentCamera
oNewView.Update

Dim oControlDef1 As ControlDefinition
 oControlDef1 = oCommandMgr.ControlDefinitions.Item("AssemblyVisibilityCheckerCmdAllInCamera")
oControlDef1.Execute

Dim oControlDef2 As ControlDefinition
 oControlDef2 = oCommandMgr.ControlDefinitions.Item("AssemblyEnhSelInvertCmd")
oControlDef2.Execute

oNewView.SaveCurrentCamera

'oNewView.SetVisibilityOfOccurrences(Occurrences As ObjectCollection, Visible As Boolean)
oNewView.Locked = True
oNewView.Update&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I don't know how I Access the Selection Set Produced By the Control Defintions. Any easy way to do this?&lt;/P&gt;&lt;P&gt;And is it better or easier to use this view to set visibility, or to just do it manuall then?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 17:16:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/speed-up-idw-s-by-turning-off-visibility-based-on-idw-view/m-p/5601651#M55459</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-04-21T17:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up .idw's by turning off visibility based on idw view</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/speed-up-idw-s-by-turning-off-visibility-based-on-idw-view/m-p/5601780#M55461</link>
      <description>I tried that chunk of code, but all there is is an X coordinate for the eye from the drawing, and it does not populate the other 2, but instead throws an error.</description>
      <pubDate>Tue, 21 Apr 2015 18:51:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/speed-up-idw-s-by-turning-off-visibility-based-on-idw-view/m-p/5601780#M55461</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-04-21T18:51:32Z</dc:date>
    </item>
  </channel>
</rss>

