Message 1 of 6
CreateFromRebarShape Method with different shape size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to create round stirrup using the default round shape stirrup "M_T3" with different radius.
The problam is that "create" method uses the default shape bounding box to palce at the origin, but I can't change the radius before I have the stirrup.
I tried to change "roundStirrupRebarShape" radius before calling "create", but it throw an Exception "Read Only parameter".
What is the right way to use this mathod?
org = XYZ.Zero;
xVect = XYZ.BasisX;
yVect = XYZ.BasisY;
Rebar roundStirrup = Rebar.CreateFromRebarShape(rvtDoc,roundStirrupRebarShape, rebarBarType,column, org,xVect,yVect);
//code added before pic 2:
ParameterMap parametersMap = roundStirrup.ParametersMap;
Parameter radiusParam = parametersMap.get_Item("R");
double radius = 32.5 * rvt_cm; //rvt_cm = 0.0328083....[ft]
radiusParam.Set(radius);