Realise command Split Element in Revi API

Realise command Split Element in Revi API

gnab
Enthusiast Enthusiast
488 Views
4 Replies
Message 1 of 5

Realise command Split Element in Revi API

gnab
Enthusiast
Enthusiast

Hello, everyone. Could you tell me how to do something similar to the "Split Element" command in Revit API? I know that I need to use BreakCurve method to split an element (pipe, duct and etc.) but i want a user can previously set separating point with temporary object snap as with "Split Element" command.

gnab_0-1661287767429.png

 

Accepted solutions (1)
489 Views
4 Replies
Replies (4)
Message 2 of 5

stewart_skyler
Enthusiast
Enthusiast
Message 3 of 5

gnab
Enthusiast
Enthusiast

I know about this method. That's not the question. How to make a user can set break point himself visually on pipe curve, not programmatically?

Message 4 of 5

jeremy_tammik
Alumni
Alumni
Accepted solution

You can either use PostCommand to launch the built-in Revit command with its entire standard user interface, in which case you cannot modify its behaviour, or you can implement your own programmatic approach, in which case you have to use the existing API methods and forget about the standard Revit UI functionality.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 5 of 5

gnab
Enthusiast
Enthusiast

Understood, thanks for answer, Jeremy!