Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Revision and Sheet number while printing drawings

1 REPLY 1
Reply
Message 1 of 2
Anonymous
310 Views, 1 Reply

Revision and Sheet number while printing drawings

Hi Gents, Is there a way to get revision and sheet number of sheet shown while printing out? I suppose going through ILogics it is possible, isn't? If so can anyone give a hand please? Cheers, Ulvi.
1 REPLY 1
Message 2 of 2
mslosar
in reply to: Anonymous

It depends on where you're storing your sheet number and revision, but there are standard values for revision and filename for example that you can't easily get via ilogic, vba, or vb.

 

in a drawing it can be as easy as:

 

Dim oDoc As DrawingDocument

odoc = thisapplication.activedocument

 

dim myFileName as string

myFileName = oDoc.FullFileName

 

 

If you're using the built-in revision setting, i don't know if oDoc.RevisionID is the same thing or not, but you'd be able to get it through something like:

 

dim oPartNumProperty as Property

Set oPartNumProperty = oCompDef.PropertySets.Item("Design Tracking Properties").Item("Revision Number")

 

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

Post to forums  

Autodesk Design & Make Report