Retrieve value from Global Form

Retrieve value from Global Form

alexander_anderson4353E
Participant Participant
112 Views
3 Replies
Message 1 of 4

Retrieve value from Global Form

alexander_anderson4353E
Participant
Participant

For reference I am using a global form and working with both iProperties and user parameters.

 

What I am attempting to do is have a global form that displays the current values for parameters and when the value is updated in the form, have it update the parameter. Currently this can be done by clicking "apply", however I am wondering if there is a way to do this when the value is updated in the form itself, or through a rule. 

 

I have attempted the following: 

iProperties.Value("Custom", "Initiated Date") = iProperties.Value("Custom", "Initiated Date")

 

and then later: 

iProperties.Value("Custom", "Initiated Date") = iProperties.Value("Custom", "Temp Initiated Date")
 iProperties.Value("Custom", "Temp Initiated Date") = iProperties.Value("Custom", "Initiated Date")

 

In the first case, "Initiated Date" is the parameter in the form, and in the second attempt "Temp Initiated Date" is the parameter in the form (the logic being that Inventor was using the initial value, and by swapping them around would hopefully cause them to update to the new value in the form)

 

Is there a method to access the "current" value that is entered into the form? Any attempts to access these pull from the previously set values (before the form was opened, or the value after clicking "apply").  

 

Changing parameters in forms works as expected but I am not aware of a method to replicate this in a global form, which I would like to use to avoid having to add the form/rules to each file separately as this form is intended to be used to update older drawings to a newer format.

 

I have searched for what the "apply" button actual does with the hopes to replicate this a rule, however I have found no documentation on what any of the potential default form buttons do behind the scene.

 

Any advice is appreciated.

0 Likes
Accepted solutions (1)
113 Views
3 Replies
Replies (3)
Message 2 of 4

WCrihfield
Mentor
Mentor
Accepted solution

Hi @alexander_anderson4353E.  When designing the global iLogic form, you have control (named Predefined Buttons) over which buttons will be included at the bottom of the Form.  If you set that to one of the options that includes the 'Apply' button, then the changes you made within the form will not be 'sent' to the model until you click the Apply button.  However, if you set those buttons to the 'Done' button only, then all changes made in the form will automatically / instantly effect the model.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 4

C_Haines_ENG
Collaborator
Collaborator

If the name of the Parameter is the same every time, you can actually add Parameters to Global Forms. So long as a parameter with that name exists in the document you can edit it either from the form or from the parameters menu. The same can be done with iProperties.

 

You cant access data in the Forums, they have to be linked to an iProperty or Parameter. 

0 Likes
Message 4 of 4

alexander_anderson4353E
Participant
Participant

Thank you very much, this is exactly what i was looking for!

0 Likes