Buckets:
| AUTHOR: pengx | |
| Application: CreateFillPattern | |
| Revit Platform: All | |
| Revit Version: 2012.0 | |
| First Released For: 2012.0 | |
| Programming Language: C# | |
| Skill Level: Beginning | |
| Category: Elements | |
| Type: ExternalCommand | |
| Subject: Create and apply FillPatternElement and LinePatternElement | |
| Summary: | |
| This sample demonstrates how to create or retrieve a FillPatternElement or LinePatternElement and apply them to the surface or grid. | |
| Classes: | |
| Autodesk.Revit.UI.IExternalCommand | |
| Autodesk.Revit.DB.FillPatternElement | |
| Autodesk.Revit.DB.LinePatternElement | |
| Project Files: | |
| FillPatternForm.cs | |
| This file contains the functions that how to create or retrieve FillPatternElement or LinePatternElement and how to apply them to surface or grid. | |
| Description: | |
| - | |
| The tab page with the name FillPatterns contains a tree view which lists all the FillPatternElements which can be retrieved from current document. Select one node and click | |
| ApplyToSurface | |
| button, you can set the selected FillPattern to the selected walls surface of current document. | |
| - | |
| The tab page with the name FillPatterns contains a tree view which lists all the FillPatternElements which can be retrieved from current document. Select one node and click | |
| ApplyToCutSurface | |
| button, you can set the selected FillPattern to the selected walls cutting surface of current document. This means you can watch the effect from plane view. | |
| - | |
| The tab page with the name LinePatterns contains a tree view which lists all the LinePatternElements which can be retrieved from current document. Select one node and click | |
| ApplyToGrids | |
| button, you can set the selected LinePattern to the selected grids of current document. | |
| - | |
| Clicking the | |
| CreateFillPattern | |
| button, you can create a FillPatternElement and apply it to the selected walls surface. | |
| - | |
| Clicking the | |
| CreateLinePattern | |
| button, you can create a LinePatternElement and apply it to the selected grids. | |
| Instructions: | |
| 1. | |
| Open the | |
| CreateFillPattern | |
| rvt file in the same folder as source code. | |
| 2. | |
| Load and run the CreateFillPattern.dll. | |
| 3. | |
| Select a FillPatternElement from tree view. Click | |
| ApplyToSurface | |
| button, The FillPattern can be applied to the selected walls surface. | |
| 4. | |
| Select a FillPatternElement from tree view. Click | |
| ApplyToCutSurface | |
| button. The FillPattern can be applied to the selected walls cutting surface. You can watch the effect from plane view. | |
| 5. | |
| Select a LinePatternElement from tree view. Click | |
| ApplyToGrids | |
| button. The LinePattern can be applied to the selected grids. | |
| 6. | |
| Click the | |
| CreateFillPattern | |
| button. A FillPatternElement can be created and applied to the selected walls surface. | |
| 7. | |
| Click the | |
| CreateLinePattern | |
| button. A LinePatternElement can be created and applied to the selected grids. |
Xet Storage Details
- Size:
- 2.8 kB
- Xet hash:
- 9fb75cd974d1db4279d3e6f71a8ccab1e9ac5e2545226dfda6746b201bacbc54
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.