cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Show node path in the CodeEditor window

Show node path in the CodeEditor window

I'd like to suggest a small and easy to implement improvement to the Code Editor, show the node path in its status bar:

1665752687054.png

This feature is very helpful in the models where there are many objects with the same structure but different names, or when the code nodes are hidden deep within the model tree. This UI area is not used anyway.

It can be improved one step further by adding an "Explore as Tree" button: useful when you're editing a command, but want to go and update its documentation string or type signature (sibling nodes in the tree), or to find the object you're editing.

Currently I add this feature by monkey patching the FlexSim tree in a custom module by adding a node VIEW:/standardviews/code/CodeEditor/BottomButtons/Nodepath (XML attached) after VIEW:/standardviews/code/CodeEditor/BottomButtons/Sampler.

It would be nice to have it in the default FlexSim installation. Hopefully, it can be added before the next beta, and so may end up in 2023.

CodeEditor_BottomButtons_Nodepath.fsx

2 Comments
arunTTT2P
Enthusiast

Model crashing when opening in 22.2. Any prerequisite to be done?

sastanin
Collaborator
Yes, this particular FSX is for FlexSim 22.0. And it's not a model, just a control for the GUI. It should be injected into the VIEWS tree by creating a module.

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea