# Script to create a pipe system using Revit Commands

**URL:** <https://forum.dynamobim.com/t/script-to-create-a-pipe-system-using-revit-commands/106617>\
**Category:** Revit\
**Tags:** revit, mep, python, dynamo\
**Created:** [December 16, 2024, 6:01pm UTC](https://forum.dynamobim.com/t/script-to-create-a-pipe-system-using-revit-commands/106617 "2024-12-16T18:01:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ry789](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@ry789](https://forum.dynamobim.com/u/ry789)\
**Post date:** [December 16, 2024, 6:01pm UTC](https://forum.dynamobim.com/t/script-to-create-a-pipe-system-using-revit-commands/106617/1 "2024-12-16T18:01:19Z")

</div>

Hello, I am trying to create a Dynamo script that can essentially use the pipe command and draw a pipe in Revit. I was wondering if it was possible to prompt the user of what pipe type to be used and Revit will have the correct pipe type assigned after drawing? For example asking the user what type pipe to draw: Pipe Type 1, Pipe Type 2, Pipe Type 3, Pipe Type 4. And selecting Pipe Type 3 would then have the user draw the pipe and when checking the properties it will be assigned to Pipe Type 3.

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [December 16, 2024, 6:46pm UTC](https://forum.dynamobim.com/t/script-to-create-a-pipe-system-using-revit-commands/106617/2 "2024-12-16T18:46:08Z")

</div>

The basics of creating an Element in Revit via Dynamo are  
For a line base Element, like a Pipe, to have two Points  
For a Surface, 3 Points  
For a Volume 4 Points

---

<div class="post-metadata">

**Author:** ![danielU3R39](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/danielu3r39/32/97504_2.png) [@danielU3R39](https://forum.dynamobim.com/u/danielU3R39)\
**Post date:** [December 16, 2024, 6:54pm UTC](https://forum.dynamobim.com/t/script-to-create-a-pipe-system-using-revit-commands/106617/3 "2024-12-16T18:54:35Z")

</div>

Yes, this is possible, as said before. You need to use dynamo to create the line geometry then use nodes from MEPover package to create the pipes themselves.

As for the input of type, you probably could use dynamo player for this, or use the data shapes package for something more advanced.

Good luck!
