iLogic material update

iLogic material update

m_hermann
Collaborator Collaborator
2,563 Views
15 Replies
Message 1 of 16

iLogic material update

m_hermann
Collaborator
Collaborator

Smiley Embarassed

Hi,

i use this code in a small form:

MultiValue.List("Material")=iProperties.Materials'
iProperties.Material=Material
iProperties.Value("Custom", "Material")=Material

that works fine, the material change is correct.

But if i change the material from the apperentice browser my iLogic form displays only the material from fxParameter, means

there is no update.

How can I fix this?

thx

Michael

0 Likes
Accepted solutions (2)
2,564 Views
15 Replies
Replies (15)
Message 2 of 16

Anonymous
Not applicable

hi!

 

I dont have a same version of inventor, but i think the problem is this line of code? delete them

iProperties.Material=Material
0 Likes
Message 3 of 16

m_hermann
Collaborator
Collaborator
Hi, thank's for your answer
no, this line is needed, nothing works without that only the material browser is not beeing updated and if i Change am material from the browser, my ilogic has the 'old' material
0 Likes
Message 4 of 16

Anonymous
Not applicable

With your rule it's the user parameter who control your material, what do you want to make?

0 Likes
Message 5 of 16

Anonymous
Not applicable

do you add a event triggers of your rule if material change?

0 Likes
Message 6 of 16

m_hermann
Collaborator
Collaborator

Hi,

yes i added triggers. I attached the document and a document with screenshots.

If i change the material from browser, my iLogic displays the former material. I think i need to update the fxParameter but how?

(sorry for my bad english)

0 Likes
Message 7 of 16

Anonymous
Not applicable

i use inventor 2013 😞 i cant open your file

0 Likes
Message 8 of 16

m_hermann
Collaborator
Collaborator

Inventor 2013

0 Likes
Message 9 of 16

m_hermann
Collaborator
Collaborator
Spoiler
 

 

Hello everyone,

 

is there anybody who knows a solution for my problem?

PLS help.

0 Likes
Message 10 of 16

Anonymous
Not applicable

MultiValue.List("Material") = iProperties.Materials
MyMaterial = Material
iProperties.Value("Custom", "Material") = MyMaterial
iProperties.Material = MyMaterial
iLogicVb.UpdateWhenDone = True

0 Likes
Message 11 of 16

m_hermann
Collaborator
Collaborator

Hi,

thx for your quick help. That works not bad but:

 

now i'm only able to change the material from my iLogic or fxParameter. Not in phys. Property and not in

Material browser.

How can i fix it that i can change the material everywhere?

0 Likes
Message 12 of 16

Anonymous
Not applicable

add Material rule to the event triggers "Any Model Parameter Change"

0 Likes
Message 13 of 16

Anonymous
Not applicable
Accepted solution

For what do you use a form???

0 Likes
Message 14 of 16

m_hermann
Collaborator
Collaborator

I know what you  mean, do it in this way or do it in the other way but not mix it !?

We use the form to make all necessary iProperty inputs (20) and change the material in one way. In the form we display also the

weight, so we change the material if we get the correct weight.

When the input is done sometimes it happens that someone has to change the material without the form (its faster), or we have to

control the physiks, so we change the material in the iProperty.

0 Likes
Message 15 of 16

Anonymous
Not applicable
Accepted solution

i have maybe a solution for you, try this

Message 16 of 16

m_hermann
Collaborator
Collaborator

Hi,

yes that's it. It works very fine.

Many thank's.

0 Likes