Thursday, September 25, 2014

#Ruby Day 1 - Baby Steps

This was actually my first time learning ruby language, and it's through sketchup. These are actually example of a script on how to make stairs. However, these stairs are actually fixed, built on the origin coordinate.

How to use it:

Open up you favourie notepad editor (a simple notepad will do) or you can download Notepad++ (Notepad++ download), copy and paste this script on your notepad. Save as .rb file. This will then make the file as ruby file.

Save the file name as "stairs" (...or anything you want). Put in on your plugins folder where your computer put all of your sketchup plugins folder. It's usually situated in this path if you're using SketchUp 2014 :(C:\Users\user\AppData\Roaming\SketchUp\SketchUp 2014\SketchUp\Plugins)

Save the file again on the notepad. Open up Sketchup.

There's a menu under the "Plugin" tab, "Draw Stairs". When you you click it it will state a command line on Ruby API, then it will execute the command. The resulting command actually produce 10 steps of stairs right on the origin.


Here's the script:

# Standard API
require 'sketchup.rb'

# Show Ruby console at start-up so we can see any programming errors
SKETCHUP_CONSOLE.show

# Add a menu item to launch our plugin.
UI.menu("Plugins").add_item("Draw stairs") {
 UI.messagebox("I'm about to draw stairs")
 # Call our new method
 draw_stairs
 }

def draw_stairs
# Create some variables
stairs = 10
rise = 8
run = 12
width = 100
thickness = 3

# Get "handles" to our model and the entities collection it contains.
model = Sketchup.active_model
entities = model.entities

#Loop across the same code several times
for step in 1..stairs

# Calculate our stairs corners
x1 = 0
x2 = width
y1 = run * step
y2 = run * (step + 1)
z = rise * step

# Create a series of "points", each a 3-item array containing x,y, and z
pt1 = [x1, y1, z]
pt2 = [x2, y1, z]
pt3 = [x2, y2, z]
pt4 = [x1, y2, z]

# Call methods on the Entities collection to draw stuff
new_face = entities.add_face pt1, pt2, pt3, pt4
new_face.pushpull thickness
end
end

It will look something like this on your notepad (or any note editor):



After executing the file it will look something like this (minus all of the other Plugins :P):



SOURCE:  Ruby Language Sketchup Tutorial - How to make stairs


GLHF!
AND ONCE AGAIN. THANK YOU GOOGLE!

Sunday, September 14, 2014

"PONTENG"

Hello world.

It seems that I've actually graduated from LUCT (it was 8 months ago). So I'm not there yet. I'll be posting some of the random personal projects I've been working on on this blogspace.

It's one of my therapy besides gym. Besides, I mis-envisioned an architecture firm as a place of geniuses drafting brilliant architecture, not a drafting factory. OH WELL!

*I've just finished eating a bag of peanut, waiting for another wave of breakfast*

Tuesday, March 20, 2012

Moment - Chapter 2 - Le Personal Notes


Moments - Part 1 - Basic understandings of Moments




Moments - Part 2 - Basic problem solving example 


(all videos are from Khan Academy YouTube. All the credits belongs to him for the awesome videos)





Sunday, March 11, 2012

Basic Loading Calculations (Beams & Slabs) 1 - Prologue - Le Personal Notes

Load Transfer From :
Roof > Slabs > Beam > Column > Floor > Foundation

2 types of loads : Imposed Load & Dead Load

Imposed Load (IL): 
  • Furnitures
  • Human
  • Any Temporary Loads
Dead Load (DL):
  • Beam
  • Slab
  • Column
  • The weight of the building itself 
If ratio of Lx : Ly equal or smaller than 2, = one -way slab = Lx / Ly  > or =  2

If ratio of Lx : Ly bigger than 2, = two -way slab = Lx / Ly  <  2

Standard Factor Of Safety (F.O.S.) of:
  • Imposed Load : 1.4 Gk
  • Dead Load : 1.6 Qk
  • Thus load combination formulae :  1.4 Gk  (DL) +  1.6 Qk  (IL)
  • Assuming that 1.4 and 1.6 is a constant. 
  • The Dead Load (DL) and Imposed Load (IL) is a variable.
Example :

(A)




1.       List out the available information (assuming that IL and DL values had been given) :
a.       IL = 2.5 kN/m2

b.      DL = 3.0 kN/ m2

c.       Density of Concrete = 24 kN/ m2

