<?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: IDW DrawingView Visibility in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/idw-drawingview-visibility/m-p/1765460#M157344</link>
    <description>Bummer.  I guess I'll have to resort to removing the view and adding it back in when I actually need it through the API.&lt;BR /&gt;
&lt;BR /&gt;
Since my IDW already contains the view I want to make, I will add the existing view data to a new collection containing the parts required for the AddProjectedView function.&lt;BR /&gt;
&lt;BR /&gt;
Then delete the view when not needed and add it back when needed by using the collection data.&lt;BR /&gt;
&lt;BR /&gt;
I plan on using this to add the view back:&lt;BR /&gt;
Public Function AddProjectedView( _&lt;BR /&gt;
   ByVal ParentView (from collection) As DrawingView, _&lt;BR /&gt;
   ByVal PlacementPoint(from collection) As Point2d, _&lt;BR /&gt;
   ByVal ViewStyle(from collection) As DrawingViewStyleEnum, _&lt;BR /&gt;
   Optional ByVal Scale(from collection) As Variant _&lt;BR /&gt;
) As DrawingView&lt;BR /&gt;
&lt;BR /&gt;
Do you see any flaw in my logic or have a better recommendation on how to resolve this?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Brian</description>
    <pubDate>Mon, 18 Sep 2006 13:40:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-09-18T13:40:33Z</dc:date>
    <item>
      <title>IDW DrawingView Visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/idw-drawingview-visibility/m-p/1765458#M157342</link>
      <description>I want to only show a view on my IDW when a Drill&amp;amp;Tap Hole is present and hide it at other times.&lt;BR /&gt;
&lt;BR /&gt;
There are 2 named views on this particular drawing sheet:&lt;BR /&gt;
"View1" , the base view&lt;BR /&gt;
"TapEndView", the projected view of the shaft end of "View1"&lt;BR /&gt;
&lt;BR /&gt;
Why does this code set not work?  I assume that I'm setting the Object wrong for the Get/SetVisibility.&lt;BR /&gt;
&lt;BR /&gt;
Dim oDrawingView As DrawingView&lt;BR /&gt;
    &lt;BR /&gt;
Select Case oUOM.GetValueFromExpression oTableParams.Item("Style").Value, kUnitlessUnits)&lt;BR /&gt;
        Case 1&lt;BR /&gt;
            'Debug.Print "Turn on IDW Sheet 1"&lt;BR /&gt;
            oSheet(1).Activate&lt;BR /&gt;
            If oUOM.ConvertUnits(oTableParams.Item("tapholediameter").Value, kDatabaseLengthUnits, kInchLengthUnits) &amp;gt; 0 Then&lt;BR /&gt;
                'Set Tap End View as Visible&lt;BR /&gt;
                For i = 1 To oSheet(1).DrawingViews.Count&lt;BR /&gt;
                    If oSheet(1).DrawingViews(i).Name = "TapEndView" Then&lt;BR /&gt;
                        Set oDrawingView = oSheet(1).DrawingViews(i)&lt;BR /&gt;
                        Call oSheet(1).DrawingViews(i).GetVisibility(oDrawingView)&lt;BR /&gt;
                        Call oSheet(1).DrawingViews(i).SetVisibility(oDrawingView, True)&lt;BR /&gt;
                    End If&lt;BR /&gt;
                Next&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Brian</description>
      <pubDate>Fri, 15 Sep 2006 14:36:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/idw-drawingview-visibility/m-p/1765458#M157342</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-15T14:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: IDW DrawingView Visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/idw-drawingview-visibility/m-p/1765459#M157343</link>
      <description>The GetVisibility and SetVisibility methods on a drawing view can only be &lt;BR /&gt;
