Modelstates, iProperties & Parameters - continued
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey
seeing as i dint get any response on my last similar topic, i tohught id create a fresh one as the requirement is different.
So far, we have established-
- Text parameters cannot be exported as iProperties
- Text Parameters cannot be linked to other components parameters
- ModelStates do not allow for Text parameter values per ModelState like it does with numerical
- ModelStates do allow for individual values but only if the ModelState is manually activated....
ok!
If i place a component into an assembly and that component has multiple ModelStates, i can assign a ModelState to each occurrence. in the Bill of Material, i can manually type in separate properties in the same iProperty field for each ModelState version of that occurrence and that iProperty value per occurrence is saved per ModelState which IS what im trying to do.
In code, i turned to iLogic to try and do the same but once again, it doesnt work as expected
iProperties.Value("Test" &":1", "Custom", "PARTNo") = Parameter("TestBM:1", "PartNo1")
iProperties.Value("Test" &":2", "Custom", "PARTNo") = Parameter("TestBM:1", "PartNo2")
iProperties.Value("Test" &":3", "Custom", "PARTNo") = Parameter("TestBM:1", "PartNo3")
this 'should' look at each occurrence (1,2 & 3) and update the PartNo iProperty "PARTNo" with the retrieved Parameter value collected from TestBM:1 occurrence parameters but it doesnt.
Questions:
how would i successfully get the ModelState iProperty value to receive the required value per modelstate so that the BOM shows them correctly without a manual intervention?
Thanks
Nacho
Automation & Design Engineer
Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.