- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello All,
Trying to build a new 3d template (using Kofax Power PDF - similar capabilities as Adobe Acrobat Pro).
A "header" has been made in the 3d PDF template to include std. header information as for a 2d PDF.
Now stuck on the formatting of Mass using the following "Javascript":
{{{ topComponent['Mass'] || "" }}}
Mass is grabbed ok by template from Inventor - however the decimal point is off by a factor of 3 - eg. Inventor (from properties) shows 0.023 kg, but this becomes 22.839484660076849 in the 3d PDF.
- Any ideas how to fix decimal point?
Maybe there is also a way to "round" up - just as Inventor does natively in the iProperties - Physical value listed.
I looked also at the Anark Core Static PDF Template reference listed in other threads - but can't really find anything specific - maybe from using syntax listed 🤔
PS. Basically it's a question to format the command {{{ topComponent['Mass'] || "" }}}, as I also this to grab both the 'Description' and 'Part Number' - etc.
Included a few screenshots to help explain 😉
Solved! Go to Solution.