01-31-2024
10:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-31-2024
10:01 PM
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