swift 3 – swift optionals

the best way to take care of the optionals mark variable in the swift,

var lotSelected: Int?

if let lot = lotSelected {
    print(lot)
}

always use “if let” sentence to check then use the new constant.

Advertisements

SketchUp tips

選取物件(selecting objects):

拖曳時,右到左
所有沾到圈選範圍的物件
drag from right to left,
all the objects across the selection.

拖曳時,左到右
只有完全落在圈選範圍的物件
drag from left to right,
only the objects completely inside the selection.