used to control the visibility of certain objects (sketches, 3d sketches, &lt;BR /&gt;
components and surface features) within a drawing view. They do not control &lt;BR /&gt;
the visibility of the drawing view itself. The API does not provide the &lt;BR /&gt;
ability to hide the entire view (this functionality doesn't currently exist &lt;BR /&gt;
in the product either).&lt;BR /&gt;
&lt;BR /&gt;
A possible workaround, if you are on R11, is to get all the drawing curves &lt;BR /&gt;
in the view and turn their visibility off. You would also need to turn off &lt;BR /&gt;
the visibility of drawing dimensions and weld symbols. There aren't formal &lt;BR /&gt;
APIs to hide dimensions and symbols, but you may be able to workaround that &lt;BR /&gt;
by driving the UI command via the API.&lt;BR /&gt;
&lt;BR /&gt;
Sanjay-&lt;BR /&gt;
&lt;BR /&gt;
&lt;BSARDESON&gt; wrote in message news:5330543@discussion.autodesk.com...&lt;BR /&gt;
I want to only show a view on my IDW when a Drill&amp;amp;Tap Hole is present and &lt;BR /&gt;
hide it at other times.&lt;BR /&gt;
&lt;BR /&gt;
There are 2 named views on this particular drawing sheet:&lt;BR /&gt;
"View1" , the base view&lt;BR /&gt;
"TapEndView", the projected view of the shaft end of "View1"&lt;BR /&gt;
&lt;BR /&gt;
Why does this code set not work?  I assume that I'm setting the Object wrong &lt;BR /&gt;
for the Get/SetVisibility.&lt;BR /&gt;
&lt;BR /&gt;
Dim oDrawingView As DrawingView&lt;BR /&gt;
&lt;BR /&gt;
Select Case oUOM.GetValueFromExpression oTableParams.Item("Style").Value, &lt;BR /&gt;
kUnitlessUnits)&lt;BR /&gt;
        Case 1&lt;BR /&gt;
            'Debug.Print "Turn on IDW Sheet 1"&lt;BR /&gt;
            oSheet(1).Activate&lt;BR /&gt;
            If oUOM.ConvertUnits(oTableParams.Item("tapholediameter").Value, &lt;BR /&gt;
kDatabaseLengthUnits, kInchLengthUnits) &amp;gt; 0 Then&lt;BR /&gt;
                'Set Tap End View as Visible&lt;BR /&gt;
                For i = 1 To oSheet(1).DrawingViews.Count&lt;BR /&gt;
                    If oSheet(1).DrawingViews(i).Name = "TapEndView" Then&lt;BR /&gt;
                        Set oDrawingView = oSheet(1).DrawingViews(i)&lt;BR /&gt;
                        Call &lt;BR /&gt;
oSheet(1).DrawingViews(i).GetVisibility(oDrawingView)&lt;BR /&gt;
                        Call &lt;BR /&gt;
oSheet(1).DrawingViews(i).SetVisibility(oDrawingView, True)&lt;BR /&gt;
                    End If&lt;BR /&gt;
                Next&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Brian&lt;/BSARDESON&gt;</description>
      <pubDate>Fri, 15 Sep 2006 21:34:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/idw-drawingview-visibility/m-p/1765459#M157343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-15T21:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: IDW DrawingView Visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/idw-drawingview-visibility/m-p/1765460#M157344</link>
      <description>Bummer.  I guess I'll have to resort to removing the view and adding it back in when I actually need it through the API.&lt;BR /&gt;
&lt;BR /&gt;
Since my IDW already contains the view I want to make, I will add the existing view data to a new collection containing the parts required for the AddProjectedView function.&lt;BR /&gt;
&lt;BR /&gt;
Then delete the view when not needed and add it back when needed by using the collection data.&lt;BR /&gt;
&lt;BR /&gt;
I plan on using this to add the view back:&lt;BR /&gt;
Public Function AddProjectedView( _&lt;BR /&gt;
   ByVal ParentView (from collection) As DrawingView, _&lt;BR /&gt;
   ByVal PlacementPoint(from collection) As Point2d, _&lt;BR /&gt;
   ByVal ViewStyle(from collection) As DrawingViewStyleEnum, _&lt;BR /&gt;
   Optional ByVal Scale(from collection) As Variant _&lt;BR /&gt;
) As DrawingView&lt;BR /&gt;
&lt;BR /&gt;
Do you see any flaw in my logic or have a better recommendation on how to resolve this?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Brian</description>
      <pubDate>Mon, 18 Sep 2006 13:40:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/idw-drawingview-visibility/m-p/1765460#M157344</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-18T13:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: IDW DrawingView Visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/idw-drawingview-visibility/m-p/1765461#M157345</link>
      <description>Deleting and recreating the view does mean that you'll lose any annotations &lt;BR /&gt;
