-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
867 additions
and
34 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Python Script use OpenMEP | ||
|
||
OpenMEP allow us to use Python to create MEP elements. This is a very powerful feature that allows us to create MEP elements in a very flexible way. In this section, we will learn how to use Python to create MEP elements. | ||
## Getting Started with OpenMEP | ||
|
||
To get started with **OpenMEP**, we need to install OpenMEP package. OpenMEP package is available at [Latest Release](https://github.com/chuongmep/OpenMEP/releases/latest), and then let follow the instruction to install OpenMEP package at [How to install OpenMEP package](https://chuongmep.github.io/OpenMEP/tutorial/installation.html). | ||
|
||
|
||
Now, when we open Dynamo Revit, we can see **OpenMEP** package in the library, let start with the first example. We will try | ||
|
||
```py | ||
# Load the Python Standard and DesignScript Libraries | ||
import sys | ||
import clr | ||
clr.AddReference('OpenMEP') | ||
import OpenMEP | ||
from OpenMEP.Element import Duct as d | ||
|
||
OUT =dir(d) | ||
``` | ||
|
||
![](pic/ImportLibrary.png) | ||
|
||
Now, let try to create a **Pipe** with Python use **OpenMEP** package. | ||
|
||
```py | ||
|
||
# Load the Python Standard and DesignScript Libraries | ||
import sys | ||
import clr | ||
clr.AddReference('OpenMEP') | ||
import OpenMEP | ||
from OpenMEP.Element import Pipe as p | ||
systemType = IN[0] | ||
pipeType = IN[1] | ||
level = IN[2] | ||
line = IN[3] | ||
OUT = p.Create(systemType,pipeType,level,line) | ||
``` | ||
|
||
![Create Pipe](pic/CreatePipe.png) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,10 @@ | |
|
||
```{tableofcontents} | ||
``` | ||
|
||
```{contents} | ||
``` | ||
|
||
## Current | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
# Family Document | ||
# Family Document | ||
|
||
```{contents} | ||
``` | ||
|
||
## FamilyManager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
# Cable Tray | ||
|
||
```{contents} | ||
``` | ||
## Create | ||
|
||
### Create By Two Point | ||
|
||
### Create By Two Connector | ||
|
||
### Create By Line | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
# Conduit | ||
# Conduit | ||
|
||
## Create | ||
|
||
### Create By Two Point | ||
|
||
### Create By Two Connector | ||
|
||
### Create By Line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,32 @@ | ||
# Duct | ||
# Duct | ||
|
||
```{contents} | ||
``` | ||
|
||
## Create | ||
|
||
### Create By Two Point | ||
|
||
### Create By Two Connector | ||
|
||
### Create By Line | ||
|
||
### Create By Connector And End Point | ||
|
||
## CreatePlaceholder | ||
|
||
## SetDiameter | ||
|
||
### Rectangular | ||
|
||
### Round | ||
|
||
## GetDiameter | ||
|
||
## SetSystemType | ||
|
||
## Shape | ||
|
||
## IsHvacSystemTypeId | ||
|
||
## IsDuctTypeId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
# Element | ||
|
||
```{tableofcontents} | ||
``` | ||
``` | ||
|
||
```{contents} | ||
``` | ||
|
||
## LocationCenter | ||
|
||
## GetDocument | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
# Family | ||
# Family | ||
|
||
```{tableofcontents} | ||
``` | ||
|
||
```{contents} | ||
``` | ||
|
||
## EditFamily | ||
|
||
## FamilyCategory | ||
|
||
## IsOwnerFamily |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,19 @@ | ||
# Family Manager | ||
# Family Manager | ||
|
||
```{contents} | ||
``` | ||
|
||
## Set | ||
|
||
## CurrentType | ||
|
||
## TypeExits | ||
|
||
## NewType | ||
|
||
## GetParameters | ||
|
||
## Types | ||
|
||
## GetParameter | ||
|
Oops, something went wrong.