I want to move pointer for creating Pipe from one place to another place Programmatically while drawing Pipe from revit.
please refer below image.
while drawing pipe from revit i am able to change offset(Ex. from 15 to 16). but unable to change create pipe pointer location from red point to orange point(refer image) Programatically.
Is this possible?
OR
can we change or access Offset value Programatically while drawing Pipe from Revit.
Refer below image
Please suggest..
Regards
Namit Jain
Via the
Autodesk.Revit.DB.Plumbing
namespace: There is a function:And you can use that in your code like:
There are overloads for the
Create(...)
function, so take a look at those too. If you're connectingPipe
s andFamilyInstance
s like fittings, you can use thewhich will connect them directly via the
Connector
s. As for offsetting the pipes, what I did above should suit you best. Good luck!Added Note (edit)
And the
Offset
in your second image refers to theZ
axis of your plane. You want to do something more like