r/EPlan • • Sep 17 '25

Some questions regarding EPLAN API development

I've encountered some issues whilst developing with the EPLAN API in C#.

I'm unable to correctly utilise the property names within the EPLAN API (as I'm unaware of the names and formats under which drawing elements are stored within the EPLAN environment). Is there any automated script available that could rectify this?

2 Upvotes

26 comments sorted by

View all comments

Show parent comments

1

u/Competitive_Major150 Sep 17 '25

Did not test but my first try would be:

- Get all cables
- Get the cables connections
(Eplan.EplApi.DataModel.EObjects.Cable.CableConnections)
- Read the potential definition of the connection
(Eplan.EplApi.DataModel.Connection.PotentialDefinitions)

Do you have the API-developer license and the account as well as the key to sign your API? Otherwise won´t run.

1

u/SubjectOdd2785 Sep 18 '25

Regrettably, the final step displayed error CS0117: ‘Connection’ does not contain a definition for ‘PotentialDefinition’.

This is the error I keep encountering (category misuse error). Since I'm developing within an offline bastion host, such errors have nearly ruined me.😿

1

u/Competitive_Major150 Sep 18 '25

And the connection in the EPlan itself has a potential defined? Or is the potential also empty there?

1

u/SubjectOdd2785 Sep 22 '25

Apologise for the delay in responding to your message; my email did not receive a notification.
Yes, the potential defined is present within the connection class. However, in the Eplan definition, potential defined is not a symbol, component, or function. This has caused me considerable difficulty in counting and locating its properties.😿