P8 project properties can be calculated in EEC and transferred to the EPLAN project to be created.
Transfer of project data from EEC to P8:
The properties of a P8 project can be configured in EEC and transferred at the time of generation. EPLAN project properties have unique identifying numbers (ID) (e.g., 10230) and names. To allow the EEC user access to all possible properties, while remaining independent of the P8 version used, EEC establishes the reference to the project properties via the ID.
Note:
Project properties have been introduced in P8 as of Version 2.5 that dispose of an identifying name instead of an identifying number, for example [ESS] Report control <ESS.Project.Reports>. These cannot be influenced by EEC by means of model variables!
Setting project properties from EEC:
- Display project property IDs in P8:
To display in P8 the IDs of the project properties, the following configuration in P8 will be necessary: Options > Settings... activate the switch User > Representation > Interface: Display identifying numbers.
- Determining project property IDs:
Select the project, then select in the menu Project > Properties .... All properties whose value column is not grayed out can be written from EEC, e.g., 20919 (order number) (Note: Some properties can be set via the P8 API that cannot be edited in P8).
- Creating parameter object for project property in EEC:
The project properties are mirrored in EEC by parameter objects, whose names consists of two parts: The common prefix and a number, for example, PropId_20919.
The prefix applies to the entire model and can be modified in EEC in the Model > Model variables > ECAD > EPLAN Electric P8 > Prefix for EPLAN Electric P8 properties menu.
- Assigning parameter objects to schematic diagram objects:
Project properties are defined in EEC by assigning the parameter objects with the name scheme mentioned above to the wiring diagram objects. During the generation the values are transferred to P8 automatically.
- Setting parameter values:
There are two types of properties: normal and indexed properties. Normal properties contain the value in EEC as a string. Indexed properties are assigned data of the data type List resp. Map. The index always starts at 1. Prior to the access, the API checks whether the permissible range has been exceeded.
Examples of access:
PropID_10150=List{Pair{1,'Initiale Version'},Pair{2,'Testdaten geƤndert'}}
PropID_10230='KL'
An object of the WiringDiagram type can be saved only if a resource has been assigned, or if the object is highlighted as abstract. An abstract object is used to define a classification level in order to create objects that are derived from an abstract object with all the properties of the latter automatically.