public ShapeElement applyPattern(ShapeElement shapeElement, AreaPattern pattern) { View view = app.CommandState.LastView(); Matrix3d viewRoration = view.get_Rotation(); shapeElement.SetPattern(pattern, viewRoration); changePatternCell(shapeElement); return(shapeElement); }