ETO Form Containers Types

Dear Developer,

What is the ideal form type, if we want to work with Rhino environment while the form is opened? If I am working with Forms, we can work in Rhino, but the problem is, that the user can keep calling the form, and it opens it each time. how can we prevent the user from opening it, if it is already opened, but at the same time, to give the user the option to call other commands?

If I work with dialog form, it won’t give me the option to work in Rhino at all, what are my options?

(attaching an image to show the result in Rhino, when we keep calling the form commandline)

thanks in advance,

i suspect you are creating new Form each time you call the command. build in a checker to see if a Form is already instantiated before create new ones
more advance topic is the singleton pattern

1 Like