Changing iPart variants inside assembly

Changing iPart variants inside assembly

Daan_M
Collaborator Collaborator
633 Views
4 Replies
Message 1 of 5

Changing iPart variants inside assembly

Daan_M
Collaborator
Collaborator

Good morning,

 

I ran into a problem, below is an example code i use

 

vraag 4.JPG

 

Goal; Switch between iPart variants inside an assembly using a form.

 

Problem; The code only works once, when i switch iPart variant the componentname changes and the code can't find the component it needs to change anymore.

 

Example; I have rem0 in my assembly, i filled 'Rem0' in the 'componentname' field and save the code. I fill in 'remoptie=2' in my forms and iLogic changes the variant of my iPart from component Rem0 to Rem2. Now this worked fine. But when i want to change again the componentname it looks for is still 'Rem0', while 'Rem2' is now active in my file, so the code cant find it.

      

 

0 Likes
Accepted solutions (1)
634 Views
4 Replies
Replies (4)
Message 2 of 5

Daan_M
Collaborator
Collaborator

Another solution to achieve the goal is welcome too...

0 Likes
Message 3 of 5

Daan_M
Collaborator
Collaborator

bump

0 Likes
Message 4 of 5

J-Camper
Advisor
Advisor
Accepted solution

Is it possible for you to rename the component browser node name?  With an over-ridden name the component name shouldn't change when you switch iPart rows. 

0 Likes
Message 5 of 5

Daan_M
Collaborator
Collaborator

Thank you so much! that was literally what i was stuck on... -_-

0 Likes