Ejemplo n.º 1
0
    def __init__(self):
        super(ElementLoadProperties, self).__init__(containerId,
                                                    containerClsId, tbProgId)
        self.tableProp = propTable.PropertiesTable(tbId, "XML\default",
                                                   "vertical", tbClsId,
                                                   tbProgId)
        propRefTable = prop.Property("0", "Reference Table", "table",
                                     idRefTable)
        propRefTable.value = propSubTable.PropertiesSubTable(
            '', '', "vertical", '', '')
        propRefTable.value.properties.append(
            prop.Property("0", "Member Type", "string", idMemberType))
        propRefTable.value.properties.append(
            prop.Property("1", "Member Type Name", "string", idMemberTypeName))
        propRefTable.value.properties.append(
            prop.Property("2", "Member Id", "integer", idMemberId))
        propRefTable.value.properties.append(
            prop.Property("3", "Member Name", "string", idMemberName))
        propRefLoadCase = prop.Property("1", "Load case", "ref", idLoadCase)
        propRefLoadCase.value = rf.Ref(idLoadCaseRef, lcp.tbName)
        propName = prop.Property("2", "Name", "string", idName)
        propUniqueId = prop.Property("3", "UniqueID", "string", idUniqueId)
        propDirection = prop.Property("4", "Direction", "enum", idDirection,
                                      "262144")
        propDirection.value = enum.Enum([
            eI.EnumItem("0", "X"),
            eI.EnumItem("1", "Y"),
            eI.EnumItem("2", "Z")
        ])
        propType = prop.Property("5", "Type", "enum", idType, "262144")
        propType.value = enum.Enum(
            [eI.EnumItem("0", "Force"),
             eI.EnumItem("3", "Poids propre")])
        propValue = prop.Property("6", "Value", "param", idValue, "33619968")
        propSystem = prop.Property("7", "System", "enum", idSystem)
        propSystem.value = enum.Enum(
            [eI.EnumItem("0", "GCS"),
             eI.EnumItem("1", "LCS")])
        propLocation = prop.Property("8", "Location", "enum", idLocation)
        propLocation.value = enum.Enum(
            [eI.EnumItem("0", "Length"),
             eI.EnumItem("1", "Projection")])

        self.tableProp.properties.append(propRefTable)  #0
        self.tableProp.properties.append(propRefLoadCase)  #1
        self.tableProp.properties.append(propName)  #2
        self.tableProp.properties.append(propUniqueId)  #3
        self.tableProp.properties.append(propDirection)  #4
        self.tableProp.properties.append(propType)  #5
        self.tableProp.properties.append(propValue)  #6
        self.tableProp.properties.append(propSystem)  #7
        self.tableProp.properties.append(propLocation)  #8
Ejemplo n.º 2
0
  def __init__(self):
    super(LoadGroupProperties,self).__init__(containerId,containerClsId,tbProgId)
    self.tableProp= propTable.PropertiesTable(tbId,'',"vertical",tbClsId,tbProgId)
    propName= prop.Property("0","Name","string",idName)
    propLoad= prop.Property("1","Load","enum",idLoad,"262144")
    propLoad.value= enum.Enum([eI.EnumItem("0","Permanent")])

    self.tableProp.properties.append(propName) #0
    self.tableProp.properties.append(propLoad) #1
Ejemplo n.º 3
0
    def __init__(self):
        super(LoadCombProperties, self).__init__(containerId, containerClsId,
                                                 tbProgId)
        self.tableProp = propTable.PropertiesTable(tbId, tbName, "vertical",
                                                   tbClsId, tbProgId)
        propName = prop.Property("0", "Name", "string", idName)
        propUniqueId = prop.Property("1", "UniqueID", "string", idUniqueId)
        propDescription = prop.Property("2", "Description", "string",
                                        idDescription)
        propCombType = prop.Property("3", "Type", "enum", idCombType)
        propCombType.value = enum.Enum([
            eI.EnumItem("0", "Envelope - ultimate"),
            eI.EnumItem("1", "Envelope - serviceability"),
            eI.EnumItem("2", "Linear - ultimate"),
            eI.EnumItem("3", "Linear - serviceability"),
            eI.EnumItem("4", "France - ultimate"),
            eI.EnumItem("5", "France - serviceability"),
            eI.EnumItem("6", "BAEL - ultimate"),
            eI.EnumItem("7", "BAEL - serviceability")
        ])
        propRefTable = prop.Property("4", "Load cases", "table", idLoadCases)
        propRefTable.value = propSubTable.PropertiesSubTable(
            '', '', "vertical", '', '')
        propRefTable.value.properties.append(
            prop.Property("0", "Name", "string", idLoadCaseName))
        propRefTable.value.properties.append(
            prop.Property("1", "Coeff.", "param", idLoadCaseCoeff))
        propRefLoadCases = prop.Property("2", "Load case ID", "ref",
                                         idLoadCaseId)
        propRefLoadCases.value = rf.Ref(idLoadCaseRef, lcp.tbName)
        propRefTable.value.properties.append(propRefLoadCases)

        propExplode = prop.Property("5", "Explode", "integer", idExplode)
        propPhase = prop.Property("6", "Phase", "integer", idPhase)
        propMasterID = prop.Property("7", "Master ID", "integer", idMasterID)

        self.tableProp.properties.append(propName)  #0
        self.tableProp.properties.append(propUniqueId)  #1
        self.tableProp.properties.append(propDescription)  #2
        self.tableProp.properties.append(propCombType)  #3
        self.tableProp.properties.append(propRefTable)  #4
        self.tableProp.properties.append(propExplode)  #5
        self.tableProp.properties.append(propPhase)  #6
        self.tableProp.properties.append(propMasterID)  #7
