Ribbon customization: Information cells do not refresh automatically

Ribbon customization: Information cells do not refresh automatically

antonio.ali
Contributor Contributor
1,045 Views
11 Replies
Message 1 of 12

Ribbon customization: Information cells do not refresh automatically

antonio.ali
Contributor
Contributor
 

Hello everyone, I would like to have your opinion to solve the problem that I will describe below.
I have customized the ribbon with information cells (Spindle speed, feed, statistics, etc.), the problem is that in old projects everything works perfectly, creating a project from scratch, these information cells do not update with the values ​​present in the different tool paths.
Instead, using the 4 predefined information cells of the
status bar everything is ok even if the code is the same.
Eg:

 

 

    <entry type="uiTEXTLABEL">
      <resource key="uiLABELSTRING" value="Giri"/>
      <resource key="uiDYNAMICHELP" value="Numero di giri mandrino"/>
      <resource key="uiEXPRESSION" value="'Giri '+INT(SpindleSpeed.Value)"/>
      <resource key="uiEDITTYPE" value="ExpressionField"/>
    </entry>

 

 

I can't explain this PowerMill behavior.

01.jpg





 

Antonio A.
0 Likes
1,046 Views
11 Replies
Replies (11)
Message 2 of 12

evo80
Collaborator
Collaborator

You're going to have to deactivate and then activate the toolpath to get those values, not ideal!

0 Likes
Message 3 of 12

antonio.ali
Contributor
Contributor
Obviously I have already tried to activate and deactivate the various toolpaths dozens of times but without success. The thing that drives me crazy is that by opening the old projects from a few months ago, all the cells are instantly updated by switching from one toolpath to another, both in the status bar and in the quick access bar and in the ribbon menu.
Antonio A.
0 Likes
Message 4 of 12

v.campo
Explorer
Explorer
Same problem for me, I thought it was a problem of my PC, PowerMill version is 2022.0.3.2022018
0 Likes
Message 5 of 12

kmarkopouliotis
Advocate
Advocate

Hi I would like to know how did you manage to enter the Total Time of the Toolpath time in the Expression Field ???

 

Thank you..

0 Likes
Message 6 of 12

antonio.ali
Contributor
Contributor

Hi, the parameter to show the total time of the toolpath is Statistics.TotalTime,

 

001.png

 

to show it in the format hh: mm: ss you need to use function time_to_string in this form:

time_to_string (Statistics.TotalTime; 'M')

 

If you want to learn more about the time_to_string function, you can find additional material at this link:

 

https://knowledge.autodesk.com/support/powermill/learn-explore/caas/CloudHelp/cloudhelp/2019/ENU/PWR... 

 

I would be grateful if you could check, starting from a new project, from scratch, if by switching from one toolpath to another, the parameters in the information cells are refreshed in real time, unfortunately in my case this refresh of the cells only works when I open an existing project that is a few months old.

Antonio A.
0 Likes
Message 7 of 12

kmarkopouliotis
Advocate
Advocate

Thank you very much.

Have a nice day

0 Likes
Message 8 of 12

antonio.ali
Contributor
Contributor
Have none of you had the opportunity to check whether these information cells are updated with the latest version of PowerMill or not, by switching from one toolpath to another?
I wish I could figure out if it is just my problem or is it a common problem.
Antonio A.
0 Likes
Message 9 of 12

kmarkopouliotis
Advocate
Advocate
HELLO,
VALUES IN MY EXPRESSION CELLS ARE UPDATED WHENEVER I ACTIVATE ANOTHER TOOLPATH.

I WOULD LIKE TO KNOW IF I COULD HAVE A VARIABLE'S VALUE (REAL NUMBER) INSIDE AN EXPRESSION CELL...
0 Likes
Message 10 of 12

antonio.ali
Contributor
Contributor
Forgive my insistence but your cells are automatically updated even if you create a project from scratch?

To use real values ​​rather than integers in cells you can write for example:

REAL (FeedRate.Cutting.Value) for Real values
INT (FeedRate.Cutting.Value) for Integer values
Antonio A.
0 Likes
Message 11 of 12

pauliuska
Contributor
Contributor

Hi,
I had same issue, my "solution" was as someone mentioned, reload the tool.

Assigned macro as refresh button to keep it simple.

 

Refresh.PNG

 

It looks like Autodesk keeps pushing Fusion and don't care much about Powermill at all. 

0 Likes
Message 12 of 12

antonio.ali
Contributor
Contributor
You are right pauliuska actually your workaround works by reloading the tool but, I would like to understand why on some pc it works (see the case of the user kmarkopouliotis) and on others it does not in order to be able to definitively resolve the issue.
Antonio A.
0 Likes