- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Adam,
I am a little confused by the code you posted so I think I am not being clear enough. I have attached a file of one of my models to hopefully explain a little bit better. Please open it and set the view rep to "Default" and the LOD to "iLogic".
I am not sure how the pack and go feature works with regards to Material libraries so I hope I can explain properly.
Please open up the parameters window. You will notice the last 5 parameters are the exact same multivalue liss but with different names (created with a rule). I was hoping to potentially control the materials with these lists but they will be useful for me to explain to you my intentions. I should mention these paramters have nothing to do with the actual model I am attaching.
The first of the last 5 is named "All_Materials" I used this list to simply GET all of the materials available in my custom library.
The next 4 parameters are the actual parameters I need control of. The "Stem_Material" Parameter in reality can either be 304 or 316 S.S. regardless of the rest of the assembly.
The "Pedestal_Material" in reality can either be Galvanized Steel, and 304 or 316 S.S., regardless of the rest of the assembly.
The "Hardware_Material" is for all of the fasnteners and they can either be 304 or 316 regardless of the rest of the assembly.
The "Stainless_Grade" is for what I keep referring to as the "rest of the assembly". I feel this might be the trickiest part. The rest of the assembly is one large assembly made up of a few sub-assembies. It is composed of mostly S.S. but it does have a couple rubber components to it which is why the previously mentioned code that changes all materials does not work the way I want it to. In this large assembly I need to be able to change all of the STEEL to either 304 or 316.
I feel like there has to be as easy way to accomplish this. The reason I created the multivalue lists is because I thought I would simply be able to write a rule that would look something like this
IF Pedestal_Material = "GALVANIZED STEEL" Then
iProperties....Material = "GALVANIZED STEEL"
End if
Please let me know if this makes sense...
Thanks
Sandro