Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Size of document

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Anonymous
984 Views, 3 Replies

Size of document

Hello,

 

How I can get the size of a document?

 

Thanks,

 

Javi

3 REPLIES 3
Message 2 of 4
dante.van.wettum
in reply to: Anonymous

Get the document filepath: Document.PathName

From here use the default windows FileInfo.Length to get the size of the file in bites.

 

Message 3 of 4
Anonymous
in reply to: dante.van.wettum

Thanks for your answer

 

Javi

Message 4 of 4
Anonymous
in reply to: Anonymous

Be aware that the pathname can be a BIM360 path (e.g. BIM360://mysharedmodel.rvt, which you won't be able to easily map to a on-disk path). The pathname may also be "UNTITLED" or something like that for new (unsaved) files.

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

Post to forums  

Forma Design Contest


Rail Community