Inventor Customization

Reply
Mentor
matt_jlt
Posts: 216
Registered: ‎07-28-2007
Message 1 of 6 (605 Views)
Accepted Solution

iLogic Form - Read Only

605 Views, 5 Replies
01-09-2013 11:05 PM

Hi everyone, I was wondering if there is a way to modify a user form parameter's read only status using a rule?

 

I have a parameter that I want people to be able to edit when another parameter is set to true and to be locked if it's set to false. The only thing that comes to mind is have a rule that will just switch the value back automatically if the user changes it but it would be good if i could control the read only status.

 

Thanks, Matt.

Hi Matt,

 

If you want to make a parameter in a form Read-Only based on a parameter's True/False value then you can just set that parameter for the "Enabling Parameter Name" in the form.

 

If the problem is that instead of making the value Read-Only when the parameter is False, you'd like to make it Read-Only when the parameter is True, then you could create an additional parameter and a associated rule for the locking parameter that would keep these two parameters' values opposite, and then use this extra parameter for the "Enabling Parameter Name"

 

Here are some pictures that should make it clearer what I mean:

 

ilogic1.png

 

ilogic2.png

 

ilogic3.png

 

Cheers,

 

ADN Support Specialist
adam.nagy
Posts: 567
Registered: ‎03-26-2007
Message 2 of 6 (582 Views)

Re: iLogic Form - Read Only

01-15-2013 11:11 AM in reply to: matt_jlt

Hi Matt,

 

If you want to make a parameter in a form Read-Only based on a parameter's True/False value then you can just set that parameter for the "Enabling Parameter Name" in the form.

 

If the problem is that instead of making the value Read-Only when the parameter is False, you'd like to make it Read-Only when the parameter is True, then you could create an additional parameter and a associated rule for the locking parameter that would keep these two parameters' values opposite, and then use this extra parameter for the "Enabling Parameter Name"

 

Here are some pictures that should make it clearer what I mean:

 

ilogic1.png

 

ilogic2.png

 

ilogic3.png

 

Cheers,

 



Adam Nagy
Developer Technical Services
Autodesk Developer Network
Mentor
matt_jlt
Posts: 216
Registered: ‎07-28-2007
Message 3 of 6 (566 Views)

Re: iLogic Form - Read Only

01-17-2013 08:03 PM in reply to: adam.nagy

Hi Adam, is this functionality only available in 2013? I'm stuck on 2012 as where I work only swaps over versions every two years.

 

I guess I'll have to use my workaround until 2014 comes out.

 

Thanks for your help.

 

Matthew.

ADN Support Specialist
adam.nagy
Posts: 567
Registered: ‎03-26-2007
Message 4 of 6 (555 Views)

Re: iLogic Form - Read Only

01-18-2013 03:17 AM in reply to: matt_jlt

Hi,

 

I could achieve the exact same thing in Inventor 2012 as well - attached is the part I created.

 

When you modify the LockMyParam parameter to false then the MyParam edit box becomes read-only.

 

Cheers,



Adam Nagy
Developer Technical Services
Autodesk Developer Network
New Member
raulcano
Posts: 1
Registered: ‎08-01-2013
Message 5 of 6 (99 Views)

Re: iLogic Form - Read Only

07-16-2014 07:27 AM in reply to: adam.nagy

Fantastic Example adamnagy

Question?

You may do the same exercise but with a numeric parameter?

Apologize for my bad English.

Regards

ADN Support Specialist
adam.nagy
Posts: 567
Registered: ‎03-26-2007
Message 6 of 6 (92 Views)

Re: iLogic Form - Read Only

07-16-2014 09:46 AM in reply to: raulcano

The help text for the "Enabling Parameter Name" actually answers it (see the picture of the Form Editor dialog above): "The name of an Inventor True/False parameter. ..."

 

So you would need to create such a parameter, which could then be driven by a numeric parameter.

E.g. create the True/False paremeter named DontLockMyParam and then create a rule that drives it. Something like:

DontLockMyParam = (MyNumericParam < 10) ' If the numeric param is less than 10 then the parameter will be enabled


Adam Nagy
Developer Technical Services
Autodesk Developer Network
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.