Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to insert a hanger for pipes

1 REPLY 1
Reply
Message 1 of 2
hugh1682
627 Views, 1 Reply

how to insert a hanger for pipes

If I want to my c# programing to run a fuction that when I click the button, then a hanger will create when I click the pipe.

what can I do?  besides, revit mep dose not have the family, hanger in libraries!!... wouild it possiple to create, and how?

 

the following picture is what I would to do.

防震吊架按鍵示意圖.png

ps: the hanger's diamater will change automatically accroding to the diamater of pipes

 

 

I'm new to revit api programming...

thanks a lot

Tags (1)
1 REPLY 1
Message 2 of 2
Joe.Ye
in reply to: hugh1682

 

Hi,

 

You can create a hanger family first. With regard to how to make a hanger family, reference Revit online document.

 

Then you need to write Revit plugin. 

In the Revit plugin, pick the pipe by Selection.PickObject() method. And then get the Pipe's postion by Pipe.Location property.

And insert the hanger family instance by NewFamilyInstance() method, along the pipe's line. 

that's the basic idea. 

 



Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community