2.       Determine the type of load transfer on the slab :
a.       Lx / Ly = 9/3 = 3>2 , thus a one-way slab

3.       Determine the beam that react to the weight of the slab :
a.       Since it’s a one-way beam , only half of the slab weight acted on the beam

4.       Calculate the Combination load using the formula:
a.       Design Load, a = 1.4 Gk  (DL) +  1.6 Qk  (IL)

b.      Design Load, a = 1.4 Gk  (3.0) +  1.6 Qk  (2.5)

c.       Design Load, a = 8.2 kN/ m2

d.      *note that the answer is actually amount of weight acting on 1 m2 area

5.       Calculate the Effective Area, Aeff :
a.       Effective Area, Aeff = Lx x ½ (Ly)

b.      Effective Area, Aeff = 9 x 1.5

c.       Effective Area, Aeff = 13.5 m2

6.       Calculate the Concentrated Load, W :
a.       Concentrated Load, W = 8.2 kN/ m2 x 13.5 m2

b.      Concentrated Load, W = 110.7 kN

c.       Thus, the final answer, W = 110.7 kN, which is the total load acted on the beam



(B)

  


How much is the load acted each on 1m across the beam?
1.       Just simply divide the final answer from (A) with the total length of the beam.

a.       Design Load, a = 110.7 kN /  9 m

b.      Design Load, a = 0.91 kN/ m


Saturday, March 10, 2012

Architecture, Power, and National Identity 1 - Prologue - Le Personal Notes



Architecture and Urban Design have been manipulated in the service of politics.

Government buildings serve as symbols of the state, much can be learnt about a political practices by observing closely of what it builds.






What actually Vernacular Architecture suppose to be :


A collective notion

Developed throughout generations

Influenced by several factors which is:

  • Local materials and resources
  • Climatic
  • Geographical conditions
  • Local rules system
Apolitical - Not interested or involved in politics 

More about Stability, homogeneity, and similarity

A static building form; it fits perfectly 

"Vernacular architecture as a static building form, which cannot be improved as it fits its context perfectly, and that its origins of building-form and method have often been forgotten" 
(based on  Rudofsky's (1964) "Architecture without Architects")



What actually Vernacular Architecture has become :

Uses local building details in a cliché way 

Simply tries to visualise an image without really attempting to ‘understand’ the native techniques and their architectural heritage

Functions to calm our image of a radically changed ‘developing world’ 

Hides the transformations that have occurred

De-politicizes the political impact that architecture could have



Most obvious example : 

Work of Renzo Piano

Hotel resorts duplicating local style and traditional building method

 (sources are from : Architecture and Identity & The Vernacular: or Towards a new Brutalism )



Friday, March 9, 2012

Six space set 1 - Prologue - Le Personal Notes


Centric -

  • Centre space as the main point of entrance & exit, also allowing movement to consecutive rooms.
  • Note that It consist of only singular volume, which is only connected by a single space.
  • Usually the furnitures are always arranged along the walls.

Courtyard -

  • also known as ATRIUM.
  • One of the components of centric.
  • "...An enclosed area, often a space enclosed by a building that is open to the sky... Primary meeting space..."
  • Open area, rarely enclosed.
  • functions similar to centric space.
  • Every rooms are connected with the courtyard itself
  • sometimes functions as garden, allowing sunlight

Cloister -

  • " A rectangular open space surrounded by covered walks or open galleries, with open arcade on the inner side..."
  • "...a quadrilateral enclosure..."
  • centre space is inaccessible, and surrounded by walk paths.
  • a radial spinal space, taken a spinal space and linked the pathway from the other end to another.

Linear -

  • a single straight forward linear motion
  • Single volume
  • Long & narrow
  • rectangular
  • sometimes, bathrooms are partially enclosed

Spinal -

  • addition of branches to the existing linear space
  • not in a single volume, thus partitions needed to divide spaces

Serial Progression -

  • The serial idea is build upon the sense of progression that often characterizes the experience of linear space..."
  • "...scallop shell, chank shell, spray of fresia, pine cone..."
  • addition of gradual increase/decrease space branches to the existing linear space
  • series of rooms connected in different volumes

(sources are from: Purves Patterns & Neille Ramblers )

PAST WORKS - Photo

2011 photography

Rock Band Drum Set


Penang Hillside Housing

Blackwood Cat Food



2011 Designs

ASSA Event Shirt Design 1

ASSA Event Shirt Design 2



Gloria Jeans Doodle