Jump to content
Jörg

How to realize a switch in the GUI of a Feature

Recommended Posts

Hi together,

 

Please find attached a very simple example where I switch between two curves to generate a surface.

 

post-8-0-77261800-1413903499_thumb.gif

 

The switch is realized by using the advanced options of the feature definition arguments.

 

post-8-0-25901100-1413903521_thumb.png

 

There is an auxiliary bool argument which I use in the advanced options of curveA and curveB.

 

post-8-0-83132300-1413903530_thumb.png

 

Note that there is a documentation button in this dialog which directly leads you to the description of all options.

 

The bool argument itself is hidden, see also its hidden options.

 

Finally, an IF-statement based on this bool switches the input for an image curve.

 

post-8-0-25762100-1413903537_thumb.png

 

There are many possibilities to design and customize own interfaces for Features, this is only a small but maybe helpful example that introduces this topic. I attached the project file.

 

Cheers

Joerg

switch.fdb

Share this post


Link to post
Share on other sites

Note that I set the image curve "source" as being the type provider. Then it is easier to directly use the feature in the object tree as an input curve for the surface.

 

post-8-0-80575700-1413905031_thumb.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...