Message 1 of 2
Modify height don't work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I should modify length of rebar (type shape '77') and it's don't work !
How modify programming the length of the rebar (shape '77') ???
The code which divise by 2/3 the length but it don't work.
Thank.
Rebar rborg = TcmPick.saisiracier(uiapp.ActiveUIDocument, "rebar"); Document doc = rborg.Document; Transaction trans; trans = new Transaction(doc); trans.Start("diviseheight"); /*RebarShapeDrivenAccessor ef = rborg.GetShapeDrivenAccessor(); ef.Height *= 00.75;*/ var pp = rborg.get_Parameter(BuiltInParameter.REBAR_MAX_LENGTH); double d = pp.AsDouble(); pp.Set(d * 0.66); pp = rborg.get_Parameter(BuiltInParameter.REBAR_MIN_LENGTH); d = pp.AsDouble(); pp.Set(d * 0.66); pp = rborg.get_Parameter(BuiltInParameter.REBAR_SHAPE_SPIRAL_HEIGHT); d = pp.AsDouble(); pp.Set(d * 0.66); trans.Commit();