Model States and Custom Values
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have created an Assembly which will have a handful of Model States which will select components based on the PIPE DIAMETER users select. This already works as expected.
I would also like users to be able to put in their own PIPE LENGTH, which drives one part of the assembly. This seemed straight forward. I was using CASE to switch between STATES. I added a custom parameter into my assembly. When each CASE is fired, it also runs
Parameter("SPREADER_BAR_PIPE:1", "Length") = sb_pipe_length
which sets "Length" to the user's parameter. Except I get an error...
"Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))"
Do I need to do something special to part parameters which change when dealing w/ assembiles w/ model states?
**EDIT**
My co-worker ran into this problem on Friday as well, clued me into some weird oversights on how Model States was designed.
I removed Model State from the part which needs custom length, cleaned up code, and it works well now. One big problem though...
I had to avoid user parameters in my iLogic, because it updates the Model States spreadsheets, thus I can't use the built-in 'Forms', and the iLogic snippet forms are too short, not good UI.
Is there ANY WAY to exclude a user parameter from Model States? That would fix everything!!!
Otherwise I feel like we were sold on Model States, and it's nothing more than a trap for our use.