Move datum (Levels) ends in section/ elevations in Revit

Hi,
I tried to find revit API methods for moving datum ends in Revit. There are methods for turning on/ off bubbles but… do You know how to move ends of datum levels in dynamo?
btw- I have problem with moving (manual ) those ends. It’s almost impossible, i dont know why :frowning:

Best Regards,
Kamil

You need to work with the DatumPlane of the levels.

First, determine if, in your views, levels should follow the 2D/3D extents (extent type):

Second, build the curve that you want the level extents to follow on each view and assign the curve to the datum plane:

1 Like

Hi- @hamid-dpr - thank You. I tried this, but there is a problem to get curve from revit- every time i got warrning from dynamo, e.g. curve is not a curve. I think the issue here is to select detail line, and then, convert it into curve which is ok for this method.

That sounds like you may be passing a dynamo curve instead of a Revit API curve.
Please check the following post and see if it fixes your problem;

Thanks, it seems that converting detail line to curve is ok, but… its still not working. I hope, this script should allow us to adjust datum length ( here- level ) . To Make it clear, i added picture



Script:
image

Best Regards,
Kamil

the script shows that you fed Level 04 to the node IN[2] , but the section view shows the line drawn on Level 03. That is what the error is saying: the drawn detail line is not on Level 04’s plane.

Unfortunately i still have the same warninng :frowning: Even if detail line is in the same position as level datum
The curve is unbound or not coincident with the original one of the datum plane.
Parameter name: curve

If you can share the rvt model with that section view and detail line, I can investigate for you.
The code worked fine on a few of my models.

Hi ! Thank You- I found reason… I compared two models. In first script goes right- levels elevation are integers, in model 2 they are like on screen- i’m afraid that’s the reason of problems :confused: Now, its really hard to chagne it without e.g. unjoining elements…
And …finally- it seems that great idea was to create new central file…