Ejemplo n.º 4
0
    def __init__(self):
        '''Constructor.'''
        super(PointForceFreeProperties,
              self).__init__(containerId, containerClsId, tbProgId)
        self.tableProp = propTable.PropertiesTable(tbId, "XML\default",
                                                   "vertical", tbClsId,
                                                   tbProgId)
        propRefLoadCase = prop.Property("0", "Load case", "ref", idLoadCase)
        propRefLoadCase.value = rf.Ref(idLoadCaseRef, lcp.tbName)
        propName = prop.Property("1", "Name", "string", idName)
        propUniqueID = prop.Property('2', 'UniqueID', 'string', idUniqueId)
        propDirection = prop.Property("3", "Direction", "enum", idDirection,
                                      "262144")
        propDirection.value = enum.Enum([
            eI.EnumItem("0", "X"),
            eI.EnumItem("1", "Y"),
            eI.EnumItem("2", "Z")
        ])
        propType = prop.Property("4", "Type", "enum", idType)
        propType.value = enum.Enum([eI.EnumItem("0", "Force")])
        propValidity = prop.Property("5", "Validity", "enum", idValidity,
                                     "262144")
        propValidity.value = enum.Enum([
            eI.EnumItem("0", "Tout"),
            eI.EnumItem("1", "-Z"),
            eI.EnumItem("2", "+Z"),
            eI.EnumItem("3", "Intervalle"),
            eI.EnumItem("4", "Z=0"),
            eI.EnumItem("5", "-Z (yc. 0)"),
            eI.EnumItem("6", "+Z (yc. 0)")
        ])
        propSelect = prop.Property("6", "Select", "enum", idSelect)
        propSelect.value = enum.Enum(
            [eI.EnumItem("0", "Auto"),
             eI.EnumItem("1", "Select")])
        propValueF = prop.Property("7", "Value - F", "param", idValueF,
                                   "33619968")
        propCoordX = prop.Property("8", "Coord X", "param", idCoordX,
                                   "33619968")
        propCoordY = prop.Property("9", "Coord Y", "param", idCoordY,
                                   "33619968")
        propCoordZ = prop.Property("10", "Coord Z", "param", idCoordZ,
                                   "33619968")
        propCoordUX = prop.Property("11", "Coord ux", "real", idCoordUX,
                                    "33619968")
        propCoordUY = prop.Property("12", "Coord uy", "real", idCoordUY,
                                    "33619968")
        propCoordUZ = prop.Property("13", "Coord uz", "real", idCoordUZ,
                                    "33619968")
        propSystem = prop.Property("14", "System", "enum", idSystem)
        propSystem.value = enum.Enum([
            eI.EnumItem("0", "GCS"),
            eI.EnumItem("1", "Member LCS"),
            eI.EnumItem("2", "Load LCS")
        ])

        self.tableProp.properties.append(propRefLoadCase)  #0
        self.tableProp.properties.append(propName)  #1
        self.tableProp.properties.append(propUniqueID)  #2
        self.tableProp.properties.append(propDirection)  #3
        self.tableProp.properties.append(propType)  #4
        self.tableProp.properties.append(propValidity)  #5
        self.tableProp.properties.append(propSelect)  #6
        self.tableProp.properties.append(propValueF)  #7
        self.tableProp.properties.append(propCoordX)  #8
        self.tableProp.properties.append(propCoordY)  #9
        self.tableProp.properties.append(propCoordZ)  #10
        self.tableProp.properties.append(propCoordUX)  #11
        self.tableProp.properties.append(propCoordUY)  #12
        self.tableProp.properties.append(propCoordUZ)  #13
        self.tableProp.properties.append(propSystem)  #14
