Revit 2018 API and versions prior had the following methods which were removed with the release of the 2019 API:
I have been trying to change the layout rule setting for a set of rebars without any success. Is there any replacement for the above mentioned methods that I do not know of? Could someone explain how one sets the layout rule for a given rebar element with Revit 2019 API?
I will be grateful for any assistance offered.
Revit 2018 API and versions prior had the following methods which were removed with the release of the 2019 API:
I have been trying to change the layout rule setting for a set of rebars without any success. Is there any replacement for the above mentioned methods that I do not know of? Could someone explain how one sets the layout rule for a given rebar element with Revit 2019 API?
I will be grateful for any assistance offered.
I have the same problem. Those functions are replaced to the RebarFreeFormAccessor class but I get SEHException every time if I try to use those functions.
I have the same problem. Those functions are replaced to the RebarFreeFormAccessor class but I get SEHException every time if I try to use those functions.
So the free form rebar is just full of bugs. I think the api functions are not even tested once. I recreated the rebar as shape driven rebar then I called the
rebar.GetShapeDrivenAccessor()
This accessor allowed me to use the
accessor.SetLayoutAsMaximumSpacing(spacing, arrayLength, true, true, true);
function without SEHExceptions. So it is working.
So the free form rebar is just full of bugs. I think the api functions are not even tested once. I recreated the rebar as shape driven rebar then I called the
rebar.GetShapeDrivenAccessor()
This accessor allowed me to use the
accessor.SetLayoutAsMaximumSpacing(spacing, arrayLength, true, true, true);
function without SEHExceptions. So it is working.
Can't find what you're looking for? Ask the community or share your knowledge.