WPF binding slowing performance in addin?

WPF binding slowing performance in addin?

richter
Enthusiast Enthusiast
510 Views
3 Replies
Message 1 of 4

WPF binding slowing performance in addin?

richter
Enthusiast
Enthusiast

Hi experienced Inventor customizers,

I have one general question. I am building WPF addin on top of the Inventor, everything goes great but I got a slow performance, when I try to change parameters in Inventor assembly through binded WPF controls. Could it be that the binding slows the process? I am moving components through WPF dialog and controls...

 

The same funcionality goes great through iLogic (changing parameters in constraints and moving components).

Should I do it other way?

Thank you for response!

0 Likes
511 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
on my experience, it should not happen, unless you work with some parameters outside of the inventor, like the registry. are you sure about your code?
0 Likes
Message 3 of 4

richter
Enthusiast
Enthusiast

Yes, I am pretty sure 🙂 I am just binding slider control to parameter in assembly. Yesterday I run a test mapping directly slider to parameter without WPF binding and it was better. But still not as in iLogic forms. 

0 Likes
Message 4 of 4

Anonymous
Not applicable

how you are adjusting constraint value from the slider?

as sliders value change in a semi-continuous way, if you change the parameter in inventor on Value_changed event of the slider, its maybe because of that, because slider alters parameter for each step it moves, 

if so you better have button e.g. named "Update" and after selecting the value in slider you hit the button and Button_Click event does the rest.

but if you have this button in your add-in already, I am really not sure what can really cause this, maybe better we can take a look at your code.

 

0 Likes