Ejemplo n.º 5
0
    def __init__(self):
        super(LoadCaseProperties, self).__init__(containerId, containerClsId,
                                                 tbProgId)
        self.tableProp = propTable.PropertiesTable(tbId, '', "vertical",
                                                   tbClsId, tbProgId)
        propName = prop.Property("0", "Name", "string", idName)
        propUniqueId = prop.Property("1", "UniqueID", "string", idUniqueId)
        propActionType = prop.Property("2", "Action type", "enum",
                                       idActionType, "262144")
        propActionType.value = enum.Enum(
            [eI.EnumItem("0", "Permanent"),
             eI.EnumItem("1", "Variable")])
        propDescription = prop.Property("3", "Description", "string",
                                        idDescription)
        propLoadGroupReference = prop.Property("4", "LoadGroup", "ref",
                                               idLoadGroup, "131072")
        propLoadGroupReference.value = rf.Ref(idLoadGroupReference,
                                              "DataSetScia.EP_LoadGroup.1")
        propLoadType = prop.Property("5", "Load type", "enum", idLoadType,
                                     "262144")
        propLoadType.value = enum.Enum([
            eI.EnumItem("0", "Poids propre"),
            eI.EnumItem("1", "Standard"),
            eI.EnumItem("2", "Effet primaire")
        ])
        propDirection = prop.Property("6", "Direction", "enum", idDirection,
                                      "262144")
        propDirection.value = enum.Enum([
            eI.EnumItem("0", "-Z"),
            eI.EnumItem("1", "+Z"),
            eI.EnumItem("2", "-Y"),
            eI.EnumItem("3", "+Y"),
            eI.EnumItem("4", "-X"),
            eI.EnumItem("5", "+X")
        ])

        self.tableProp.properties.append(propName)  #0
        self.tableProp.properties.append(propUniqueId)  #1
        self.tableProp.properties.append(propActionType)  #2
        self.tableProp.properties.append(propDescription)  #3
        self.tableProp.properties.append(propLoadGroupReference)  #4
        self.tableProp.properties.append(propLoadType)  #5
        self.tableProp.properties.append(propDirection)  #6
