> For the complete documentation index, see [llms.txt](https://www.opal-rt.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.opal-rt.com/docs/rt-lab/model-and-simulation/phasor-domain-with-ephasorsim/integrate-a-power-system-model-to-ephasorsim/use-a-powerfactory-model/import-the-powerfactory-model.md).

# Import the PowerFactory Model

{% stepper %}
{% step %}

### Open the ePHASORSIM Solver block mask

Double-click the **ePHASORSIM Solver** block to open its mask.

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-be8761651ac42f4d5a0f0476c9351b92688a8c24%2Feph-rtlab-PowerFactory-mask.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Browse to the DGS-XML file

1. Navigate to the **Network data** tab.
2. From the **Input file format** drop-down menu, select **PowerFactory**.
3. Under **DGS file (XML format)**, click **Select** and choose the model's **DGS file**. To view or edit the contents of the selected file, click **Open**.
4. To import bus switches, enable **Import Switches**. In large networks, importing all switches can significantly increase the number of components and nodes in the imported model.
   {% endstep %}

{% step %}

### Apply changes

Click **Apply**. The DGS-XML file is now imported. Follow the next steps to complete the block configuration.
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.opal-rt.com/docs/rt-lab/model-and-simulation/phasor-domain-with-ephasorsim/integrate-a-power-system-model-to-ephasorsim/use-a-powerfactory-model/import-the-powerfactory-model.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
