Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

TypeS of file Size

Maxim-CADman77
Advisor

TypeS of file Size

Maxim-CADman77
Advisor
Advisor

I need to know how many different types of file size porerty are available through theAPI.

There are two ("Size" and "Size on disk") in UI (on general Tab of iProperty).

One of them is available with this iLogic code:

 

Dim myFile As New FileInfo(ThisDoc.PathAndFileName(True))
sizeInBytes = myFile.Length

 

But it returns error if executed on usaved file.

 

I wonder if it possible to get the size of RAM the usaved file consumes at the moment?

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
Reply
279 Views
1 Reply
Reply (1)

bradeneuropeArthur
Mentor
Mentor

Hi,

 

To my understanding, has an unsaved file no file-size.

It becomes a size at the moment the file is stored and written to the disk.

otherwise this is cache...

 

Regards,

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

0 Likes