Error with 'Split' feature when changing Model States
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm making a Component that is either Extruded PVC or LVL Wood
When it's extruded, it's just one solid piece.
When it's LVL, it's multiple layers.
I made everything for the parts first, then at the very end added the 'Split' feature.
Added a 'Yes' or 'No' parameter so that when I say 'Yes' it will split the component to show layers for the LVL, and change the material to plywood to give it the correct look/properties. Then vise versa for the PVC, when I choose 'No' it will suppress the split feature, and change the material to a solid Beige PVC so it corrects to the proper properties.
However, the issues comes when "Model State 1" has the Split as 'Yes' and "Model State 2" has the Split as 'No'.
When I switch between model states it shows the error attached before allowing me to activate the model state I selected.
I've had it both ways where the Split Feature only affects faces, and where it splits the body into multiple bodies. No matter what it shows this error when changing between model states where one has Split as 'Yes', and one has Split as 'No'.
I'm using simple code, I don't know if that's the issue, but this is the code I use to suppress/unsuppress the Split Feature, and to change material.
'Split Active If Split = "No" Then Feature.IsActive("Split") = False End If If Split = "Yes" Then Feature.IsActive("Split") = True End If 'Material Change If Split = "No" Then iProperties.Material = "7 Tan Standard PVC (Rail)" End If If Split = "Yes" Then iProperties.Material = "9 Brown Fire-Rated Wood (Rail)" End If
I've tried it with and without the changing material code and still get the error
I even tried it with a dummy model where the split command is the only feature on the whole part and it still says the same thing.
Any Ideas or Suggestions?