If you are working with EPLAN Electric P8, a software for planning, documenting, and managing electrical engineering projects, you may have encountered EDZ files. These are data archives that contain macros and parts data for various components, such as control units, sensor modules, and line modules. In this article, we will explain what an EDZ file is, how to create one, how to import one, and how to open one.
What is an EDZ file?
An EDZ file is a data archive used by EPLAN Electric P8. It contains all the specifications that are required to create one or more macros from them in P8. A macro is a reusable element that can be inserted into a project, such as a symbol, a function template, or a page. A part is a component that has properties such as name, description, order number, manufacturer, and price.
A part.xml file that contains the parts data in XML format.
An image file that contains the graphical representation of the part.
A C# script file that contains the logic for creating the macro.
A model variable file that contains the parameters for the C# script.
An EDZ file can be created without an installation of EPLAN Electric P8 on the same computer. However, a valid installation of EPLAN Electric P8 is required to create the P8 macros from the EDZ file.
How to create an EDZ file?
To create an EDZ file, you need to have the following prerequisites:
A part.xml file that contains the parts data in XML format. This can be created by the text discipline if it is not yet provided by other subsystems.
An image file that contains the graphical representation of the part. This can be any common image format such as JPG, PNG, BMP, or GIF.
A C# script file that contains the logic for creating the macro. This can be written using any text editor or IDE that supports C# syntax.
A model variable file that contains the parameters for the C# script. This can be created using EPLAN Electric P8 or any text editor.
To generate the EDZ file, you need to use the command ECAD.GenerateEdzForEadProjectCommand. This command takes the following arguments:
partXmlFilePath: The path to the part.xml file.
pictureFilepath: The path to the image file.
scriptFilePath: The path to the C# script file.
scriptArguments: The arguments for the C# script.
The command will create an EDZ file in the same folder as the part.xml file. The name of the EDZ file will be based on the name of the part.xml file.
How to import an EDZ file?
To import an EDZ file into EPLAN Electric P8, you need to have a valid installation of EPLAN Electric P8 on your computer. You also need to have access to the EPLAN Data Portal, which is an online platform that provides access to thousands of parts data from various manufacturers and suppliers.
To import an EDZ file into EPLAN Electric P8, follow these steps:
Open EPLAN Electric P8 and go to Data Portal.
Select Import from the menu bar and choose EPLAN Data Zip (.edz).
Browse to the location of the EDZ file and select it.
Click Open. The EDZ file will be imported into your project and you will see a confirmation message.
How to open an EDZ file?
To open an EDZ file outside of EPLAN Electric P8, you need to have a program that can extract ZIP files. An EDZ file is essentially a ZIP archive that contains XML files and other files. You can use any common ZIP utility such as WinZip, WinRAR, 7-Zip, 06063cd7f5