Idea

Serge A avatar image
3 Likes"
Serge A suggested Serge A edited

Don't let the quick-edit panel to overwrite the changes made in the Code Editor

One of my most frequent causes of frustrations with FlexSim is when it "undoes" all the recent changes made in the code editor. There is a apparently a race condition between the quick-edit panel and the code editor as shown in this video:

Whichever editor closes last gets to overwrite the node text. I am sure I'm not the only one who lost hours of work because of this feature.

There are several ways to fix this:

  1. Close the quick panel whenever the editor is opened. Transfer whichever edits were made in the panel to the editor.
  2. Disable the quick panel for text nodes completely (or at least provide an option to disable it) and use the full-featured editor by default.
  3. Save a checksum of the node's text when instantiating an editor. Check it again before overwriting the node. Ask the user to overwrite or reload text if the checksum has changed. This should also cover inter-operation with all other mechanisms which may have updated the node.

Related: it would be really nice to have an easier way to open the editor without having to go to a sub-menu of a context menu (on double click maybe?).

developmentcode editoruiusability
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Serge A avatar image Serge A commented ·

Is there any progress or decision on this issue?

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ commented ·

For 18.0, we will make it so that it deselects the node in the tree view when you Explore > As Code.

0 Likes 0 ·
Serge A avatar image Serge A Phil BoBo ♦♦ commented ·

Great. Thank you.

0 Likes 0 ·

1 Comment

Phil BoBo avatar image
1 Like"
Phil BoBo commented Serge A edited

"it would be really nice to have an easier way to open the editor without having to go to a sub-menu of a context menu"

Use the Code Edit button in the object's GUI:

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Serge A avatar image Serge A commented ·

Unfortunately it is not an acceptable solution, because there are many other text/code nodes which are accessible only from the tree. Editing experience remains broken across multiple major versions.

0 Likes 0 ·

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.