# `GSPath initWithDict:format:`

*Initializer*

Creates a path from a Glyphs file dictionary representation.

## Declaration

```swift
init?(dict pathDict: [String : Any], format formatVersion: GSFormatVersion)
```

```objc
- (instancetype) initWithDict:(NSDictionary<NSString *,id> *) pathDict format:(GSFormatVersion) formatVersion;
```

```python
initWithDict_format_(pathDict: dict[str, object], formatVersion: GSFormatVersion) -> GSPath
```

## Parameters

- `formatVersion` — The Glyphs file format version used to interpret the representation.

## Discussion

Returns `nil` when the representation contains no nodes or invalid data.

## See Also

### Creating a Path

- [`GSPath initWithGlyphsParser:format:`](/Core/GlyphsCore/GSPath/initWithGlyphsParser:format:) — Creates a path from the Glyphs file representation at the current parser position.
- [`GSPath pathWithString:isClosed:`](/Core/GlyphsCore/GSPath/pathWithString:isClosed:) — Creates a path from a sequence of node element strings.
- [`GSPath pathWithRect:`](/Core/GlyphsCore/GSPath/pathWithRect:) — Creates a closed rectangular path enclosing the rectangle.
- [`GSPath circleWithRect:`](/Core/GlyphsCore/GSPath/circleWithRect:) — Creates a closed cubic path approximating an ellipse inside the rectangle.
- [`GSPath circleWithCenter:radius:`](/Core/GlyphsCore/GSPath/circleWithCenter:radius:) — Creates a closed cubic path approximating a circle.
- [`GSPath ellipseWithCenter:radius1:radius2:angle:`](/Core/GlyphsCore/GSPath/ellipseWithCenter:radius1:radius2:angle:) — Creates a closed cubic path approximating an ellipse.

