![]() ![]() Item.SetLayoutAsFixedNumber(10, 1.5, true, true, true) įorgive me for my poor code formatting. indicated by normal and both first and last bar in the set are shown View Templates are available to apply the VG settings of one view to multiple views, but if you have multiple links visible in the one view, then there is no in-built way to replicate the custom settings of one link to the other links. with bars of the bar set on the same side of the rebar plane as There seems very limited ability to easily replicate the VG settings of linked files across multiple views in a project. set specific layout for new rebar as fixed number, with 10 bars, (RebarStyle.Standard, barType, hookType, hookType, normal,Ĭurves, RebarHookOrientation.Right, RebarHookOrientation.Left, true, true) RebarContainerItem item = container.AppendItemFromCurves Line line = Line.CreateBound(origin, rebarLineEnd) Ĭurve rebarLine = line.CreateOffset(0.5, normal) create rebar along the length of the beam LocationCurve location = beam.Location as LocationCurve Define the rebar geometry information - Line rebar RebarBarType barType, RebarHookType hookType) void AddItemsToRebarContainer(RebarContainer container, FamilyInstance beam, Here is the code in order to create a rebar Container. Which requires the Document in which you want to create a new RebarContainer, the host Element which will host the new RebarContainer and the ElementId of the RebarContainerType which will be assigned to the new RebarContainer. You may use the static method RebarContainer.Create() RebarContainerItem provides properties and methods similar to that of a Rebar element. ![]() Each RebarContainer contains a collection (empty when first created) of RebarContainerItem objects. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |