Message 1 of 3
iLogic Drawing View Label Position not working with Flat Pattern views?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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!
The original info came from here: https://forums.autodesk.com/t5/inventor-customization/drawing-view-label-position-with-ilogic/m-p/64...
Can anyone help me with some alternative that will work with flat patterns, or is this a bug??
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
Thanks!