App Designer: Can't delete Figure "app.UIAxes" permanently

20 views (last 30 days)
I have an app in App Designer and put an Component called UIAxes on the canvas. Now I want to delete it. I can delte it, but after saving and loading its back. How to fix this?
  5 Comments
Adam Danz
Adam Danz on 24 Mar 2020
I understand the problem (though, not the cause of the problem).
When you reopen the app and the deleted UIAxes is back again, does line 18 still cause an error?
Could you put the mlapp file in a zip file and attach it?
Mash
Mash on 25 Mar 2020
Edited: Mash on 25 Mar 2020
.rar is not attachable, but I put the .mlapp in the attachment.
I was a bit careless about the thema, as I was to lazy to put up git, instead used used a a numbering like 1.6. But the last version without running the prbolem is two days old.
Yes. line 18 causes an error as long I do not delete UIAxes in the same session. After deletion, the app runs smooth.
I minimalized the problem and deleted most of the code that is not from App.Designer set. Thanks for having a look onto it.
Error message in command window: 'Error using Verschleissberechnung_2_3
Error: File: Verschleissberechnung_2_3.mlapp Line: 18 Column: 47
Invalid use of operator.'

Sign in to comment.

Accepted Answer

Adam Danz
Adam Danz on 25 Mar 2020
Edited: Adam Danz on 25 Mar 2020
This is really bizarre.
Source of the problem
The problem is caused by the 2nd UIAxes not having a handle assigned in the app. Open the app in appdesigner and look at the Component Browser. I have no idea how this happened. Do you have any recollection of how this happened?
Solution
First, store a backup of your app.
1) Right-click the component in the image above, select "Rename" and provide it with a unique handle name (I've named it UIAxes2).
2) After doing step 1, the handle to the UIAxes will now be represented in the properties section in code-view. However, this causes another very odd problem. The name you assign to the axes will appear on every line of editable code in your app. You must remove all of those lines (you can use ctrl+f to find & replace). Then save the app and the problem should be fixed.
I'm using r2019b (update 2).
I've reported this to the tech team and have attached your modified app to my answer so they can access it (Case #04114127).
  3 Comments
Mustafa
Mustafa on 15 May 2020
I had the same problem and fixed it now. Thanks!
Adam Danz
Adam Danz on 15 May 2020
Thanks for the feedback, Mustafa. It's good to know the solution is generalizable.

Sign in to comment.

More Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!