<?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 TURN OFF VISIBILITY OFF ALL PARTS IN AN AREA in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/turn-off-visibility-off-all-parts-in-an-area/m-p/8253964#M84568</link>
    <description>&lt;P&gt;Greetings All,&lt;/P&gt;&lt;P&gt;I am just getting into iLogic and am wondering if anyone has some suggestions for what I'm working on.&lt;/P&gt;&lt;P&gt;Object:&lt;/P&gt;&lt;P&gt;I often re-size this "box" from 20'x50' to 10'x20' &amp;amp; everything in between.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I've found that letting the extra stiffeners that are used in the larger configuration but not in the shorter models, stay in the model and just turning off their visibility give me the most re-usable drawing files.&lt;/P&gt;&lt;P&gt;Where as if I control the number of these it's by use of fx in the patterns, I loose my drawing annotations whenever I increase the size.&amp;nbsp; (When I decrease the size they work fine)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on how I can get all parts withing a preset fx bounding box, that will change size with my box?&lt;/P&gt;&lt;P&gt;Here is a picture showing going from a 50' long box to a 33' long box.&lt;/P&gt;&lt;P&gt;I simply want to easily turn off the visibility of the now extra stiffeners.&lt;/P&gt;&lt;P&gt;My model parameters are all set up and running well, just looking for the link to iLogic, or possibly VBA that would help with the visibility.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TURN OFF VIS INSIDE AREA.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/543839iF6FB8D4E6E051423/image-size/large?v=v2&amp;amp;px=999" role="button" title="TURN OFF VIS INSIDE AREA.jpg" alt="TURN OFF VIS INSIDE AREA.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Sep 2018 20:50:49 GMT</pubDate>
    <dc:creator>ferrisb</dc:creator>
    <dc:date>2018-09-07T20:50:49Z</dc:date>
    <item>
      <title>TURN OFF VISIBILITY OFF ALL PARTS IN AN AREA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/turn-off-visibility-off-all-parts-in-an-area/m-p/8253964#M84568</link>
      <description>&lt;P&gt;Greetings All,&lt;/P&gt;&lt;P&gt;I am just getting into iLogic and am wondering if anyone has some suggestions for what I'm working on.&lt;/P&gt;&lt;P&gt;Object:&lt;/P&gt;&lt;P&gt;I often re-size this "box" from 20'x50' to 10'x20' &amp;amp; everything in between.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I've found that letting the extra stiffeners that are used in the larger configuration but not in the shorter models, stay in the model and just turning off their visibility give me the most re-usable drawing files.&lt;/P&gt;&lt;P&gt;Where as if I control the number of these it's by use of fx in the patterns, I loose my drawing annotations whenever I increase the size.&amp;nbsp; (When I decrease the size they work fine)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on how I can get all parts withing a preset fx bounding box, that will change size with my box?&lt;/P&gt;&lt;P&gt;Here is a picture showing going from a 50' long box to a 33' long box.&lt;/P&gt;&lt;P&gt;I simply want to easily turn off the visibility of the now extra stiffeners.&lt;/P&gt;&lt;P&gt;My model parameters are all set up and running well, just looking for the link to iLogic, or possibly VBA that would help with the visibility.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TURN OFF VIS INSIDE AREA.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/543839iF6FB8D4E6E051423/image-size/large?v=v2&amp;amp;px=999" role="button" title="TURN OFF VIS INSIDE AREA.jpg" alt="TURN OFF VIS INSIDE AREA.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 20:50:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/turn-off-visibility-off-all-parts-in-an-area/m-p/8253964#M84568</guid>
      <dc:creator>ferrisb</dc:creator>
      <dc:date>2018-09-07T20:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: TURN OFF VISIBILITY OFF ALL PARTS IN AN AREA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/turn-off-visibility-off-all-parts-in-an-area/m-p/8260100#M84569</link>
      <description>&lt;P&gt;I have a couple ideas but first I want to ask...&lt;/P&gt;&lt;P&gt;1: Would you be opposed to your model only expanding in one direction? IE. the front face of your model is always on the front plane and the back side of your model will grow and shrink.&lt;/P&gt;&lt;P&gt;2: Are there parts that are on the left or right that will be in your bounding box or will all parts always be to the front or back?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 13:28:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/turn-off-visibility-off-all-parts-in-an-area/m-p/8260100#M84569</guid>
      <dc:creator>clutsa</dc:creator>
      <dc:date>2018-09-11T13:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: TURN OFF VISIBILITY OFF ALL PARTS IN AN AREA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/turn-off-visibility-off-all-parts-in-an-area/m-p/8260186#M84570</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/456685"&gt;@ferrisb&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Are you using a pattern for this, or are these parts placed independent?&lt;/P&gt;&lt;P&gt;if you can use a pattern then you can define the Qty of the pattern by the length of the ducting.&lt;/P&gt;&lt;P&gt;do you understand what I suggest?&lt;/P&gt;&lt;P&gt;this is the easiest way and without coding.&lt;/P&gt;&lt;P&gt;but I don't know if this will work for you.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Autodesk Software:&lt;/STRONG&gt; Inventor Professional 2018 | Vault Professional 2018 | Autocad Mechanical 2018&lt;BR /&gt;&lt;STRONG&gt;Programming Skills:&lt;/STRONG&gt; Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/dimension-component-part-and-assembly/idi-p/7523011" target="_blank"&gt;Dimension Component!&lt;/A&gt; | &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/export-partlist-default-configuration/idc-p/7422221#M21416" target="_blank"&gt;Partlist Export!&lt;/A&gt; | &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/derived-part-and-assembly-copy-i-properties/idi-p/6349392" target="_blank"&gt;Derive I-properties!&lt;/A&gt; | &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/inventor-vault-prompts-settings-amp-vault-prompts-settings-via/idi-p/7641767" target="_blank"&gt;Vault Prompts Via API!&lt;/A&gt; | &lt;A href="https://forums.autodesk.com/t5/vault-ideas/vault-professional-handbook-or-manual-to-be-provided/idi-p/7653669" target="_blank"&gt;Vault Handbook/Manual!&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/drawing-toggle-sheets/idi-p/7708757" target="_blank"&gt;Drawing Toggle Sheets!&lt;/A&gt; | &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/open-files-automatically-with-quot-defer-update-quot-on-read/idi-p/7762709" target="_blank"&gt;Vault Defer Update!&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;! For administrative reasons, please mark a &lt;STRONG&gt;"Solution as solved"&lt;/STRONG&gt; when the issue is solved !&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 13:57:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/turn-off-visibility-off-all-parts-in-an-area/m-p/8260186#M84570</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-09-11T13:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: TURN OFF VISIBILITY OFF ALL PARTS IN AN AREA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/turn-off-visibility-off-all-parts-in-an-area/m-p/8266139#M84571</link>
      <description>&lt;P&gt;Thanks Branden.&lt;/P&gt;&lt;P&gt;Yes, I think I follow and agree with you.&lt;/P&gt;&lt;P&gt;Yes, they are patterns.&amp;nbsp; Normally I just set the pattern to qty=OAL-or-OAW / STIFF_SPACE.&lt;/P&gt;&lt;P&gt;Where OAL, OAW &amp;amp; STIFF_SPACE are my preset parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works awesome for the model end of the deal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I use this method and resize the box, I loose all drawing annotations when I increase size.&lt;/P&gt;&lt;P&gt;Deceasing size is fine, because the dims just fall off the drawing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've found that the visibility toggle, will hold the annotations on the drawing when I upsize my project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 15:29:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/turn-off-visibility-off-all-parts-in-an-area/m-p/8266139#M84571</guid>
      <dc:creator>ferrisb</dc:creator>
      <dc:date>2018-09-13T15:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: TURN OFF VISIBILITY OFF ALL PARTS IN AN AREA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/turn-off-visibility-off-all-parts-in-an-area/m-p/8267179#M84572</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks Clutsa.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#008080"&gt;1: Would you be opposed to your model only expanding in one direction? IE. the front face of your model is always on the front plane and the back side of your model will grow and shrink.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;*I think the model needs to grow evenly in both directions do to the way some of the internals work.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#008080"&gt;2: Are there parts that are on the left or right that will be in your bounding box or will all parts always be to the front or back?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#000000"&gt;&lt;SPAN&gt;*Nope, when I resize my box, I just want everything inside of it to "visibility on" and all else to "visibility off"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 22:28:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/turn-off-visibility-off-all-parts-in-an-area/m-p/8267179#M84572</guid>
      <dc:creator>ferrisb</dc:creator>
      <dc:date>2018-09-13T22:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: TURN OFF VISIBILITY OFF ALL PARTS IN AN AREA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/turn-off-visibility-off-all-parts-in-an-area/m-p/8268889#M84573</link>
      <description>&lt;P&gt;I threw this together but it will need tweaks to match your situation. This base idea is to create a zone to keep (your inside rectangle) and remove anything that is outside that. Use your parameters to set the keep zone and pass those into the TargetAreaMax/Min (I think those are defaulting to cm right now so do math to convert your zone to cm)&lt;/P&gt;&lt;P&gt;Note: I also use the center of the part to find it's place in the assembly. The part may enter or exit the zone... I'm only looking at the center of the part (that might make it feel like its not working at first... just keep playing with is)&lt;/P&gt;&lt;PRE&gt;Sub VisByLoc()