(dimensions, centermarks, feature control frames, etc.) attached to the &lt;BR /&gt;
view. If this is acceptable to you, it seems like you should be able to use &lt;BR /&gt;
this approach for now. If this is not acceptable, you'll need to look into &lt;BR /&gt;
hiding drawing edges, dimensions, etc. as I mentioned before.&lt;BR /&gt;
&lt;BR /&gt;
Sanjay-&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BSARDESON&gt; wrote in message news:5332467@discussion.autodesk.com...&lt;BR /&gt;
Bummer.  I guess I'll have to resort to removing the view and adding it back &lt;BR /&gt;
in when I actually need it through the API.&lt;BR /&gt;
&lt;BR /&gt;
Since my IDW already contains the view I want to make, I will add the &lt;BR /&gt;
existing view data to a new collection containing the parts required for the &lt;BR /&gt;
AddProjectedView function.&lt;BR /&gt;
&lt;BR /&gt;
Then delete the view when not needed and add it back when needed by using &lt;BR /&gt;
the collection data.&lt;BR /&gt;
&lt;BR /&gt;
I plan on using this to add the view back:&lt;BR /&gt;
Public Function AddProjectedView( _&lt;BR /&gt;
   ByVal ParentView (from collection) As DrawingView, _&lt;BR /&gt;
   ByVal PlacementPoint(from collection) As Point2d, _&lt;BR /&gt;
   ByVal ViewStyle(from collection) As DrawingViewStyleEnum, _&lt;BR /&gt;
   Optional ByVal Scale(from collection) As Variant _&lt;BR /&gt;
) As DrawingView&lt;BR /&gt;
&lt;BR /&gt;
Do you see any flaw in my logic or have a better recommendation on how to &lt;BR /&gt;
resolve this?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Brian&lt;/BSARDESON&gt;</description>
      <pubDate>Wed, 20 Sep 2006 23:51:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/idw-drawingview-visibility/m-p/1765461#M157345</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-20T23:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: IDW DrawingView Visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/idw-drawingview-visibility/m-p/1765462#M157346</link>
      <description>One other option might be to just move the view off of the sheet.  It will &lt;BR /&gt;
be ignored for most purposes and can just be moved back if you need it &lt;BR /&gt;
again.&lt;BR /&gt;
-- &lt;BR /&gt;
Brian Ekins&lt;BR /&gt;
Autodesk Inventor API&lt;BR /&gt;
&lt;BR /&gt;
"Sanjay Ramaswamy (Autodesk)" &lt;DISCUSSION.SUPPORT&gt; wrote in &lt;BR /&gt;
message news:5336298@discussion.autodesk.com...&lt;BR /&gt;
Deleting and recreating the view does mean that you'll lose any annotations&lt;BR /&gt;
(dimensions, centermarks, feature control frames, etc.) attached to the&lt;BR /&gt;
view. If this is acceptable to you, it seems like you should be able to use&lt;BR /&gt;
this approach for now. If this is not acceptable, you'll need to look into&lt;BR /&gt;
hiding drawing edges, dimensions, etc. as I mentioned before.&lt;BR /&gt;
&lt;BR /&gt;
Sanjay-&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BSARDESON&gt; wrote in message news:5332467@discussion.autodesk.com...&lt;BR /&gt;
Bummer.  I guess I'll have to resort to removing the view and adding it back&lt;BR /&gt;
in when I actually need it through the API.&lt;BR /&gt;
&lt;BR /&gt;
Since my IDW already contains the view I want to make, I will add the&lt;BR /&gt;
existing view data to a new collection containing the parts required for the&lt;BR /&gt;
AddProjectedView function.&lt;BR /&gt;
&lt;BR /&gt;
Then delete the view when not needed and add it back when needed by using&lt;BR /&gt;
the collection data.&lt;BR /&gt;
&lt;BR /&gt;
I plan on using this to add the view back:&lt;BR /&gt;
Public Function AddProjectedView( _&lt;BR /&gt;
   ByVal ParentView (from collection) As DrawingView, _&lt;BR /&gt;
   ByVal PlacementPoint(from collection) As Point2d, _&lt;BR /&gt;
   ByVal ViewStyle(from collection) As DrawingViewStyleEnum, _&lt;BR /&gt;
   Optional ByVal Scale(from collection) As Variant _&lt;BR /&gt;
) As DrawingView&lt;BR /&gt;
&lt;BR /&gt;
Do you see any flaw in my logic or have a better recommendation on how to&lt;BR /&gt;
resolve this?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Brian&lt;/BSARDESON&gt;&lt;/DISCUSSION.SUPPORT&gt;</description>
      <pubDate>Thu, 21 Sep 2006 20:40:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/idw-drawingview-visibility/m-p/1765462#M157346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-21T20:40:36Z</dc:date>
    </item>
  </channel>
</rss>

