mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-10 06:58:16 +00:00
29 lines
2.0 KiB
Plaintext
29 lines
2.0 KiB
Plaintext
{\rtf1\fbidis\ansi\ansicpg1252\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset0 Times New Roman;}}
|
|
{\colortbl ;\red0\green0\blue255;}
|
|
\viewkind4\uc1\pard\ltrpar\nowidctlpar\b\f0\fs20 Application:\b0 ParameterValuesFromImage\line\b Revit Platform:\b0 All\line\b Revit Version:\b0 2011.0\line\b First Released For:\b0 2011.0\line\b Programming Language:\b0 C#\line\b Skill Level:\b0 Advanced\line\b Category:\b0 Massing\f1\par
|
|
\b\f0 Type:\b0 ExternalCommand\line\line\b Subject:\b0 Set parameter values based on image data\par
|
|
\par
|
|
\b Summary:\b0 Compute a grayscale value for each pixel in an image file. Use this value to set a parameter that will change the model\rquote s geometry.\f1\par
|
|
\par
|
|
\b\f0 Classes:\b0 \par
|
|
\tab System.Drawing.Bitmap\par
|
|
\pard\ltrpar\nowidctlpar\li720 Autodesk.Revit.DB.DividedSurface\par
|
|
Autodesk.Revit.DB.FamilyInstance\par
|
|
Autodesk.Revit.DB.Parameter\par
|
|
\pard\ltrpar\nowidctlpar\b\f1\par
|
|
\f0 Project Files:\par
|
|
\cf1\b0\par
|
|
\cf0 Command.cs\par
|
|
\tab This file contains the implementation of the SetParamterValueWithImageData command\par
|
|
\f1\par
|
|
\f0\par
|
|
\b Description:\b0 \par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li720 1.\tab Open one of the sample files, Tower.rfa or brickFanWall.rfa\par
|
|
2.\tab Run the external command\par
|
|
3.\tab Revit will open the corresponding image file (Tower.rfa_grayscale.bmp or brickFanWall.rfa_grayscale.bmp)\par
|
|
4.\tab For each panel of the divided surface, Revit will compute the grayscale value of the corresponding pixel in the image file (Red + Green + Blue divided by 3).\par
|
|
5.\tab The panel\rquote s \ldblquote Grayscale\rdblquote parameter will be set to this grayscale value.\par
|
|
6.\tab The panel\rquote s geometry will update based on relationships in the parameter\rquote s definition driven by this parameter.\par
|
|
7.\tab Several sample image files are provided for the Tower example. To use a file, rename it to Tower.rfa_grayscale.bmp before running the command.\par
|
|
}
|
|
|