i Logic: Input fields in forms should appear empty after opening the file. How?

i Logic: Input fields in forms should appear empty after opening the file. How?

Anonymous
Not applicable
713 Views
6 Replies
Message 1 of 7

i Logic: Input fields in forms should appear empty after opening the file. How?

Anonymous
Not applicable

Hello World 🙂

I have created forms with i Logic, that pop up automatically after opening the iam.-file and the user can put values in the input fields.

 

The question is: How can be the input fields be cleared after saving the file? Because the values are already saved in a copy, that is created automatically after saving. The original file shouldn't contain any values after saving.

 

Thank you in advance for any ideas! 🙂

0 Likes
714 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable

The parameter boxes in an iLogic form are going to display the current value of the parameter and allow you to change them, much the way you can from the main parameter dialog box. To my knowledge there is not a way around this unless using a "hold" parameter which then writes to the "final" parameter.

0 Likes
Message 3 of 7

blandb
Mentor
Mentor

Can you not just blank out the fields you are populating at the end of the rule, or run a "clear" rule that will blank them out?

 

iProperties.Value("Summary", "Title") = ""
iProperties.Value("Project", "Description") = ""
Autodesk Certified Professional
0 Likes
Message 4 of 7

Anonymous
Not applicable

Thak you for your reply.

 

How can I create a rule that will blank out the input fields in my forms after I open the file?

0 Likes
Message 5 of 7

blandb
Mentor
Mentor

I read your initial post that the values were being saved when it was copied, so an after save rule would clear the values.

You could in your "show form" rule, say to run the clear rule before the show form:

 

iLogicVb.RunRule("clear")

iLogicForm.Show("Form 1")
Autodesk Certified Professional
Message 6 of 7

Anonymous
Not applicable

Thank you so much for your idea, sounds good.

I am a beginner using iLogic... how does a "clear rule" look like?

0 Likes
Message 7 of 7

blandb
Mentor
Mentor

It would be just a stand alone rule that just blanks out whatever properties you are looking to clear. Example, below will make the Title field blank.

iProperties.Value("Summary", "Title")=""

The reason I said to make it its own rule is because if you decide to clear other things later, you can just add to your clear rule. But as a standalone rule, you can choose when to fire that specific  rule when needed.

Autodesk Certified Professional