idea-statica / iom-examples

Examples of using IDEA StatiCa IOM API
MIT License
8 stars 4 forks source link

[BUG] Incosistent plate data between ConnectionData and OpenModelContainer #91

Closed errone92 closed 3 years ago

errone92 commented 3 years ago

Describe the bug I noticed when working on a connection (file linked below) that the origin for some plates (STIFF1a and STIFF1b in the linked file) were incorrect in the ConnectionData when using IdeaStatiCa.Plugin.Tools.ConnectionDataFromXml(). However, when I got the data from IdeaStatiCa.Plugin.Tools.OpenModelContainerFromXml() the origin was correct. What is behind this inconsistency?

Should I just use the OpenModelContainer instead? But this class is incomplete. Its ConnectionData object is missing a lot of data that the ConnectionData from ConnectionDataFromXml() has while there are some things that it has that ConnectionData doesn't have (IsBearing for beams, WeldType for welds). It is a bit inconvenient to pick and choose from both especially since it is not clear which is more correct. Is the plan to incorporate everything into OpenModelContainer?

Det 16a.zip

Desktop (please complete the following information):

errone92 commented 3 years ago

Issue was due to a mix up in file versions. The connection was from 20.1. Saving as version 21 gave the correct plate data.