question

anon-user avatar image
0 Likes"
anon-user asked Jeanette F commented

How to hide the "Model Limit Reached" message?

Normally, I use a full license of FlexSim, but I am developing a model to use in a computer without the possibility to use any license.

In this model, I need to hide all the lateral panels (toolbox, quick properties...).

Is there a way to hide the panel that shows the limit of the model has been reached?

Thanks a lot in advance.

FlexSim 20.1.3
model limithide panel
· 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.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·
Why is it not possible to use a license? You can manually activate it using xml files if it has no internet access.
0 Likes 0 ·
anon-user avatar image anon-user Jason Lightfoot ♦ commented ·

In this case, we would like to have just the possibility to use it without the license, but thanks for the information, maybe I will have the need to use a license without internet conection.

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi anonymous user, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

Add this to the onModelOpen model trigger:

treenode modellimitlink=node("VIEW:/active>Tools/ModelLimit/1");
if (objectexists(modellimitlink)){
    treenode modellimit=ownerobject(modellimitlink.value);
    applicationcommand("closedockedtab",modellimit);
}



· 2
5 |100000

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

anon-user avatar image anon-user commented ·

I tried to use that code, but I had the following error when I opened the model:

exception: FlexScript exception: Method find() called on node that does not exist at VIEW:/nodefunctions/windowdocking/removefromsplitter

I had the same problem when I used the code in the OnResetModel.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ anon-user commented ·
It looks like earlier versions didn't work with modellimit.up - I've altered the code snippet to work with 20.1
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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