Change parameters in user-template via irule

Change parameters in user-template via irule

Anonymous
Not applicable
546 Views
4 Replies
Message 1 of 5

Change parameters in user-template via irule

Anonymous
Not applicable

Hello,

I would like to create an iam-file as a template which already includes 3 part-files and a rule to change some of the parameters of the parts. This is working fine so far.

My problem is, whenever I change the parameters of a part via the rule it changes the parameter in all documents created with this template. If I change the parameter directly via the factory properties it only changes the part in the document. Is there a way, to change only the active iam-document using a rule?

 

I will give you a quick example: The height of a rack is changed via the factory properties. The rack is than adapted in the iam-file I am working on. I then designed a rule which sets the height of a ladder (a second part in the same iam-file) equal to the rack. When I run the rule it changes the height of every ladder in every open iam-file. I want both parameters to only change in one file, so I can use it as an adaptable template.

 

Thanks a lot for any help in advance,

Rijke

0 Likes
547 Views
4 Replies
Replies (4)
Message 2 of 5

kennyj
Collaborator
Collaborator

Hello @Anonymous,

 

It sounds like you would want to use iParts for you adaptable items, then use the rule to select between the iPart options.

 

See this video:

 

https://www.youtube.com/watch?v=kLbQh-5KXXc

 

Hope this helps,

 

Kenny

 

 

0 Likes
Message 3 of 5

Anonymous
Not applicable

Hello kennyj,

 

thank you for your suggestion!

 

My problem is, there are a lot of parameters that can change in the first part (the rack) and every part that is created variies slightly. I therefore change the parameters of the first part using an embedded excel sheet. The parameters in the excel of the rack than have to be transferred to the other parts in the assembly (e.g. the ladder). 

 

Unfortunately I have not yet found a way that iparts help with this, because the rule that sets the parameters always adapts the part in every document.

 

Kind regards,

 

Rijke

 

 

0 Likes
Message 4 of 5

kennyj
Collaborator
Collaborator

Is your template using the Excel file?

 

If that is the case, that may be why all of your parts are updated when you make changes.

 

I would change from using Excel file to using User Parameters for each Excel field, then use an iLogic form to make the changes to your Racks.  All of this can be in the template, but would remain file specific as you save.  If you are currently using a linked/embed Excel file, then any time an old file is opened, it will update to the latest Excel version (unless you change the Excel file name every time, which would be a file management/file naming problem and not recommended).

 

Hope this helps.

 

Kenny

 

 

0 Likes
Message 5 of 5

Anonymous
Not applicable

Thanks again for your suggestion! Unfortunately I don´t think I can avoid using an Excel sheet, because I have about 100 Parameters that have to be changed each time. A list with These Parameters can be exported from the tool which we use to design the rack. Each rack that is created gets a new Export sheet with a new name anyway, so that should not be the Problem.

 

First I tried embedding the Excel into the part and than Change the link to where the file is located in a User Parameter. A rule than copied the data from that sheet into my embedded Excel-sheet. That works fine, as Long as I Change the link to the Excel via the user Parameter. Onve I change it via an irule (so I can change different parts at the same time), it changes all documents.

 

I tried embedding the Excel into the assembly and then changing the user Parameters of each part with a rule. Unfortunately, the rule still changes the parameters in every document that is created with the template, not just the one I want to change..

 

Is it possible to somehow integrate the name of the file into the rule? So that the rule speaks directly to the rack in the used document? E.g. something like this: "Parameter("File01", "APL:1", "Width") = Steher_Breite" instead of the usual "Parameter("APL:1", "Width") = Steher_Breite"

 

Kind Regards

Rijke

0 Likes