- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I write a rule:
iProperties.Value("Custom", "AreaM2") = Round(iProperties.Area / 1000000,2)That part is working.
However, in drawing I only get numbers. I would like to get a unit as well (and not writing it manually).
Perhaps is a dumb question, but I just can't figure it out...
(Inventor 2020)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello @gregor.leban . You can format your titleblock or just add text with format. Please see the snapshot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Add something at the end.
iProperties.Value("Custom", "AreaM2") = Round(iProperties.Area / 1000000,2) & " m^2"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Thank you!
I have the same code for volume:
iProperties.Value("Custom", "VolumeM3") = Round(iProperties.Volume / 1000000000,5) & " m^3"
But here something weird happens when I add your solution at the end...
It transforms result from 0,00004 to 4E-05
Why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
It works fine here. That "E" , I think it means something cannot be displayed like may its too long. Try with smaller part.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Yes, with bigger part it is working normally but with smaller it display that E-.
Wonder why.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
with 1mm x 10mm part, i got the same.
iProperties.Value("Custom", "VolumeM3") = Round(iProperties.Volume / 1000000000,5) & " m^3"
Maybe you can use less decimal, but you will probably get zero value. So, maybe better not use m^3.