<?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 Drawing View Label Position not working with Flat Pattern views? in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-label-position-not-working-with-flat-pattern/m-p/9018324#M101172</link>
    <description>&lt;P&gt;Hey sorry, in testing it again i've discovered that on the specific drawing sheet I was using it had the information as text on a sketch attached to the view, not using the view label.&lt;/P&gt;&lt;P&gt;I've tried it again on a fresh drawing and it's working fine... False alarm!&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2019 07:43:56 GMT</pubDate>
    <dc:creator>andrew.tom.reynolds</dc:creator>
    <dc:date>2019-09-11T07:43:56Z</dc:date>
    <item>
      <title>iLogic Drawing View Label Position not working with Flat Pattern views?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-label-position-not-working-with-flat-pattern/m-p/9017958#M101165</link>
      <description>&lt;P&gt;I'm using a few short lines of iLogic to update my flat pattern drawing views from a configurable model and I was wondering why i couldn't get it to work. Then I tested it on an assembly drawing and then on a drawing with the folded parts and it works fine. It seems that it doesn't work on views which are flat patterns!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original info came from here: &lt;A href="https://forums.autodesk.com/t5/inventor-customization/drawing-view-label-position-with-ilogic/m-p/6411373#M65111" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/drawing-view-label-position-with-ilogic/m-p/6411373#M65111&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me with some alternative that will work with flat patterns, or is this a bug??&lt;/P&gt;&lt;PRE&gt;Dim oDoc As DrawingDocument
oDoc = ThisApplication.ActiveDocument

Dim oSheet As Sheet
oSheet = oDoc.ActiveSheet

Dim mDocQty As Double

Dim mDoc As Document

For Each oView As DrawingView In oSheet.DrawingViews
	mDoc = oView.ReferencedDocumentDescriptor.ReferencedDocument
	mDocQty = mDoc.PropertySets.Item("Inventor User Defined Properties").Item("QTY").Value 
	
	wPoint = ThisApplication.TransientGeometry.CreatePoint2d(oView.Center.X, oView.Center.Y)		
	oView.Label.Position = wPoint
	
	If mDocQty = 0 Then
		oView.Suppressed = True
	Else 
		oView.Suppressed = False
	End If 
Next&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 03:16:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-label-position-not-working-with-flat-pattern/m-p/9017958#M101165</guid>
      <dc:creator>andrew.tom.reynolds</dc:creator>
      <dc:date>2019-09-11T03:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Drawing View Label Position not working with Flat Pattern views?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-label-position-not-working-with-flat-pattern/m-p/9018201#M101169</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6131001"&gt;@andrew.tom.reynolds&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested the code and it works on flat pattern views for me. Given that the sheet metal part has a custom iProperty called "QTY". I'm running inventor 2020.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you saying that it works for a view of a folded sheetmetal part but not for the flat pattern view of the same part?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 06:40:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-label-position-not-working-with-flat-pattern/m-p/9018201#M101169</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2019-09-11T06:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Drawing View Label Position not working with Flat Pattern views?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-label-position-not-working-with-flat-pattern/m-p/9018324#M101172</link>
      <description>&lt;P&gt;Hey sorry, in testing it again i've discovered that on the specific drawing sheet I was using it had the information as text on a sketch attached to the view, not using the view label.&lt;/P&gt;&lt;P&gt;I've tried it again on a fresh drawing and it's working fine... False alarm!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 07:43:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-drawing-view-label-position-not-working-with-flat-pattern/m-p/9018324#M101172</guid>
      <dc:creator>andrew.tom.reynolds</dc:creator>
      <dc:date>2019-09-11T07:43:56Z</dc:date>
    </item>
  </channel>
</rss>

