cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Enable drawing sheet revision in API

Enable drawing sheet revision in API

When right-clicking on a sheet in a drawing you can edit the revision of only the sheet, not like in the iProperties of the whole drawing (including all sheets).

It would be nice, if it's possible to read/write this property over the API.

10 Comments
Anonymous
Not applicable

Using iLogic or VB, the properties for a drawing sheet's Name and size are available.  However, I can't find a way to reference the object for the Sheet Revision.  This is different than the iProperty for the drawing file Revision.

fsanchou
Advocate

Hi @JoschaWondraschek 

 

It's possible like this (i-Logic):

Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument

Dim oSheet As Sheet
oSheet = oDrawDoc.ActiveSheet

Dim sSheetRevision As String
sSheetRevision = "2"

oSheet.Revision = sSheetRevision

 

DRoam
Mentor

@fsanchou, did you test your above code? There is no Revision property on the Sheet object. Running your code just throws an error to that effect.

fsanchou
Advocate

@DRoam,  this revision property exist in 2019 version Sheet Object. I do not remember if this is new in this version.

Sheet Revision.PNG

Edit : by reading Sheet.Revision Property : Introduced in version 2019

DRoam
Mentor

My apologies -- you are correct! The "Revision" property was added in 2019. The direct link to it in the documentation is broken, but you can see it listed under the Sheet properties here: Inventor 2019 Help: Sheet Object.

 

I'll report this Idea and ask the moderators to mark it as implemented. Thanks for sharing that, @fsanchou!

DRoam
Mentor

Actually, @dan_szymanski is probably the guy to ping for that. Dan, please see above. Thanks!

DRoam
Mentor

@dan_szymanski, this is a duplicate of the other idea I just tagged you in and could be marked as implemented. Thanks!

Before it gets closed: Thank you guys for your help! 🙂

ChrisMitchell01
Community Manager
Status changed to: Implemented

Thanks for confirming that this is now Implemented 🙂

Andrew_Burnett
Enthusiast

The code above from fsanchou works great for the sheet revision!   Thank you for the code!!

 

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea