# `GSBaseObject setAttributesFast:format:`

*Instance Method*

Replaces all attributes without registering undo or notifying the parent.

## Declaration

```swift
func setAttributesFast(_ attributes: [GSShapeKey : Any], format: GSFormatVersion)
```

```objc
- (void) setAttributesFast:(NSDictionary<NSString *,id> *) attributes format:(GSFormatVersion) format;
```

```python
setAttributesFast_format_(attributes: dict[str, object], format: GSFormatVersion)
```

## Parameters

- `format` — The file format version used to decode attribute values.

## See Also

### Attributes

- [`GSBaseObject.attributes`](/Core/GlyphsCore/GSBaseObject/attributes) — Additional values associated with the object.
- [`GSBaseObject.countOfAttributes`](/Core/GlyphsCore/GSBaseObject/countOfAttributes) — The number of attributes.
- [`GSBaseObject attributeForKey:`](/Core/GlyphsCore/GSBaseObject/attributeForKey:) — The value for an attribute key, or `nil` if no value is set.
- [`GSBaseObject setAttribute:forKey:`](/Core/GlyphsCore/GSBaseObject/setAttribute:forKey:) — Sets or removes an attribute.
- [`GSBaseObject setAttributes:format:`](/Core/GlyphsCore/GSBaseObject/setAttributes:format:) — Replaces all attributes using values encoded for a file format version.
- [`GSBaseObject removeAttributeForKey:`](/Core/GlyphsCore/GSBaseObject/removeAttributeForKey:) — Removes an attribute.

