Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
How to set / (modify) rebar Layout Rules from fixed to Maximum space in REVIT API 2024
Alternate to SetLayoutAsMaximumSpacing ?
using (Transaction tx = new Transaction(doc))
{
tx.Start("Transaction Name");
var layoutRule = new RebarLayoutRule();
layoutRule = RebarLayoutRule.MaximumSpacing;
var rebar = Rebar.CreateFromCurvesAndShape(doc, rebarShape, rebarBarSize, null, null, elem,
XYZ.BasisY, curves, RebarHookOrientation.Right, RebarHookOrientation.Left);
tx.Commit();
}
Solved! Go to Solution.