Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
raymaster
in reply to: WCrihfield

thanks @WCrihfield  this is exactly what I was looking for, but I could not find the right API object to change the "model state" within the base "view".

the functions I look for:

1. duplicate the current sheet 

2. change the "model state" within the existing "view"

3. update the name of the sheet upon the partnumber like so:

	Dim drwDoc As Inventor.DrawingDocument = ThisDrawing.Document
	Dim drwSht As Inventor.Sheet
	
	For Each drwSht In drwDoc.Sheets
		Dim dRef As Inventor.Document = drwSht.DrawingViews.Item(1).ReferencedDocumentDescriptor.ReferencedDocument
		Dim pNum As String = dRef.PropertySets.Item(3).Item( "part number").Value
		drwSht.Name = pNum
	Next