2013年5月1日星期三

Arch 653 Final Project



In the project two, I added some parameters to change the color of the building, include panel and light.

The first command is change the color of curtain system. In my case, each panel are the same type, so I only need to change the parameter of the type instead of the instance.
First, I get the id of one panel, create a material for it, which is random in different colors

Then I get the type parameter through 3 steps:
ElementId typeId = panelInstance.GetTypeId();
ElementType panelType = document.GetElement(typeId) as ElementType; //Get type
Parameter panelMaterialParam = panelType.get_Parameter("Material");

Third, calculate new values for the color of material, the value of color is base on RGB fomula.  
#region 3 Calculate new values
              
                byte red = (byte)random.Next(0, 255);
                byte green = (byte)random.Next(0, 255);
                byte blue = (byte)random.Next(0, 255);
                Material myMaterial = material.Duplicate("My Material " + m + "-" + n);
                myMaterial.Color = new Color(red, green, blue);
                myMaterial.Transparency = 50;
                #endregion


The second part is changing the light of building at night.
First, I put four types of light in the building, one type is interior light and other three are exterior lights.
                
Then I get id from those three exterior lights separately, set a parameter of the light color, and change the color random for three lights.
Because each light has one random color, so I have to repeat the process three times.
Then get the type parameter from objects.

Caluculate the new parameter of color
The value of color is base on MSaccesscode which is different from RGB, So I have to convert RGB value to MSaccesscode.

Then set the parameter of color to each exterior lights.


Also, I set the light color and luminous intensity of interior light with white color and 100.

Run the application and rendering.

2013年3月26日星期二

ARCH 653 PROJECT PROCESS


To build this model , the major challenge for me is how create the curve roof and floor. It is very hard to create the complex curved surface. I tried different ways in surface:divided the surface into three separate curve, and use a series of curve at parallel reference plane. However, these ways cannot create a precise curve. Then I found that curve is formed by contours. But the surface created by topography tools cannot be edited as mass or created to a roof , or surface cannot be created by contours in the conceptual mass. In this case, I use rhino to finish my conceptual mass. I use AutoCAD, Rhino and Revit in my project.



Trial 1 -  Parallel reference plan in Revit

drawing curves on parallel reference plans and make a form.



I can only define limited number of lines and cannot create a very  precise curve.

Trial 2 contours
 use topography tool in revit



It can create a surface but that cannot edit in mass or project.

Trail 3 
In conceptual mass, I insert autocad files and align contours to different levels base on their elevation.

try to create forms
It failed because there are more than one lines on a reference plan.



Trial 4    



mesh geometry cannot used to compute mass floor, so I use roof instead of it.

ARCH 653 BIM midterm project