Code Sample Repository for RevitAPIdocs.com/code
This repository allows the Revit API Community to contribute to the Code Samples section of Revit API Docs.
The Code Samples page uses the Github API to read this repository and inject the files into the browser. [Note: for performance reasons, the code is Cached and will only be refreshed every 6 hours]
Anyone who writes Revit API code and would like to share them with the community.
Python, CSharp
-
Add / Modify the scripts on your fork
-
Create a Pull Request
(More info on how to Create a Pull Request from your fork here)
Once you have made a few contributions, feel free to request to be added as a Repository Contributor:
- Create an Issue Requesting to be added as a Contributor in the Issues Page
- Once you have been added as a contributor, you will be able to Push directly to the repository.
- Scripts should be placed in the appropriate folder, and have the expected extension for that language.
- The filename should be {Category}_{Name}.{ext}, for example:
Snippets_CreateDraftingView.py
- The categories are only loosely defined, and can be revised as the code base grows.
- Scripts must include the license and information described below.
All contributions added to this repository will be shared using the MIT License. Authors can include their own credits, but they should also keep the information listed below at the beginning of each file:
{Short Description}
{Longer Description - Optional}
Tested Revit API: {comma separated years}
Author: {Name | {email, and or github page of Author}
Shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blob/master/LICENSE.md
Filename: CreateDraftingView.py
Creates a drafting view
TESTED REVIT API: 2015, 2016, 2017
Author: Gui Talarico | github.com/gtalarico
Shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blob/master/LICENSE.md