Dim app As Application
Dim Doc As AssemblyDocument
Dim CompDef As ComponentDefinition
Dim tg As TransientGeometry

Set app = ThisApplication
Set Doc = app.ActiveDocument
Set CompDef = Doc.ComponentDefinition
Set tg = app.TransientGeometry
Dim CenterPoint As Point
Dim TargetAreaMax As Point
Dim TargetAreaMin As Point
Set TargetAreaMax = tg.CreatePoint(100, 150, 100) 'find way to set this yourself
Set TargetAreaMin = tg.CreatePoint(-100, -100, -100) 'find way to set this yourself


For Each occ In CompDef.Occurrences
    Set CenterPoint = FindCenterPoint(occ.RangeBox.MaxPoint, occ.RangeBox.MinPoint)
    If OutsideArea(CenterPoint, TargetAreaMax, TargetAreaMin) = True Then
        Debug.Print (occ.Name &amp;amp; " = Show")
        occ.Visible = True
        'occ.Excluded = False 'play with this too it may work nice with your BOM and your drawing
    Else
        Debug.Print (occ.Name &amp;amp; " = Hide")
        occ.Visible = False
        'occ.Excluded = True 'play with this too
    End If
    'Debug.Print (occ.Name &amp;amp; " - Length: " &amp;amp; occ.Transformation.Translation.Length &amp;amp; " - X: " &amp;amp; occ.Transformation.Translation.x &amp;amp; " - Y: " &amp;amp; occ.Transformation.Translation.y &amp;amp; " - Z: " &amp;amp; occ.Transformation.Translation.Z)
