mpostol / ASMD

OPC UA Address Space Model Designer
https://mpostol.github.io/ASMD/
MIT License
58 stars 4 forks source link

The Designer fails to read xml containing default value. #32

Closed mpostol closed 4 years ago

mpostol commented 5 years ago

Dear Bartosz. thank you for reply, I have downloaded a trial of latest version of OPC UA ASMD ( v 3.00.02 ), and tried a few things.

Unfortunately, it looks like it contains a bug, common with the older Version=2.11.0.26399.

In more detail, the Designer fails to read any xml project containing declaration of a default value of the property derived from structure.

To reproduce, one should try to open for instance the OPC Foundation SDK example file …\Quickstarts\Source\Workshop\DataTypes\Common\Types\ModelDesign1.xml (you can find this file also in the attachment). The designer fails with the exception (please find the details in the screenshot ErrorDetails.jpg ).

Now, if one removes such default values declarations from the file, deleting related xml parts

… and tries to open the resulting project ModelDesign1-modified.xml (in the attachment), the project opens as expected ( please see the screenshot ModifiedProjectLoaded.jpg ).   In my opinion, this almost a show-stopper, since in our projects we want to use already declared OPC UA structures, like tns:Range or tns:EUInformation, and also we may want to define additional data types (structures) of our own. For both, we would like to declare actual values when populating the actual address space. Is there any chance of soon fix, or a workaround ?   Thank you for response   Honeywell ACS AT Laboratory Prague V Parku 2326/18 148 00 Prague 4, Czech Republic Phone +420 234 625 918
mpostol commented 5 years ago

Not sure if it is still valid.