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

20 vues (au cours des 30 derniers jours)
Mash
Mash le 24 Mar 2020
Commenté : Adam Danz le 15 Mai 2020
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 commentaires
Adam Danz
Adam Danz le 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 le 25 Mar 2020
Modifié(e) : Mash le 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.'

Connectez-vous pour commenter.

Réponse acceptée

Adam Danz
Adam Danz le 25 Mar 2020
Modifié(e) : Adam Danz le 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 commentaires
Mustafa
Mustafa le 15 Mai 2020
I had the same problem and fixed it now. Thanks!
Adam Danz
Adam Danz le 15 Mai 2020
Thanks for the feedback, Mustafa. It's good to know the solution is generalizable.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by