Model.view#

Model.view(view_name)#

Modifies the current view. The rotation angle value is defined by hm.setoption(rotation_angle=<value>).

Parameters:

view_name (hwString)

bottom - Bottom view

down - Rotates rotation_angle degrees down

front - Front view

left - Rotates rotation_angle degrees to the left

oside - Other side view

plan - Plan view

rear - Rear view

right - Rotates rotation_angle degrees to the right

side - Side view

up - Rotates rotation_angle degrees up

leftside - Left side view

rightside - Right side view

top - Top view

iso1 - Isometric view 1

iso2 - Isometric view 2

reverse - Reverse the current view

ccw - Rotates rotation_angle degrees counterclockwise

cw - Rotates rotation_angle degrees clockwise

leftsidenofit - Left side view without fit

rightsidenofit - Right side view without fit

bottomnofit - Bottom view without fit

topnofit - Top view without fit

rearnofit - Rear view without fit

frontnofit - Front view without fit

isonofit - Isometric view without fit

Example#

View model with isometric view 1#
import hm
import hm.entities as ent

model = hm.Model()

model.view(view_name="iso1")