Hello,
1) Please advise on where to find the library on CA Ruby parameters & methods. For example, how is num_foundation_bolts calculated? I lost several hours trying to figure out how to call Custom Object Fields, only to discover that it was custom_fields["Custom Name"] from a screenshot in an old forum post. Where is that officially documented?
2) I created a User-Defined Macro named "paramsRebar". Please refer to attached screenshot for its parameters. I set it up to store all required parameters of rebar in order to have a single place to update settings.
I used Custom Object Fields to return the required parameter as an integer.
When I call "=custom_fields["SlabWithFooting.NumBarRuns"]" within Label or Comment, it returns 2 as expected, but when I call the same value within Count, Extra, Price, Markup%, Labor, or Equipment, it returns Evaluation Error.
Also, "=macros.paramsRebar("runs")" and "=macros.paramsRebar("runs").to_i" return Evaluation Error within all fields, including Comment & Label.
Please advise on how to fix this.
Thanks!