Jump to content
David

How to make dynamic contents in feature definition arguments

Recommended Posts

Hello, everyone.

I have a problem implementing some functions while making a feature definition.

When creating an input values of a feature definition, I want to create or show a new item according to the initial input value. 

I think this is called "dyanmic contents" 

For example, if I enter "2" in first input values, two new empty input spaces are created. 

Perhaps if the "Is Hidden Condition" or "Is Enabled Condition" in the "Advanced" Column in arguments are met, the function will work.

But I don't know how to write or code it.

I would appreciate it if you could give me an example of this.

Thank you for your reply in advance.

Share this post


Link to post
Share on other sites

Hi David,

You are on the right track 🙂 In the "Advanced" Edit Menu of the input Arguments you can set the "Is Hidden Condition". 

You need to make sure that each time you insert a first input value, your editor gets refreshed. So for your first input argument you toggle the "refreshes editor" button (see screenshot).

2022-12-21_10h17_40.png.3698ed5347bc5563bf7a8de84855ae70.png

 

For the following dynamic input fields you can reference the first input value for example with

this.getARGUMENTNAME()

and add a condition to it.

 

2022-12-21_10h18_08.png.b1ca8e090aaae42268669c1063682468.png

 

I will attach a simple example feature definition here for you to test.

DynamicArguments.fdf

I hope this helps.

Cheers,

Hedi

  • Like 1

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...