text: import os
  import sys
  PROJECT_ROOT = os.path.abspath(os.path.join(
                    os.path.dirname(__file__),
                    os.pardir)
  )
  sys.path.append(PROJECT_ROOT)
  
  from RFEM.enums import *
  from RFEM.initModel import Model
  from RFEM.BasicObjects.material import Material
  from RFEM.BasicObjects.node import Node
  from RFEM.BasicObjects.line import Line
  from RFEM.BasicObjects.surface import Surface
  from RFEM.BasicObjects.thickness import Thickness
  from RFEM.TypesForLines.lineSupport import LineSupport
  from RFEM.TypesForLines.lineHinge import LineHinge
  from RFEM.TypesForLines.lineWeldedJoint import LineWeldedJoint
  from RFEM.TypesForLines.lineMeshRefinements import LineMeshRefinements
  
  
  if Model.clientModel is None:
      Model()
  
  def test_typesForLines():
  
      Model.clientModel.service.delete_all()
      Model.clientModel.service.begin_modification()
  
      Material(1, 'S235')
      Thickness(1, 'Thick', 1, 0.35)
  
      Node(1, 0, 0, 0)
      Node(2, 5, 0, 0)
      Node(3, 5, 5, 0)
      Node(4, 0, 5, 0)
      Node(5,2.5,2.5,-2.5)
  
      Line(1, '1 2')
      Line(2, '2 3')
      Line(3, '3 4')
      Line(4, '4 1')
  
      Line(5, '1 3')
      Line(6, '1 5')
      Line(7, '5 3')
  
      Surface(1, '1,2,5')
      Surface(2, '3,4,5')
      Surface(3, '5-7')
  
      LineSupport(1,'1', LineSupportType.HINGED)
      LineSupport(2,'2', LineSupportType.FREE)
  
      slab = LineHinge.slabWallConnection
      LineHinge(1,'2/5', params=slab)
  
      LineWeldedJoint(1,'5','1 2', LineWeldedJointType.BUTT_JOINT, WeldType.WELD_SINGLE_V, 0.005)
  
      params = LineMeshRefinements.TypeSpecificParams
      LineMeshRefinements(1,'3', LineMeshRefinementsType.TYPE_LENGTH, 2, '', params)
  
      LineMeshRefinements.TargetFELength(0, 2, '4', 0.05)
      LineMeshRefinements.NumberFiniteElements(0,3,'5',15)
      LineMeshRefinements.Gradually(0,4,'6',4)
  
      Model.clientModel.service.finish_modification()
  