Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

ActiveReport Designer : Calculated values and formulas


francesko
 Share

Recommended Posts

Hello everyone,

 

Today i have a new challenge for myself and can't seem to find any informations online, on documentations or tutorials.

I'm trying to use formulas to calculated values based on manually written numbers.
Let's say i want do to  : X + 1 = ...
Where X is a parameter (number) i've inserted before printing my setupsheets.image.png.b20705724ef532179d1ccde6ac0d5eb3.png


I'm trying to use a calculated box on my ActiveReport sheets. Which is in the next picture in green.image.png.8217228b8931829ab26b0fd039bf2e78.png

 

Which is linked to this image.png.6034688fb3d90cec37208065b3cd21ee.png

Which refers to the datafield TEST who contains the formula image.png.f073c02159d5bcca72ae10769f20c419.png

And when printing the setupsheets, i get this error image.png.ed48737ffd262d86f1eacff7d50a882c.png

 

Does any one know how to properly write formulas ? 
Is it better to use a script for this ? 

Thanky you,

 

Francesko

 

 

image.png

Link to comment
Share on other sites

I never used Parameters before, i gave it a try but i couldn't find a way to access 'Parameters' objects with script. I'm not even sure they are exposed at runtime.

You should ask your question on official forum or directly mail to Ruth.

As a workaround, you can use setupsheet GUI to pass values to your reports.

image.png.9737857cf0f3366c2fa3101cebcb945e.png

Link to comment
Share on other sites

Thanks for your reply.

Parameters are indeed a difficult subject. I was experimenting with formulas to make them work but i couldn't.

The thing is that i want to use a data i've entered and stored using UXD-1 (datafield), and use that UXD-1 value to generate other numbers that are simply calculated.
For example : CASE 2 : = ('UXD-1' +0,5)/4 

This would allow me to automatise a lot of writing by just inputing one or two initial values...

image.png.4ecc0309ea5292f929230d2ad9606f2d.pngimage.png.09e8687936a0311a2953789a56604b50.png

 

I thought this was an official forum lol. I'm going to post there and tell you if i find something.

Who is Ruth ? And what's the e-mail ?

 

Francesko

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...