nickjb
Mechanical
- Jun 19, 2007
- 35
I need a bit of help with custom properties.
I'm trying to set up a custom propery that contains a detailed material spec. What I want is the user to choose a material from the list as normal but once they have chosen the material a second property is populated with more detail. Ideally the list of detailed specs would be stored in a text file and read from there.
eg Property: Material; Value: Steel A1
Property: Material spec; Value: ASTM A228 spring temper
I have a horridly clunky way of doing it but I'm sure there is a better way.
swCustPropMgr.Get2 "Material", valOut, evalValOut
Select Case evalValOut
Case Is = "Steel A1"
swCustPropMgr.Delete ("MaterialSpec")
Success = swCustPropMgr.Add2("MaterialSpec", swCustomInfoText, "ASTM A228 spring temper")
End Select
I'm trying to set up a custom propery that contains a detailed material spec. What I want is the user to choose a material from the list as normal but once they have chosen the material a second property is populated with more detail. Ideally the list of detailed specs would be stored in a text file and read from there.
eg Property: Material; Value: Steel A1
Property: Material spec; Value: ASTM A228 spring temper
I have a horridly clunky way of doing it but I'm sure there is a better way.
swCustPropMgr.Get2 "Material", valOut, evalValOut
Select Case evalValOut
Case Is = "Steel A1"
swCustPropMgr.Delete ("MaterialSpec")
Success = swCustPropMgr.Add2("MaterialSpec", swCustomInfoText, "ASTM A228 spring temper")
End Select