midas-civil 0.0.9__py3-none-any.whl → 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of midas-civil might be problematic. Click here for more details.

midas_civil/__init__.py CHANGED
@@ -1,22 +1,21 @@
1
1
  from ._mapi import *
2
2
  from ._model import *
3
3
  from ._boundary import *
4
- # from .section import *
5
4
  from ._utils import *
6
5
  from ._node import *
7
6
  from ._element import *
8
7
  from ._load import *
9
8
  from ._group import *
10
- from ._result_extract import *
9
+ from ._result import *
11
10
 
12
11
  #--- TESTING IMPORTS ---
13
12
  from ._material import *
14
13
  from ._section import *
15
- # from .element_new import *
16
14
 
17
15
  from ._result_extract import *
18
16
  from ._construction import *
19
17
  from ._thickness import *
18
+ from ._temperature import *
20
19
 
21
20
  print('')
22
21
  print('*'*20,' MIDAS CIVIL-NX PYTHON LIBRARY 🐍 ','*'*20)
midas_civil/_boundary.py CHANGED
@@ -10,7 +10,6 @@ def convList(item):
10
10
  return item
11
11
 
12
12
 
13
-
14
13
  class Boundary:
15
14
 
16
15
  @classmethod
@@ -55,7 +54,14 @@ class Boundary:
55
54
  if len(constraint) > 7: constraint = constraint[:7]
56
55
  string = ''.join(['1' if char != '0' else '0' for char in constraint])
57
56
 
58
-
57
+ # Check if group exists, create if not
58
+ if group != "":
59
+ chk = 0
60
+ a = [v['NAME'] for v in Group.Boundary.json()["Assign"].values()]
61
+ if group in a:
62
+ chk = 1
63
+ if chk == 0:
64
+ Group.Boundary(group)
59
65
 
60
66
  self.NODE = node
61
67
  self.CONST = string