Next


End Sub
Function OutsideArea(CenterPoint As Point, MaxPoint As Point, MinPoint As Point) As Boolean
    Dim OutsideX As Boolean
    Dim OutsideY As Boolean
    Dim OutsideZ As Boolean
    If CenterPoint.x &amp;gt; MaxPoint.x Or CenterPoint.x &amp;lt; MinPoint.x Then
        OutsideX = True
    End If
    If CenterPoint.y &amp;gt; MaxPoint.y Or CenterPoint.y &amp;lt; MinPoint.y Then
        OutsideY = True
    End If
    If CenterPoint.Z &amp;gt; MaxPoint.Z Or CenterPoint.Z &amp;lt; MinPoint.Z Then
        OutsideZ = True
    End If
    If OutsideX + OutsideY + OutsideZ = 0 Then OutsideArea = True Else OutsideArea = False
End Function
Function FindCenterPoint(MaxPoint As Point, MinPoint As Point) As Point
    Dim CenterX As Double
    Dim CenterY As Double
    Dim CenterZ As Double
    CenterX = ((MaxPoint.x - MinPoint.x) / 2) + MinPoint.x
    CenterY = ((MaxPoint.y - MinPoint.y) / 2) + MinPoint.y
    CenterZ = ((MaxPoint.Z - MinPoint.Z) / 2) + MinPoint.Z
    Set tg = ThisApplication.TransientGeometry
    Set FindCenterPoint = tg.CreatePoint(CenterX, CenterY, CenterZ)
End Function&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;FYI this is VBA code (as is, I don't believe this will run in iLogic)&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 15:24:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/turn-off-visibility-off-all-parts-in-an-area/m-p/8268889#M84573</guid>
      <dc:creator>clutsa</dc:creator>
      <dc:date>2018-09-14T15:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: TURN OFF VISIBILITY OFF ALL PARTS IN AN AREA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/turn-off-visibility-off-all-parts-in-an-area/m-p/8269292#M84574</link>
      <description>&lt;P&gt;Awesome.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 18:18:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/turn-off-visibility-off-all-parts-in-an-area/m-p/8269292#M84574</guid>
      <dc:creator>ferrisb</dc:creator>
      <dc:date>2018-09-14T18:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: TURN OFF VISIBILITY OFF ALL PARTS IN AN AREA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/turn-off-visibility-off-all-parts-in-an-area/m-p/8313772#M84575</link>
      <description>&lt;P&gt;FYI Here's a link to a post with similar objective.&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/ilogic-or-vba-to-select-via-quot-component-offset-quot-the-quot/m-p/8311233/highlight/false#M89644" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/ilogic-or-vba-to-select-via-quot-component-offset-quot-the-quot/m-p/8311233/highlight/false#M89644&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: didn't notice this was for the same person. LOL sorry&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 18:44:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/turn-off-visibility-off-all-parts-in-an-area/m-p/8313772#M84575</guid>
      <dc:creator>clutsa</dc:creator>
      <dc:date>2018-10-04T18:44:29Z</dc:date>
    </item>
  </channel>
</rss>