Ejemplo n.º 6
0
    def __init__(self):
        '''Constructor.'''
        super(SurfacePressureFreeProperties,
              self).__init__(containerId, containerClsId, tbProgId)
        self.tableProp = propTable.PropertiesTable(tbId, "XML\default",
                                                   "vertical", tbClsId,
                                                   tbProgId)
        propRefLoadCase = prop.Property("0", "Load case", "ref", idLoadCase)
        propRefLoadCase.value = rf.Ref(idLoadCaseRef, lcp.tbName)
        propName = prop.Property("1", "Name", "string", idName)
        propUniqueID = prop.Property('2', 'UniqueID', 'string', idUniqueId)
        propDirection = prop.Property("3", "Direction", "enum", idDirection,
                                      "262144")
        propDirection.value = enum.Enum([
            eI.EnumItem("0", "X"),
            eI.EnumItem("1", "Y"),
            eI.EnumItem("2", "Z")
        ])
        propType = prop.Property("4", "Type", "enum", idType, "262144")
        propType.value = enum.Enum([eI.EnumItem("0", "Force")])
        propDistribution = prop.Property('5', 'Distribution', 'enum',
                                         idDistribution)
        propDistribution.value = enum.Enum([
            eI.EnumItem("0", "Uniform"),
            eI.EnumItem("1", "Dir X"),
            eI.EnumItem("2", "Dir Y"),
            eI.EnumItem("3", "3 points")
        ])
        propQ = prop.Property('6', 'q', 'param', idQ, "33619968")
        propValidity = prop.Property('7', "Validity", "enum", idValidity,
                                     "262144")
        propValidity.value = enum.Enum([
            eI.EnumItem("0", "Tout"),
            eI.EnumItem("1", "-Z"),
            eI.EnumItem("2", "+Z"),
            eI.EnumItem("3", "Intervalle"),
            eI.EnumItem("4", "Z=0"),
            eI.EnumItem("5", "-Z (yc. 0)"),
            eI.EnumItem("6", "+Z (yc. 0)")
        ])
        propSelect = prop.Property('8', "Select", "enum", idSelect)
        propSelect.value = enum.Enum(
            [eI.EnumItem("0", "Auto"),
             eI.EnumItem("1", "Select")])
        propSystem = prop.Property('9', "System", "enum", idSystem)
        propSystem.value = enum.Enum([
            eI.EnumItem("0", "GCS"),
            eI.EnumItem("1", "Member LCS"),
            eI.EnumItem("2", "Load LCS")
        ])
        propLocation = prop.Property('10', 'Location', 'enum', idLocation)
        propLocation.value = enum.Enum(
            [eI.EnumItem("0", "Length"),
             eI.EnumItem("1", "Projection")])
        propTableOfGeometry = prop.Property("11", "Table of geometry", "table",
                                            idTableOfGeometry)
        propTableOfGeometry.value = propSubTable.PropertiesSubTable(
            '', '', "vertical", '', '')
        propTableOfGeometry.value.properties.append(
            prop.Property("0", "Node", "string", idNode))
        propPointDefinition = prop.Property("1", "Point definition", "enum",
                                            idPointDefinition)
        propPointDefinition.value = enum.Enum([
            eI.EnumItem("0", "Standard"),
            eI.EnumItem("1", "Linear Combination"),
            eI.EnumItem("2", "Distance from node")
        ])
        propTableOfGeometry.value.properties.append(propPointDefinition)
        propTableOfGeometry.value.properties.append(
            prop.Property("2", "Coord X", "param", idCoordXA))
        propTableOfGeometry.value.properties.append(
            prop.Property("3", "Coord Y", "param", idCoordYA))
        propTableOfGeometry.value.properties.append(
            prop.Property("4", "Coord Z", "param", idCoordZA))
        propTableOfGeometry.value.properties.append(
            prop.Property("5", "Coord X", "param", idCoordXB))
        propTableOfGeometry.value.properties.append(
            prop.Property("6", "Coord Y", "param", idCoordYB))
        propTableOfGeometry.value.properties.append(
            prop.Property("7", "Coord Z", "param", idCoordZB))
        propTableOfGeometry.value.properties.append(
            prop.Property("8", "First point weight", "real",
                          idFirstPointWeight))
        propTableOfGeometry.value.properties.append(
            prop.Property("9", "Coord X", "param", idCoordXC))
        propTableOfGeometry.value.properties.append(
            prop.Property("10", "Coord Y", "param", idCoordYC))
        propTableOfGeometry.value.properties.append(
            prop.Property("11", "Coord Z", "param", idCoordZC))
        propTableOfGeometry.value.properties.append(
            prop.Property("12", "Second point weight", "real",
                          idSecondPointWeight))
        propTableOfGeometry.value.properties.append(
            prop.Property("13", "Distance", "real", idDistance))
        propTableOfGeometry.value.properties.append(
            prop.Property("14", "Vector X", "real", idVectorX))
        propTableOfGeometry.value.properties.append(
            prop.Property("15", "Vector Y", "real", idVectorY))
        propTableOfGeometry.value.properties.append(
            prop.Property("16", "Vector Z", "real", idVectorZ))
        propReferencedEntityA = prop.Property("17", "Referenced Entity",
                                              "enum", idReferencedEntityA)
        propReferencedEntityA.value = enum.Enum(
            [eI.EnumItem("0", "Existing Node"),
             eI.EnumItem("1", "New Point")])
        propTableOfGeometry.value.properties.append(propReferencedEntityA)
        propReferencedEntityB = prop.Property("18", "Referenced Entity",
                                              "enum", idReferencedEntityB)
        propReferencedEntityB.value = enum.Enum(
            [eI.EnumItem("0", "Existing Node"),
             eI.EnumItem("1", "New Point")])
        propTableOfGeometry.value.properties.append(propReferencedEntityB)
        propTableOfGeometry.value.properties.append(
            prop.Property("19", "Coord ux", "real", idCoordUX))
        propTableOfGeometry.value.properties.append(
            prop.Property("20", "Coord uy", "real", idCoordUY))
        propTableOfGeometry.value.properties.append(
            prop.Property("21", "Coord uz", "real", idCoordUZ))
        propTableOfGeometry.value.properties.append(
            prop.Property("22", "Edge", "string", idEdge))

        self.tableProp.properties.append(propRefLoadCase)  #0
        self.tableProp.properties.append(propName)  #1
        self.tableProp.properties.append(propUniqueID)  #2
        self.tableProp.properties.append(propDirection)  #3
        self.tableProp.properties.append(propType)  #4
        self.tableProp.properties.append(propDistribution)  #5
        self.tableProp.properties.append(propQ)  #6
        self.tableProp.properties.append(propValidity)  #7
        self.tableProp.properties.append(propSelect)  #8
        self.tableProp.properties.append(propSystem)  #9
        self.tableProp.properties.append(propLocation)  #10
        self.tableProp.properties.append(propTableOfGeometry)  #11