<
From version < 58.1 >
edited by Isak Björhag
on 2020/02/10 15:34
To version < 60.1 >
edited by Isak Björhag
on 2020/02/10 15:36
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -14,8 +14,9 @@
14 14  (% style="text-align: justify;" %)
15 15  The following StruXML code describes a simply supported beam with a length of 5 meters, a rectangular cross-section 200x500, and a concrete C30/37 material.
16 16  
17 +== Model ==
17 17  
18 -{{code language="xml" title="Model"}}
19 +{{code language="xml"}}
19 19  <database struxml_version="01.00.000" source_software="FEM-Design 19.00.001" start_time="1970-01-01T00:00:00.000" end_time="2020-02-10T14:16:29.000" guid="e211356e-5f99-4a37-a005-d6c326834e45" convertid="00000000-0000-0000-0000-000000000000" standard="EC" country="S" xmlns="urn:strusoft">
20 20   <entities>
21 21   <bar name="B.1" type="beam" guid="72f97ae8-dae3-4106-a86d-c6e9485c0354" last_change="2020-02-10T14:16:29.000" action="added">
... ... @@ -127,6 +127,8 @@
127 127  
128 128  {{/code}}
129 129  
131 +== Bar ==
132 +
130 130  In entities we can find the bar-element:
131 131  
132 132  {{code language="xml"}}
... ... @@ -151,6 +151,8 @@
151 151   </bar>
152 152  {{/code}}
153 153  
157 +== Material ==
158 +
154 154  There is a geometry definition called curve which defines a line of length 5 m. Moreover we can find the bar_part attributes complex_material and complex_section which relates to the GUID of the section and the material that this bar-element uses. For example we can inspect the material in the given StruXML code:
155 155  
156 156  {{code language="xml"}}
... ... @@ -163,25 +163,8 @@
163 163  
164 164  It is possible to read the material GUID which is the same as the bar_part attribute. Moreover, we can also read the specific material properties of this material as attributes.
165 165  
171 +
166 166  
167 -
168 -(% style="text-align: justify;" %)
169 -The StruXML format uses different elements in a hierarchy and the different elements and found inside the tag for example <entities>. The element can have other elements below it in the hierarchy. These elements further describes the content of the element. For example the ##<bar>## element contains ##<bar_part>## which in turn contains the ##<curve>## element which defines the geometry of the bar. The start of the element is defined with the name between tags: ##<bar>##. The end of the element is defined with a slash in front of the name:## </bar>##
170 -
171 -(% style="text-align: justify;" %)
172 -The top element is called the root element, in the example below it is the ##<database>## element (marked in red). The elements below the database element is called child elements, for example the ##<entities>## element (marked in green). The ##<bar>## element (marked in blue) is a child to ##<entities>## and thus a grand child to the ##<database>## element, and so on.
173 -
174 -
175 -[[image:1557223235184-585.png||height="271" width="1200"]]
176 -
177 -
178 -(% style="text-align: justify;" %)
179 -An element can have an attribute. This information is found inside the tag, an example of this is marked in red in the picture below. It can also have a text value which is found between the tags, marked in yellow.
180 -
181 -
182 -[[image:1557224680285-333.png||height="158" width="800"]]
183 -
184 -
185 185  There are two different types of XML files in FEM-Design: struxml and fdscript.
186 186  
187 187  (% style="text-align: justify;" %)
Copyright 2020 StruSoft AB
FEM-Design Wiki