awhite343
2006-07-11, 05:03 PM
Hey all:
Is it possible to change an object's parameters programmatically? In VB2005, I get an error that the property 'Parameter' is read only when using the following line:
Set elem.Parameter(Parameters.BuiltInParameter.STRUCTURAL_NUMBER_OF_STUDS) = "(24)"
Is there another way to set this that I'm missing or is this not accessible currently through the API?
I'd like to make an improved "match type" command for composite steel beams, but am not sure if it's possible. The "match type" program native to REVIT will only change the beam size, but the other parameters do not carry over (for example, "number of studs" and "camber"). So, I'd like a program that would not only change the beam, but also set the parameters for "number of studs" and "camber". Currently, the user has to manually enter in the number of studs and camber for every beam, either by accessing the object's properties or selecting its tag. This is obviously brutally slow compared to our previous customization in other platforms.
Thanks in advance,
Aaron
Is it possible to change an object's parameters programmatically? In VB2005, I get an error that the property 'Parameter' is read only when using the following line:
Set elem.Parameter(Parameters.BuiltInParameter.STRUCTURAL_NUMBER_OF_STUDS) = "(24)"
Is there another way to set this that I'm missing or is this not accessible currently through the API?
I'd like to make an improved "match type" command for composite steel beams, but am not sure if it's possible. The "match type" program native to REVIT will only change the beam size, but the other parameters do not carry over (for example, "number of studs" and "camber"). So, I'd like a program that would not only change the beam, but also set the parameters for "number of studs" and "camber". Currently, the user has to manually enter in the number of studs and camber for every beam, either by accessing the object's properties or selecting its tag. This is obviously brutally slow compared to our previous customization in other platforms.
Thanks in advance,
Aaron