Rule to insert a revision table on a new sheet

Rule to insert a revision table on a new sheet

alex_negrea
Participant Participant
1,211 Views
5 Replies
Message 1 of 6

Rule to insert a revision table on a new sheet

alex_negrea
Participant
Participant

Hi All

 

We are using the same revision table on multiple sheets in a given .idw drawing file.

I would like to create a rule to automatically insert the revision table, as per the first sheet.

We are currently inserting the table manually each time a new sheet is created - selecting the revision table for the entire drawing.

Any programing experts able to help?

 

Cheers

Alex

0 Likes
1,212 Views
5 Replies
Replies (5)
Message 2 of 6

adam.nagy
Autodesk Support
Autodesk Support

Hi Alex,

 

The iLogic events a Rule can subscribe to won't fire when a new sheet is created:

 

iLogicEvents.png

 

So either you wait with the table creation until one of those above events fire or use VBA code or a .NET AddIn instead.

If the latter then you can check what events are available and fire in case of sheet creation using the "C:\Users\Public\Documents\Autodesk\Inventor 2014\SDK\DeveloperTools\Tools\EventWatcher" sample project from the SDK.

 

Cheers,



Adam Nagy
Autodesk Platform Services
0 Likes
Message 3 of 6

alex_negrea
Participant
Participant
Thank you Adam
I thought it could be easier than this…
We are having complex drawings, as big as 30 sheets. Although the revision table is set up in the styles, we still have to position it on each new created sheet. It takes only 5 seconds but if you add it up you do the same unnecessary thing over and over.
Would have been nice to automate it. Who knows, maybe Autodesk will add it in Inventor one day – or at least the option to trigger a rule when a new sheet is created.
Thanks again!
0 Likes
Message 4 of 6

adam.nagy
Autodesk Support
Autodesk Support

Hi Alex,

 

As I said you could probably do this in VBA as well, which - just like iLogic - is part of Inventor.

 

Also if you invested in an AddIn, which is the professional way of customizing Inventor behaviour, then you could extend it over time with new functionalities quite easily. So I think it would be worth it.

 

If you are game enough to give it a try 🙂 then Visual Studio also has a free version that you can play with.

Here is a video presentation on creating an AddIn: http://adndevblog.typepad.com/manufacturing/2012/05/creating-or-migrating-your-inventor-add-ins-to-t...

 

Cheers,  



Adam Nagy
Autodesk Platform Services
0 Likes
Message 5 of 6

alex_negrea
Participant
Participant
Thank you Adam!

I will give it a go.

Cheers,
Aelx
0 Likes
Message 6 of 6

Ktomberlin
Advocate
Advocate

Our title block is different for any sheet other than sheet one so i just made an ilogic to add the additional sheet.  All users don't add sheets manually now and it saves time.  You could add to this to add the revision table in the correct position.

 

oDrawingDoc = ThisDoc.Document
Dim MySheet As String 
MySheet = ActiveSheet.Size
ThisApplication.ActiveDocument.Sheets.add ()
ActiveSheet.ChangeSize(MySheet, MoveBorderItems := True)
ActiveSheet.Border = "Default Border"
ActiveSheet.TitleBlock = "TitleBlock Sht2"

 

0 Likes