# Get-ImageTopologyDiagnostics

Analyzes prepared ChartForgeX topology geometry and routing.

 Command  

**Module**

`imageplayground`

**Inputs**

 `ChartForgeX.Topology.TopologyChart` 

**Outputs**

 `ChartForgeX.Topology.TopologyLayoutDiagnosticReport` 

Analyzes prepared ChartForgeX topology geometry and routing.

## Syntax

```
Get-ImageTopologyDiagnostics
[-LayoutPreset <Automatic|Dense|Compact|Balanced|Presentation>]
[-Topology] <TopologyChart>
[<CommonParameters>]
```

 [#](#method-get-imagetopologydiagnostics-topologylayoutpreset-topologychart) 

Parameter set: `All Parameter Sets`

## Description

Returns machine-readable node bounds, named port positions, edge routes, fallback reasons, overlap scores, and collisions.

## Examples

### Inspect the layout of a service diagram

```powershell
$chart = New-ImageTopology -TopologyDefinition {
    New-ImageTopologyNode -Id api -Label API -Kind Service
    New-ImageTopologyNode -Id db -Label Database -Kind Database
    New-ImageTopologyEdge -SourceNodeId api -TargetNodeId db -Kind Dependency
} -Layout Layered -FilePath service-map.svg -PassThru
$chart | Get-ImageTopologyDiagnostics -LayoutPreset Balanced
```

Exports a service diagram and returns its node and edge layout diagnostics.

## Parameters

**-LayoutPreset TopologyLayoutPreset optional**

Reusable topology spacing and presentation profile.

Possible values: `Automatic`, `Dense`, `Compact`, `Balanced`, `Presentation`

**-Topology TopologyChart requiredposition: 0pipeline: True (ByValue)**

Topology chart to analyze.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:63DE256B4544B225AE5D7186B06490001E8E6CDAA671A906940A55746C869CFF -->
