Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Change form picture based on what parameter you are editing

alextac
Explorer

Change form picture based on what parameter you are editing

alextac
Explorer
Explorer

Hello everyone, I have a bit of an oddball thing I would like to do with a form and have an idea of how to go about it but not sure exactly.

What I would like to do is for a picture in a form to change based on what parameter is currently being edited in a form.  For example, when the parameter "Width" is being changed in the form, the picture changes to one that has dimension arrows  showing you what exactly which way the model changes when you change "Width". I'd like to do it this way because the there will be many different kinds of parameters to changing the part in not so obvious ways so having a visual guide would make it a lot easier for different users to know what's going on.

Now I know you can store multiple pictures in the picture folder and change the picture depending on a text parameter but to change it properly I assume you have to use the Interaction Events in the API somehow and I'm not quite familiar enough with the API to make it happen. I have experience with programming VB.NET and will eventually figure something out but any nudge in the right direction would be greatly appreciated.

Thanks

Reply
365 Views
1 Reply
Reply (1)

HermJan.Otterman
Advisor
Advisor

I assume that your form is created in VB.net? (in iLogic you can't!)

in VB.net, put a textbox on a form, and double klick it.

than you wil come in the code of the form.

in the bar just above the code, on the right you have all kinds of  eventtrigger...

maybe "got focus" will help

when you select that you get some new code that will handle that event. inside you can put some code to change the picture

If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan


0 Likes