Inventor iLogic Sheet List

Inventor iLogic Sheet List

pfray
Explorer Explorer
293 Views
2 Replies
Message 1 of 3

Inventor iLogic Sheet List

pfray
Explorer
Explorer

I am looking for a way to create a I logic rule to auto generate a sheet list table. Is this possible through iLogic? If so can someone help with that or point me to a place where i can figure it out?  Thank You. 

0 Likes
294 Views
2 Replies
Replies (2)
Message 2 of 3

Curtis_Waguespack
Consultant
Consultant

Hi @pfray 

 

Here is a basic iLogic script to do this.

 

Here is a link to another example: 

https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-sheet-revision-sheet-number-and-sh...

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

 

 

Dim oDoc As DrawingDocument = ThisDoc.Document
Dim oSheets As Sheets = oDoc.Sheets
Dim oSheet As Sheet = oSheets.Item(1)
oSheet.Activate

Dim oPoint As Point2d
oPoint = ThisApplication.TransientGeometry.CreatePoint2d(
oSheet.Border.RangeBox.MinPoint.X, oSheet.Border.RangeBox.MaxPoint.Y)

Dim oSheetNames As New List(Of String)
For Each sh As Sheet In oSheets : oSheetNames.Add(sh.Name) : Next

Dim oTables As CustomTables = oSheet.CustomTables
If oTables.Count = 1 Then oTables.Item(1).Delete 'delete existing table 

Dim oColumns() As String = {"Sheet Name" }
oTable = oTables.Add("Sheet List", oPoint, 1, oSheets.Count, oColumns, oSheetNames.ToArray)
oTable.TableDirection = TableDirectionEnum.kTopDownDirection
oTable.HeadingPlacement = HeadingPlacementEnum.kHeadingAtTop
oTable.ShowTitle = False

 

 

 

EESignature

0 Likes
Message 3 of 3

robmit_arm
Participant
Participant
0 Likes