question

Pedro Ortelani avatar image
1 Like"
Pedro Ortelani asked Phil BoBo commented

Custom Object UI with Quicker Properties

Hello,

I am trying to change my custom object UI to be like the new UI on the FlexSim 20.2, while looking inside the library treenode I realized that all guifocusclass point to this node "VIEW:/standardviews/modelingutilities/QuickerProperties".

But when I create a processor it has the "Processor" tab in the UI, how can I put a custom tab like this for my Object?

Thanks in advance!

FlexSim 20.2.2
flexsim 20.2.2module sdk
5 |100000

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

1 Answer

Phil BoBo avatar image
1 Like"
Phil BoBo answered Phil BoBo commented

The properties tabs are defined in VIEW:/standardviews/modelingutilities/QuickProperties>variables/propertiesPanels.

Using the Module SDK, you can add your own panels there as well that can be used by your custom object.

Within the data of each panel, you can adjust the requirements for when it appears. See the Processor panel for example:


1600356857343.png (133.4 KiB)
· 5
5 |100000

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

Pedro Ortelani avatar image Pedro Ortelani commented ·

Got it! Thanks @phil.bobo

1 Like 1 ·
Mischa Spelt avatar image Mischa Spelt Pedro Ortelani commented ·

Two quick tips if you are changing an existing GUI to a properties panel:

1. Old GUIs often point to variables using a reference to the objectfocus of the owning object ("@") like "@>objectfocus+>variables/xyz". To make it work for both quick properties and quicker properties, you'll want to change this reference to be relative: "../..>objectfocus+>variables/xyz".

2. To test changes in the Quick Properties you'll need to close and re-open them. For the Quicker Properties, they are 'cached' in VIEW:/active/QuickerProperties1234, if you delete that node and double click the object they will be reloaded from the tree.

1 Like 1 ·
Pedro Ortelani avatar image Pedro Ortelani Mischa Spelt commented ·
Thanks for the tips @mischa.spelt, that really helped! :)
1 Like 1 ·
Pedro Ortelani avatar image Pedro Ortelani commented ·

How do I make the quickproperties expanded window fit the UI? It shows only a piece of it.

1 Like 1 ·
Phil BoBo avatar image Phil BoBo ♦♦ Pedro Ortelani commented ·

Please post new questions as new questions and not comments on questions with accepted answers.

Also, please post enough information for us to understand and replicate the issue you are having. Post screenshots, videos, and possibly an example module so that we can determine what is happening and why.

"It shows only a piece of it" is not enough information for us to understand what is happening on your end or explain why.

2 Likes 2 ·