Change start offset of a pipe REVIT API

Hi all , I am trying to change start offset of a pipe (which is not not connected to any elements) using revit api using this code…Since its a ready only parameter we cannot change that parameter using .Set method(underlined with blue line) …any workaround available to achieve the same.Also is there any way to change output unit from feet to mm(not conversion i am asking ).

change pipe startoffset.dyn (4.8 KB)

I believe that this is controlled by the location curve of the pipe.

is it possible to change start point and endpoint of location curve after accessing it…I am trying to do so…

Element.SetLocation should work. Remember you will have to edit connected elements too.


yes…we can move a pipes offset by redefining its location Line…Please refer below link for further clarification.