View Identifier Modification Via iLogic - Parts List Properties

View Identifier Modification Via iLogic - Parts List Properties

joe_love-gunn
Contributor Contributor
101 Views
1 Reply
Message 1 of 2

View Identifier Modification Via iLogic - Parts List Properties

joe_love-gunn
Contributor
Contributor

Hi so I am testing a few things out in inventor iLogic and currently have developed a code to enable the view identifier on a drawing view and then modify the parameters being used in the view identifier.

 

Currently I am attempting to see if I can link the "Panel ID" Custom property to the view identifier and that works perfect however looking through the API there is no real help to find the internal name of the Parts List Properties set for the Format ID or if it is even possible to link the Parts list qty to be a live update in the view identifier without doing it manually in Inventor 2025. Does anyone know any more that maybe helpful.

'start of ilogic code
Dim oDoc As DrawingDocument:  oDoc = ThisDoc.Document

oSheets = oDoc.Sheets

For Each occ As DrawingView In oDoc.ActiveSheet.DrawingViews
	'Reference to the drawing view from the 1st selected object
	Dim oView As DrawingView = TryCast(occ, DrawingView)
	
	If oView IsNot Nothing Then	
	
		oView.ShowLabel = True
		
			'format the model iproperties	
			oPanelID = "<StyleOverride Underline='True'><Property Document='model' PropertySet='Inventor User Defined Properties' Property='Panel ID' FormatID='{D5CDD505-2E9C-101B-9397-08002B2CF9AE}' PropertyID='28'>PANEL ID</Property></StyleOverride>"
			oQty = "<StyleOverride Underline='True'> - QTY: <Property Document='model' PropertySet='Parts List Properties' Property='QTY' FormatID='{Unknown}' PropertyID='1'>QTY</Property></StyleOverride>"

			'add the custom iproperties to the view label
			oView.Label.FormattedText = oPanelID & oQty 

	End If
Next

'end of ilogic code
0 Likes
102 Views
1 Reply
Reply (1)
Message 2 of 2

WCrihfield
Mentor
Mentor

Hi @joe_love-gunn.  I highly doubt that it would be possible for a drawing view label to contain proper 'live link' pointer to the quantity specification of a specific line item in some PartsList somewhere in the drawing.  This is because a drawing view simply does not know what all may be shown within its camera portal.  The only 'model' a drawing view knows about is the document that it is directly referencing.

DrawingView.ReferencedDocumentDescriptor 

But it would not have any idea about identifying that referenced document as one of the line items in the parts list.

A Balloon, on the other hand, is being directly attached to a DrawingCurve, which directly represents something like a Face or Edge or Vertex in the views referenced model, so that it can pull that data through that association, with that type of object being designed specifically for being associated with the PartsList, so we can create a 'split' Balloon, where the other indicator in it, besides the Item Number, can be the Quantity.  You can try creating a Balloon like that, then dig into it in an attempt to extract its properties, but I suspect it still would not work, due to object type differences and the lack of object connections.  It would not be found in the Balloon.BalloonValueSets though, because that is just for the standard data in this, and other attached balloons.  And it would not be found through the BalloonValueSet.ReferencedRow because those BOM cells just contain 'values', not formatted text for Links.

XML Tags for FormattedText 

BalloonStyle 

BalloonStyle.BalloonType (kCircularWithTwoEntriesBalloonType or kSketchedSymbolBalloonType)

BalloonStyle.Properties 

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)