Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

(PostProcessor) createFormat inherit bug?

0 REPLIES 0
Reply
Message 1 of 1
cmantunes
96 Views, 0 Replies

(PostProcessor) createFormat inherit bug?

Hello!

 

I stumbled on what I believe is an implementation bug on createFormat when using inherit. Here is an example:

 

let f1 = createFormat({decimals:3, type:FORMAT_REAL});
writeln("f1 = " + f1.format(42)); // "f1 = 42."
let f2 = createFormat({inherit:f1});
writeln("f2 = " + f2.format(42)); // "f1 = 42.000"

 

Format f2, which strictly inherits from f1, ends up producing an output as if minDigitsRight were set to 3.

 

BTW, I'm using post revision 45946.

 

Thanks!

Carlos

Labels (1)
0 REPLIES 0

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report