RS2Scripting 11.23.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.
- RS2Scripting-11.23.0.dist-info/License.txt +20 -0
- RS2Scripting-11.23.0.dist-info/METADATA +147 -0
- RS2Scripting-11.23.0.dist-info/RECORD +188 -0
- RS2Scripting-11.23.0.dist-info/WHEEL +5 -0
- RS2Scripting-11.23.0.dist-info/top_level.txt +1 -0
- rs2/BaseModel.py +46 -0
- rs2/Units.py +6 -0
- rs2/__init__.py +0 -0
- rs2/_common/Client.py +67 -0
- rs2/_common/ProxyObject.py +12 -0
- rs2/_common/__init__.py +0 -0
- rs2/_common/documentProxy.py +5 -0
- rs2/interpreter/InterpreterEnums.py +86 -0
- rs2/interpreter/InterpreterGraphEnums.py +54 -0
- rs2/interpreter/InterpreterModel.py +328 -0
- rs2/interpreter/RS2Interpreter.py +78 -0
- rs2/interpreter/_UtilityResult.py +20 -0
- rs2/interpreter/__init__.py +0 -0
- rs2/interpreter/queryResults/HistoryQueryResults.py +30 -0
- rs2/interpreter/queryResults/MaterialQueryResults.py +67 -0
- rs2/interpreter/queryResults/MeshResults.py +12 -0
- rs2/interpreter/queryResults/TimeQueryResults.py +111 -0
- rs2/interpreter/queryResults/__init__.py +0 -0
- rs2/interpreter/supportResults/BoltResult.py +49 -0
- rs2/interpreter/supportResults/CompositeResult.py +24 -0
- rs2/interpreter/supportResults/JointResult.py +25 -0
- rs2/interpreter/supportResults/LinerResult.py +33 -0
- rs2/interpreter/supportResults/__init__.py +0 -0
- rs2/modeler/Model.py +350 -0
- rs2/modeler/RS2Modeler.py +81 -0
- rs2/modeler/__init__.py +0 -0
- rs2/modeler/properties/AbsoluteStageFactorGettersInterface.py +31 -0
- rs2/modeler/properties/AbsoluteStageFactorInterface.py +49 -0
- rs2/modeler/properties/CompositeProperty.py +81 -0
- rs2/modeler/properties/DiscreteFunction.py +43 -0
- rs2/modeler/properties/MaterialJoint.py +25 -0
- rs2/modeler/properties/MaterialJointOptions.py +28 -0
- rs2/modeler/properties/PropertyEnums.py +376 -0
- rs2/modeler/properties/RelativeStageFactorInterface.py +50 -0
- rs2/modeler/properties/ShearNormalFunction.py +45 -0
- rs2/modeler/properties/SnowdenAnisotropicFunction.py +56 -0
- rs2/modeler/properties/StructuralInterface.py +59 -0
- rs2/modeler/properties/UserDefinedWaterMode.py +21 -0
- rs2/modeler/properties/__init__.py +0 -0
- rs2/modeler/properties/bolt/Bolt.py +33 -0
- rs2/modeler/properties/bolt/EndAnchored.py +59 -0
- rs2/modeler/properties/bolt/FullyBonded.py +66 -0
- rs2/modeler/properties/bolt/PlainStrandCable.py +112 -0
- rs2/modeler/properties/bolt/Swellex.py +136 -0
- rs2/modeler/properties/bolt/Tieback.py +192 -0
- rs2/modeler/properties/bolt/__init__.py +0 -0
- rs2/modeler/properties/joint/BartonBandis.py +143 -0
- rs2/modeler/properties/joint/BartonBandisMaterial.py +82 -0
- rs2/modeler/properties/joint/DisplacementDependent.py +134 -0
- rs2/modeler/properties/joint/GeosyntheticHyperbolic.py +147 -0
- rs2/modeler/properties/joint/GeosyntheticHyperbolicMaterial.py +93 -0
- rs2/modeler/properties/joint/HyperbolicSoftening.py +202 -0
- rs2/modeler/properties/joint/Joint.py +57 -0
- rs2/modeler/properties/joint/MaterialDependent.py +128 -0
- rs2/modeler/properties/joint/MohrCoulomb.py +211 -0
- rs2/modeler/properties/joint/MohrCoulombMaterial.py +115 -0
- rs2/modeler/properties/joint/NoneSlip.py +103 -0
- rs2/modeler/properties/joint/__init__.py +0 -0
- rs2/modeler/properties/liner/CableTruss.py +199 -0
- rs2/modeler/properties/liner/Geosynthetic.py +167 -0
- rs2/modeler/properties/liner/Liner.py +31 -0
- rs2/modeler/properties/liner/ReinforcedConcrete.py +291 -0
- rs2/modeler/properties/liner/StandardBeam.py +268 -0
- rs2/modeler/properties/liner/__init__.py +0 -0
- rs2/modeler/properties/material/InitialConditions.py +152 -0
- rs2/modeler/properties/material/MaterialProperty.py +49 -0
- rs2/modeler/properties/material/StageFactors.py +100 -0
- rs2/modeler/properties/material/__init__.py +0 -0
- rs2/modeler/properties/material/datum/BaseDatum.py +23 -0
- rs2/modeler/properties/material/datum/Datum.py +79 -0
- rs2/modeler/properties/material/datum/PeakResidualDatum.py +31 -0
- rs2/modeler/properties/material/datum/SimpleDatum.py +17 -0
- rs2/modeler/properties/material/datum/__init__.py +0 -0
- rs2/modeler/properties/material/hydraulic/FEAGroundwater/Brooks.py +106 -0
- rs2/modeler/properties/material/hydraulic/FEAGroundwater/Constant.py +54 -0
- rs2/modeler/properties/material/hydraulic/FEAGroundwater/FEAGroundwater.py +82 -0
- rs2/modeler/properties/material/hydraulic/FEAGroundwater/Fredlund.py +117 -0
- rs2/modeler/properties/material/hydraulic/FEAGroundwater/Gardner.py +106 -0
- rs2/modeler/properties/material/hydraulic/FEAGroundwater/Genuchten.py +124 -0
- rs2/modeler/properties/material/hydraulic/FEAGroundwater/Simple.py +91 -0
- rs2/modeler/properties/material/hydraulic/FEAGroundwater/UserDefined.py +10 -0
- rs2/modeler/properties/material/hydraulic/FEAGroundwater/__init__.py +0 -0
- rs2/modeler/properties/material/hydraulic/Hydraulic.py +41 -0
- rs2/modeler/properties/material/hydraulic/StaticGroundwater.py +85 -0
- rs2/modeler/properties/material/hydraulic/__init__.py +0 -0
- rs2/modeler/properties/material/stiffness/ChSoil.py +45 -0
- rs2/modeler/properties/material/stiffness/Custom.py +83 -0
- rs2/modeler/properties/material/stiffness/CySoil.py +45 -0
- rs2/modeler/properties/material/stiffness/DoubleYield.py +45 -0
- rs2/modeler/properties/material/stiffness/HardeningSoil.py +73 -0
- rs2/modeler/properties/material/stiffness/HardeningSoilSmallStrainStiffness.py +73 -0
- rs2/modeler/properties/material/stiffness/Isotropic.py +122 -0
- rs2/modeler/properties/material/stiffness/ManzariAndDafalias.py +38 -0
- rs2/modeler/properties/material/stiffness/NonLinearHyperbolic.py +117 -0
- rs2/modeler/properties/material/stiffness/NonLinearIsotropic.py +255 -0
- rs2/modeler/properties/material/stiffness/Norsand.py +45 -0
- rs2/modeler/properties/material/stiffness/Orthotropic.py +180 -0
- rs2/modeler/properties/material/stiffness/Pm4Sand.py +80 -0
- rs2/modeler/properties/material/stiffness/Pm4Silt.py +87 -0
- rs2/modeler/properties/material/stiffness/SoftSoil.py +24 -0
- rs2/modeler/properties/material/stiffness/SoftSoilCreep.py +24 -0
- rs2/modeler/properties/material/stiffness/Stiffness.py +53 -0
- rs2/modeler/properties/material/stiffness/SwellingRock.py +52 -0
- rs2/modeler/properties/material/stiffness/TransverselyIsotropic.py +145 -0
- rs2/modeler/properties/material/stiffness/ViscoElastic.py +59 -0
- rs2/modeler/properties/material/stiffness/__init__.py +0 -0
- rs2/modeler/properties/material/strength/AnisotropicLinear.py +150 -0
- rs2/modeler/properties/material/strength/BarcelonaBasic.py +176 -0
- rs2/modeler/properties/material/strength/BartonBandisStrength.py +59 -0
- rs2/modeler/properties/material/strength/BoundingSurfacePlasticity.py +66 -0
- rs2/modeler/properties/material/strength/CamClay.py +113 -0
- rs2/modeler/properties/material/strength/ChSoilStrength.py +66 -0
- rs2/modeler/properties/material/strength/CySoilStrength.py +94 -0
- rs2/modeler/properties/material/strength/DiscreteFunction.py +41 -0
- rs2/modeler/properties/material/strength/DoubleYieldStrength.py +94 -0
- rs2/modeler/properties/material/strength/DruckerPrager.py +113 -0
- rs2/modeler/properties/material/strength/Finn.py +129 -0
- rs2/modeler/properties/material/strength/GeneralizedAnisotropic.py +20 -0
- rs2/modeler/properties/material/strength/GeneralizedHoekBrown.py +195 -0
- rs2/modeler/properties/material/strength/HardeningSoilStrength.py +101 -0
- rs2/modeler/properties/material/strength/HardeningSoilWithSmallStrainStiffness.py +101 -0
- rs2/modeler/properties/material/strength/HoekBrown.py +102 -0
- rs2/modeler/properties/material/strength/Hyperbolic.py +59 -0
- rs2/modeler/properties/material/strength/JointedGeneralizedHoekBrown.py +198 -0
- rs2/modeler/properties/material/strength/JointedMohrCoulomb.py +116 -0
- rs2/modeler/properties/material/strength/ManzariAndDafaliasStrength.py +108 -0
- rs2/modeler/properties/material/strength/ModifiedCamClay.py +113 -0
- rs2/modeler/properties/material/strength/MohrCoulombStrength.py +113 -0
- rs2/modeler/properties/material/strength/MohrCoulombWithCap.py +112 -0
- rs2/modeler/properties/material/strength/NorSandStrength.py +101 -0
- rs2/modeler/properties/material/strength/PM4SandStrength.py +178 -0
- rs2/modeler/properties/material/strength/PM4SiltStrength.py +241 -0
- rs2/modeler/properties/material/strength/PowerCurve.py +101 -0
- rs2/modeler/properties/material/strength/Shansep.py +172 -0
- rs2/modeler/properties/material/strength/ShearNormalFunction.py +21 -0
- rs2/modeler/properties/material/strength/SnowdenModAnisotropicLinear.py +78 -0
- rs2/modeler/properties/material/strength/SoftSoilCreepStrength.py +87 -0
- rs2/modeler/properties/material/strength/SoftSoilStrength.py +80 -0
- rs2/modeler/properties/material/strength/SofteningHardeningModel.py +150 -0
- rs2/modeler/properties/material/strength/Strength.py +185 -0
- rs2/modeler/properties/material/strength/SwellingRockStrength.py +122 -0
- rs2/modeler/properties/material/strength/VerticalStressRatio.py +94 -0
- rs2/modeler/properties/material/strength/__init__.py +0 -0
- rs2/modeler/properties/material/thermal/Thermal.py +74 -0
- rs2/modeler/properties/material/thermal/__init__.py +0 -0
- rs2/modeler/properties/material/thermal/conductivity/Conductivity.py +27 -0
- rs2/modeler/properties/material/thermal/conductivity/ConstantConductivity.py +31 -0
- rs2/modeler/properties/material/thermal/conductivity/CoteAndKonrad.py +45 -0
- rs2/modeler/properties/material/thermal/conductivity/Derives.py +17 -0
- rs2/modeler/properties/material/thermal/conductivity/Johansen.py +45 -0
- rs2/modeler/properties/material/thermal/conductivity/JohansenLu.py +24 -0
- rs2/modeler/properties/material/thermal/conductivity/Tabular.py +31 -0
- rs2/modeler/properties/material/thermal/conductivity/__init__.py +0 -0
- rs2/modeler/properties/material/thermal/heatcapacity/ConstantHeatCapacity.py +38 -0
- rs2/modeler/properties/material/thermal/heatcapacity/CustomHeatCapacity.py +38 -0
- rs2/modeler/properties/material/thermal/heatcapacity/HeatCapacity.py +21 -0
- rs2/modeler/properties/material/thermal/heatcapacity/JameNewman.py +24 -0
- rs2/modeler/properties/material/thermal/heatcapacity/__init__.py +0 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/CustomWaterContent.py +13 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/Konrad.py +31 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/SoilUnfrozenWaterContent.py +23 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/TiceAnderson.py +31 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/__init__.py +0 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/BrooksWaterContent.py +24 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/FredlundWaterContent.py +31 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/GardnerWaterContent.py +24 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/GenuchtenWaterContent.py +38 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/HydraulicModel.py +37 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/SimpleWaterContent.py +17 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/__init__.py +0 -0
- rs2/modeler/properties/pile/Beam.py +34 -0
- rs2/modeler/properties/pile/Elastic.py +45 -0
- rs2/modeler/properties/pile/ForceDisplacement.py +59 -0
- rs2/modeler/properties/pile/Linear.py +59 -0
- rs2/modeler/properties/pile/MaterialDependentPile.py +87 -0
- rs2/modeler/properties/pile/MohrCoulombPile.py +94 -0
- rs2/modeler/properties/pile/MultiLinear.py +56 -0
- rs2/modeler/properties/pile/Pile.py +63 -0
- rs2/modeler/properties/pile/__init__.py +0 -0
- rs2/modeler/properties/propertyProxy.py +283 -0
- rs2/utilities/ApplicationManager.py +64 -0
- rs2/utilities/ColorPicker.py +78 -0
- rs2/utilities/__init__.py +0 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
from rs2.modeler.properties.propertyProxy import PropertyProxy
|
|
2
|
+
from rs2._common.Client import Client
|
|
3
|
+
from enum import Enum, auto
|
|
4
|
+
from typing import List
|
|
5
|
+
from rs2.modeler.properties.PropertyEnums import *
|
|
6
|
+
from rs2._common.documentProxy import DocumentProxy
|
|
7
|
+
from rs2.modeler.properties.pile.Elastic import Elastic
|
|
8
|
+
from rs2.modeler.properties.pile.MohrCoulombPile import MohrCoulombPile
|
|
9
|
+
from rs2.modeler.properties.pile.Linear import Linear
|
|
10
|
+
from rs2.modeler.properties.pile.MultiLinear import MultiLinear
|
|
11
|
+
from rs2.modeler.properties.pile.MaterialDependentPile import MaterialDependentPile
|
|
12
|
+
from rs2.modeler.properties.pile.Beam import Beam
|
|
13
|
+
from rs2.modeler.properties.pile.ForceDisplacement import ForceDisplacement
|
|
14
|
+
class PileProperty(PropertyProxy):
|
|
15
|
+
"""
|
|
16
|
+
:ref:`Pile Example`
|
|
17
|
+
"""
|
|
18
|
+
def __init__(self, client : Client, ID, documentProxyID):
|
|
19
|
+
self.Elastic = Elastic(client, ID, documentProxyID)
|
|
20
|
+
self.MohrCoulombPile = MohrCoulombPile(client, ID, documentProxyID)
|
|
21
|
+
self.Linear = Linear(client, ID, documentProxyID)
|
|
22
|
+
self.MultiLinear = MultiLinear(client, ID, documentProxyID)
|
|
23
|
+
self.MaterialDependentPile = MaterialDependentPile(client, ID, documentProxyID)
|
|
24
|
+
self.Beam = Beam(client, ID, documentProxyID)
|
|
25
|
+
self.ForceDisplacement = ForceDisplacement(client, ID, documentProxyID)
|
|
26
|
+
super().__init__(client, ID, documentProxyID)
|
|
27
|
+
def getPileName(self) -> str:
|
|
28
|
+
return self._getCStringProperty("PFP_NAME")
|
|
29
|
+
def setPileName(self, value: str):
|
|
30
|
+
return self._setCStringProperty("PFP_NAME", value)
|
|
31
|
+
def getPileColor(self) -> int:
|
|
32
|
+
return self._getUnsignedLongProperty("PFP_COLOR")
|
|
33
|
+
def setPileColor(self, value: int):
|
|
34
|
+
return self._setUnsignedLongProperty("PFP_COLOR", value)
|
|
35
|
+
def getConnectionType(self) -> PileConnectionType:
|
|
36
|
+
return PileConnectionType(self._getEnumEPileConnectionTypeProperty("PFP_TYPE"))
|
|
37
|
+
def setConnectionType(self, value: PileConnectionType):
|
|
38
|
+
return self._setEnumEPileConnectionTypeProperty("PFP_TYPE", value)
|
|
39
|
+
def getSkinResistance(self) -> PileSkinResistanceType:
|
|
40
|
+
return PileSkinResistanceType(self._getEnumEPileSkinResistanceTypeProperty("PFP_SKIN_RESISTANCE_METHOD"))
|
|
41
|
+
def setSkinResistance(self, value: PileSkinResistanceType):
|
|
42
|
+
return self._setEnumEPileSkinResistanceTypeProperty("PFP_SKIN_RESISTANCE_METHOD", value)
|
|
43
|
+
def getMMax(self) -> float:
|
|
44
|
+
return self._callFunction("__getattribute__", ["m_mmax"])
|
|
45
|
+
def setMMax(self, MMax: float):
|
|
46
|
+
return self._callFunction("setMMax", [MMax])
|
|
47
|
+
def getOutOfPlaneSpacing(self) -> float:
|
|
48
|
+
return self._callFunction("__getattribute__", ["m_plane_spacing"])
|
|
49
|
+
def setOutOfPlaneSpacing(self, outOfPlaneSpacing: float):
|
|
50
|
+
return self._callFunction("setOutOfPlaneSpacing", [outOfPlaneSpacing])
|
|
51
|
+
def getLength(self) -> float:
|
|
52
|
+
return self._callFunction("__getattribute__", ["m_length"])
|
|
53
|
+
def setLength(self, Length: float):
|
|
54
|
+
"""
|
|
55
|
+
Resets the mesh if it exists.
|
|
56
|
+
"""
|
|
57
|
+
response = self._callFunction("setLength", [Length])
|
|
58
|
+
DocumentProxy(self._client, self.documentProxyID).rebuildAndPostProcessPiles()
|
|
59
|
+
return response
|
|
60
|
+
def getStageForceDisplacement(self) -> bool:
|
|
61
|
+
return self._callFunction("__getattribute__", ["apply_stage_factors"])
|
|
62
|
+
def setStageForceDisplacement(self, stageForceDisplacement: bool):
|
|
63
|
+
return self._callFunction("setApplyStageFactors", [stageForceDisplacement])
|
|
File without changes
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
from rs2._common.ProxyObject import ProxyObject
|
|
2
|
+
from enum import Enum
|
|
3
|
+
from rs2._common.Client import Client
|
|
4
|
+
class PropertyProxy(ProxyObject):
|
|
5
|
+
def __init__(self, server : Client, ID, documentProxyID) :
|
|
6
|
+
self.documentProxyID = documentProxyID
|
|
7
|
+
super().__init__(server, ID)
|
|
8
|
+
def _getDoubleProperty(self, propertyName: str):
|
|
9
|
+
return self._callFunction("getDoubleProperty", [propertyName])
|
|
10
|
+
def _setDoubleProperty(self, propertyName: str, value):
|
|
11
|
+
return self._callFunction("setDoubleProperty", [propertyName, value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
12
|
+
def _getBoolProperty(self, propertyName: str):
|
|
13
|
+
return self._callFunction("getBoolProperty", [propertyName])
|
|
14
|
+
def _setBoolProperty(self, propertyName: str, value):
|
|
15
|
+
return self._callFunction("setBoolProperty", [propertyName, value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
16
|
+
def _getEnumEBulgeTypesProperty(self, propertyName: str):
|
|
17
|
+
return self._callFunction("getEnumEBulgeTypesProperty", [propertyName])
|
|
18
|
+
def _setEnumEBulgeTypesProperty(self, propertyName: str, value):
|
|
19
|
+
return self._callFunction("setEnumEBulgeTypesProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
20
|
+
def _getEnumEBoltModelsProperty(self, propertyName: str):
|
|
21
|
+
return self._callFunction("getEnumEBoltModelsProperty", [propertyName])
|
|
22
|
+
def _setEnumEBoltModelsProperty(self, propertyName: str, value):
|
|
23
|
+
return self._callFunction("setEnumEBoltModelsProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
24
|
+
def _getIntProperty(self, propertyName: str):
|
|
25
|
+
return self._callFunction("getIntProperty", [propertyName])
|
|
26
|
+
def _setIntProperty(self, propertyName: str, value):
|
|
27
|
+
return self._callFunction("setIntProperty", [propertyName, value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
28
|
+
def _getEnumESecondaryBondLengthTypeProperty(self, propertyName: str):
|
|
29
|
+
return self._callFunction("getEnumESecondaryBondLengthTypeProperty", [propertyName])
|
|
30
|
+
def _setEnumESecondaryBondLengthTypeProperty(self, propertyName: str, value):
|
|
31
|
+
return self._callFunction("setEnumESecondaryBondLengthTypeProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
32
|
+
def _getCStringProperty(self, propertyName: str):
|
|
33
|
+
return self._callFunction("getCStringProperty", [propertyName])
|
|
34
|
+
def _setCStringProperty(self, propertyName: str, value):
|
|
35
|
+
return self._callFunction("setCStringProperty", [propertyName, value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
36
|
+
def _getUnsignedLongProperty(self, propertyName: str):
|
|
37
|
+
return self._callFunction("getUnsignedLongProperty", [propertyName])
|
|
38
|
+
def _setUnsignedLongProperty(self, propertyName: str, value):
|
|
39
|
+
return self._callFunction("setUnsignedLongProperty", [propertyName, value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
40
|
+
def _getEnumEBoltTypesProperty(self, propertyName: str):
|
|
41
|
+
return self._callFunction("getEnumEBoltTypesProperty", [propertyName])
|
|
42
|
+
def _setEnumEBoltTypesProperty(self, propertyName: str, value):
|
|
43
|
+
return self._callFunction("setEnumEBoltTypesProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
44
|
+
def _getEnumEGeometryChoiceProperty(self, propertyName: str):
|
|
45
|
+
return self._callFunction("getEnumEGeometryChoiceProperty", [propertyName])
|
|
46
|
+
def _setEnumEGeometryChoiceProperty(self, propertyName: str, value):
|
|
47
|
+
return self._callFunction("setEnumEGeometryChoiceProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
48
|
+
def _getEnumEMaterialAnalysisTypesProperty(self, propertyName: str):
|
|
49
|
+
return self._callFunction("getEnumEMaterialAnalysisTypesProperty", [propertyName])
|
|
50
|
+
def _setEnumEMaterialAnalysisTypesProperty(self, propertyName: str, value):
|
|
51
|
+
return self._callFunction("setEnumEMaterialAnalysisTypesProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
52
|
+
def _getEnumELinerFormulationProperty(self, propertyName: str):
|
|
53
|
+
return self._callFunction("getEnumELinerFormulationProperty", [propertyName])
|
|
54
|
+
def _setEnumELinerFormulationProperty(self, propertyName: str, value):
|
|
55
|
+
return self._callFunction("setEnumELinerFormulationProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
56
|
+
def _getEnumEStaticWaterModesProperty(self, propertyName: str):
|
|
57
|
+
return self._callFunction("getEnumEStaticWaterModesProperty", [propertyName])
|
|
58
|
+
def _setEnumEStaticWaterModesProperty(self, propertyName: str, value):
|
|
59
|
+
return self._callFunction("setEnumEStaticWaterModesProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
60
|
+
def _getEnumELinerTypesProperty(self, propertyName: str):
|
|
61
|
+
return self._callFunction("getEnumELinerTypesProperty", [propertyName])
|
|
62
|
+
def _setEnumELinerTypesProperty(self, propertyName: str, value):
|
|
63
|
+
return self._callFunction("setEnumELinerTypesProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
64
|
+
def _getEnumEJointWaterPressureTypeProperty(self, propertyName: str):
|
|
65
|
+
return self._callFunction("getEnumEJointWaterPressureTypeProperty", [propertyName])
|
|
66
|
+
def _setEnumEJointWaterPressureTypeProperty(self, propertyName: str, value):
|
|
67
|
+
return self._callFunction("setEnumEJointWaterPressureTypeProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
68
|
+
def _getEnumEJointStiffnessDefineProperty(self, propertyName: str):
|
|
69
|
+
return self._callFunction("getEnumEJointStiffnessDefineProperty", [propertyName])
|
|
70
|
+
def _setEnumEJointStiffnessDefineProperty(self, propertyName: str, value):
|
|
71
|
+
return self._callFunction("setEnumEJointStiffnessDefineProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
72
|
+
def _getEnumEJointTypesProperty(self, propertyName: str):
|
|
73
|
+
return self._callFunction("getEnumEJointTypesProperty", [propertyName])
|
|
74
|
+
def _setEnumEJointTypesProperty(self, propertyName: str, value):
|
|
75
|
+
return self._callFunction("setEnumEJointTypesProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
76
|
+
def _getEnumEPFPApplicationProperty(self, propertyName: str):
|
|
77
|
+
return self._callFunction("getEnumEPFPApplicationProperty", [propertyName])
|
|
78
|
+
def _setEnumEPFPApplicationProperty(self, propertyName: str, value):
|
|
79
|
+
return self._callFunction("setEnumEPFPApplicationProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
80
|
+
def _getEnumEPileEndConditionProperty(self, propertyName: str):
|
|
81
|
+
return self._callFunction("getEnumEPileEndConditionProperty", [propertyName])
|
|
82
|
+
def _setEnumEPileEndConditionProperty(self, propertyName: str, value):
|
|
83
|
+
return self._callFunction("setEnumEPileEndConditionProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
84
|
+
def _getEnumEPileForceDisplacemtnApplicationPointProperty(self, propertyName: str):
|
|
85
|
+
return self._callFunction("getEnumEPileForceDisplacemtnApplicationPointProperty", [propertyName])
|
|
86
|
+
def _setEnumEPileForceDisplacemtnApplicationPointProperty(self, propertyName: str, value):
|
|
87
|
+
return self._callFunction("setEnumEPileForceDisplacemtnApplicationPointProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
88
|
+
def _getEnumEPileConnectionTypeProperty(self, propertyName: str):
|
|
89
|
+
return self._callFunction("getEnumEPileConnectionTypeProperty", [propertyName])
|
|
90
|
+
def _setEnumEPileConnectionTypeProperty(self, propertyName: str, value):
|
|
91
|
+
return self._callFunction("setEnumEPileConnectionTypeProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
92
|
+
def _getEnumEPileSkinResistanceTypeProperty(self, propertyName: str):
|
|
93
|
+
return self._callFunction("getEnumEPileSkinResistanceTypeProperty", [propertyName])
|
|
94
|
+
def _setEnumEPileSkinResistanceTypeProperty(self, propertyName: str, value):
|
|
95
|
+
return self._callFunction("setEnumEPileSkinResistanceTypeProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
96
|
+
def _getEnumECompositeJointPlacementProperty(self, propertyName: str):
|
|
97
|
+
return self._callFunction("getEnumECompositeJointPlacementProperty", [propertyName])
|
|
98
|
+
def _setEnumECompositeJointPlacementProperty(self, propertyName: str, value):
|
|
99
|
+
return self._callFunction("setEnumECompositeJointPlacementProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
100
|
+
def _getEnumGdiplusHatchStyleProperty(self, propertyName: str):
|
|
101
|
+
return self._callFunction("getEnumGdiplusHatchStyleProperty", [propertyName])
|
|
102
|
+
def _setEnumGdiplusHatchStyleProperty(self, propertyName: str, value):
|
|
103
|
+
return self._callFunction("setEnumGdiplusHatchStyleProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
104
|
+
def _getEnumEMaterialElasticityTypesProperty(self, propertyName: str):
|
|
105
|
+
return self._callFunction("getEnumEMaterialElasticityTypesProperty", [propertyName])
|
|
106
|
+
def _setEnumEMaterialElasticityTypesProperty(self, propertyName: str, value):
|
|
107
|
+
return self._callFunction("setEnumEMaterialElasticityTypesProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
108
|
+
def _getEnumEStrengthCriteriaTypesProperty(self, propertyName: str):
|
|
109
|
+
return self._callFunction("getEnumEStrengthCriteriaTypesProperty", [propertyName])
|
|
110
|
+
def _setEnumEStrengthCriteriaTypesProperty(self, propertyName: str, value):
|
|
111
|
+
return self._callFunction("setEnumEStrengthCriteriaTypesProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
112
|
+
def _getEnumEUnsaturatedParameterTypeProperty(self, propertyName: str):
|
|
113
|
+
return self._callFunction("getEnumEUnsaturatedParameterTypeProperty", [propertyName])
|
|
114
|
+
def _setEnumEUnsaturatedParameterTypeProperty(self, propertyName: str, value):
|
|
115
|
+
return self._callFunction("setEnumEUnsaturatedParameterTypeProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
116
|
+
def _getEnumEUnsaturatedShearStrengthTypeProperty(self, propertyName: str):
|
|
117
|
+
return self._callFunction("getEnumEUnsaturatedShearStrengthTypeProperty", [propertyName])
|
|
118
|
+
def _setEnumEUnsaturatedShearStrengthTypeProperty(self, propertyName: str, value):
|
|
119
|
+
return self._callFunction("setEnumEUnsaturatedShearStrengthTypeProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
120
|
+
def _getEnumEUnsaturatedSingleEffectiveStressMethodProperty(self, propertyName: str):
|
|
121
|
+
return self._callFunction("getEnumEUnsaturatedSingleEffectiveStressMethodProperty", [propertyName])
|
|
122
|
+
def _setEnumEUnsaturatedSingleEffectiveStressMethodProperty(self, propertyName: str, value):
|
|
123
|
+
return self._callFunction("setEnumEUnsaturatedSingleEffectiveStressMethodProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
124
|
+
def _getEnumEUnsaturatedTabularValueMethodProperty(self, propertyName: str):
|
|
125
|
+
return self._callFunction("getEnumEUnsaturatedTabularValueMethodProperty", [propertyName])
|
|
126
|
+
def _setEnumEUnsaturatedTabularValueMethodProperty(self, propertyName: str, value):
|
|
127
|
+
return self._callFunction("setEnumEUnsaturatedTabularValueMethodProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
128
|
+
def _getEnumEMaterialBehavioursProperty(self, propertyName: str):
|
|
129
|
+
return self._callFunction("getEnumEMaterialBehavioursProperty", [propertyName])
|
|
130
|
+
def _setEnumEMaterialBehavioursProperty(self, propertyName: str, value):
|
|
131
|
+
return self._callFunction("setEnumEMaterialBehavioursProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
132
|
+
def _getEnumEGroundWaterModesProperty(self, propertyName: str):
|
|
133
|
+
return self._callFunction("getEnumEGroundWaterModesProperty", [propertyName])
|
|
134
|
+
def _setEnumEGroundWaterModesProperty(self, propertyName: str, value):
|
|
135
|
+
return self._callFunction("setEnumEGroundWaterModesProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
136
|
+
def _getEnumEAnisotropyDefinitionsProperty(self, propertyName: str):
|
|
137
|
+
return self._callFunction("getEnumEAnisotropyDefinitionsProperty", [propertyName])
|
|
138
|
+
def _setEnumEAnisotropyDefinitionsProperty(self, propertyName: str, value):
|
|
139
|
+
return self._callFunction("setEnumEAnisotropyDefinitionsProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
140
|
+
def _getEnumEMVModelProperty(self, propertyName: str):
|
|
141
|
+
return self._callFunction("getEnumEMVModelProperty", [propertyName])
|
|
142
|
+
def _setEnumEMVModelProperty(self, propertyName: str, value):
|
|
143
|
+
return self._callFunction("setEnumEMVModelProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
144
|
+
def _getEnumEThermalWaterContentMethodTypeProperty(self, propertyName: str):
|
|
145
|
+
return self._callFunction("getEnumEThermalWaterContentMethodTypeProperty", [propertyName])
|
|
146
|
+
def _setEnumEThermalWaterContentMethodTypeProperty(self, propertyName: str, value):
|
|
147
|
+
return self._callFunction("setEnumEThermalWaterContentMethodTypeProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
148
|
+
def _getEnumEThermalTypeProperty(self, propertyName: str):
|
|
149
|
+
return self._callFunction("getEnumEThermalTypeProperty", [propertyName])
|
|
150
|
+
def _setEnumEThermalTypeProperty(self, propertyName: str, value):
|
|
151
|
+
return self._callFunction("setEnumEThermalTypeProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
152
|
+
def _getEnumEThermalHeatCapacityTypeProperty(self, propertyName: str):
|
|
153
|
+
return self._callFunction("getEnumEThermalHeatCapacityTypeProperty", [propertyName])
|
|
154
|
+
def _setEnumEThermalHeatCapacityTypeProperty(self, propertyName: str, value):
|
|
155
|
+
return self._callFunction("setEnumEThermalHeatCapacityTypeProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
156
|
+
def _getEnumEThermalWaterContentTypeProperty(self, propertyName: str):
|
|
157
|
+
return self._callFunction("getEnumEThermalWaterContentTypeProperty", [propertyName])
|
|
158
|
+
def _setEnumEThermalWaterContentTypeProperty(self, propertyName: str, value):
|
|
159
|
+
return self._callFunction("setEnumEThermalWaterContentTypeProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
160
|
+
def _getEnumEInitialElementLoadingTypeProperty(self, propertyName: str):
|
|
161
|
+
return self._callFunction("getEnumEInitialElementLoadingTypeProperty", [propertyName])
|
|
162
|
+
def _setEnumEInitialElementLoadingTypeProperty(self, propertyName: str, value):
|
|
163
|
+
return self._callFunction("setEnumEInitialElementLoadingTypeProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
164
|
+
def _getEnumEHuTypesProperty(self, propertyName: str):
|
|
165
|
+
return self._callFunction("getEnumEHuTypesProperty", [propertyName])
|
|
166
|
+
def _setEnumEHuTypesProperty(self, propertyName: str, value):
|
|
167
|
+
return self._callFunction("setEnumEHuTypesProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
168
|
+
def _getEnumEUnloadingConditionsProperty(self, propertyName: str):
|
|
169
|
+
return self._callFunction("getEnumEUnloadingConditionsProperty", [propertyName])
|
|
170
|
+
def _setEnumEUnloadingConditionsProperty(self, propertyName: str, value):
|
|
171
|
+
return self._callFunction("setEnumEUnloadingConditionsProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
172
|
+
def _getEnumEElasticParametersProperty(self, propertyName: str):
|
|
173
|
+
return self._callFunction("getEnumEElasticParametersProperty", [propertyName])
|
|
174
|
+
def _setEnumEElasticParametersProperty(self, propertyName: str, value):
|
|
175
|
+
return self._callFunction("setEnumEElasticParametersProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
176
|
+
def _getEnumEPoissonRatioTypeProperty(self, propertyName: str):
|
|
177
|
+
return self._callFunction("getEnumEPoissonRatioTypeProperty", [propertyName])
|
|
178
|
+
def _setEnumEPoissonRatioTypeProperty(self, propertyName: str, value):
|
|
179
|
+
return self._callFunction("setEnumEPoissonRatioTypeProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
180
|
+
def _getEnumENLIFormulaTypesProperty(self, propertyName: str):
|
|
181
|
+
return self._callFunction("getEnumENLIFormulaTypesProperty", [propertyName])
|
|
182
|
+
def _setEnumENLIFormulaTypesProperty(self, propertyName: str, value):
|
|
183
|
+
return self._callFunction("setEnumENLIFormulaTypesProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
184
|
+
def _getEnumEViscoElasticTypesProperty(self, propertyName: str):
|
|
185
|
+
return self._callFunction("getEnumEViscoElasticTypesProperty", [propertyName])
|
|
186
|
+
def _setEnumEViscoElasticTypesProperty(self, propertyName: str, value):
|
|
187
|
+
return self._callFunction("setEnumEViscoElasticTypesProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
188
|
+
def _getEnumECustomModeProperty(self, propertyName: str):
|
|
189
|
+
return self._callFunction("getEnumECustomModeProperty", [propertyName])
|
|
190
|
+
def _setEnumECustomModeProperty(self, propertyName: str, value):
|
|
191
|
+
return self._callFunction("setEnumECustomModeProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
192
|
+
def _getEnumETensileCutoffOptionsProperty(self, propertyName: str):
|
|
193
|
+
return self._callFunction("getEnumETensileCutoffOptionsProperty", [propertyName])
|
|
194
|
+
def _setEnumETensileCutoffOptionsProperty(self, propertyName: str, value):
|
|
195
|
+
return self._callFunction("setEnumETensileCutoffOptionsProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
196
|
+
def _getEnumESpecificVolumeAtUnitPressureProperty(self, propertyName: str):
|
|
197
|
+
return self._callFunction("getEnumESpecificVolumeAtUnitPressureProperty", [propertyName])
|
|
198
|
+
def _setEnumESpecificVolumeAtUnitPressureProperty(self, propertyName: str, value):
|
|
199
|
+
return self._callFunction("setEnumESpecificVolumeAtUnitPressureProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
200
|
+
def _getEnumEInitialStateOfConsolidationProperty(self, propertyName: str):
|
|
201
|
+
return self._callFunction("getEnumEInitialStateOfConsolidationProperty", [propertyName])
|
|
202
|
+
def _setEnumEInitialStateOfConsolidationProperty(self, propertyName: str, value):
|
|
203
|
+
return self._callFunction("setEnumEInitialStateOfConsolidationProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
204
|
+
def _getEnumEMCCapTypeProperty(self, propertyName: str):
|
|
205
|
+
return self._callFunction("getEnumEMCCapTypeProperty", [propertyName])
|
|
206
|
+
def _setEnumEMCCapTypeProperty(self, propertyName: str, value):
|
|
207
|
+
return self._callFunction("setEnumEMCCapTypeProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
208
|
+
def _getEnumECapHardeningTypesProperty(self, propertyName: str):
|
|
209
|
+
return self._callFunction("getEnumECapHardeningTypesProperty", [propertyName])
|
|
210
|
+
def _setEnumECapHardeningTypesProperty(self, propertyName: str, value):
|
|
211
|
+
return self._callFunction("setEnumECapHardeningTypesProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
212
|
+
def _getEnumEConeHardeningTypesProperty(self, propertyName: str):
|
|
213
|
+
return self._callFunction("getEnumEConeHardeningTypesProperty", [propertyName])
|
|
214
|
+
def _setEnumEConeHardeningTypesProperty(self, propertyName: str, value):
|
|
215
|
+
return self._callFunction("setEnumEConeHardeningTypesProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
216
|
+
def _getEnumEDilationTypesProperty(self, propertyName: str):
|
|
217
|
+
return self._callFunction("getEnumEDilationTypesProperty", [propertyName])
|
|
218
|
+
def _setEnumEDilationTypesProperty(self, propertyName: str, value):
|
|
219
|
+
return self._callFunction("setEnumEDilationTypesProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
220
|
+
def _getEnumECapTypesProperty(self, propertyName: str):
|
|
221
|
+
return self._callFunction("getEnumECapTypesProperty", [propertyName])
|
|
222
|
+
def _setEnumECapTypesProperty(self, propertyName: str, value):
|
|
223
|
+
return self._callFunction("setEnumECapTypesProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
224
|
+
def _getEnumENorSandInitialConsolidationConditionProperty(self, propertyName: str):
|
|
225
|
+
return self._callFunction("getEnumENorSandInitialConsolidationConditionProperty", [propertyName])
|
|
226
|
+
def _setEnumENorSandInitialConsolidationConditionProperty(self, propertyName: str, value):
|
|
227
|
+
return self._callFunction("setEnumENorSandInitialConsolidationConditionProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
228
|
+
def _getEnumEFinnFormulaProperty(self, propertyName: str):
|
|
229
|
+
return self._callFunction("getEnumEFinnFormulaProperty", [propertyName])
|
|
230
|
+
def _setEnumEFinnFormulaProperty(self, propertyName: str, value):
|
|
231
|
+
return self._callFunction("setEnumEFinnFormulaProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
232
|
+
def _getEnumEFinnByrneDefinitionProperty(self, propertyName: str):
|
|
233
|
+
return self._callFunction("getEnumEFinnByrneDefinitionProperty", [propertyName])
|
|
234
|
+
def _setEnumEFinnByrneDefinitionProperty(self, propertyName: str, value):
|
|
235
|
+
return self._callFunction("setEnumEFinnByrneDefinitionProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
236
|
+
def _getEnumEStressHistoryTypesProperty(self, propertyName: str):
|
|
237
|
+
return self._callFunction("getEnumEStressHistoryTypesProperty", [propertyName])
|
|
238
|
+
def _setEnumEStressHistoryTypesProperty(self, propertyName: str, value):
|
|
239
|
+
return self._callFunction("setEnumEStressHistoryTypesProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
240
|
+
def _getEnumEStressHistoryDefinitionMethodsProperty(self, propertyName: str):
|
|
241
|
+
return self._callFunction("getEnumEStressHistoryDefinitionMethodsProperty", [propertyName])
|
|
242
|
+
def _setEnumEStressHistoryDefinitionMethodsProperty(self, propertyName: str, value):
|
|
243
|
+
return self._callFunction("setEnumEStressHistoryDefinitionMethodsProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
244
|
+
def _getEnumEDilationOptionProperty(self, propertyName: str):
|
|
245
|
+
return self._callFunction("getEnumEDilationOptionProperty", [propertyName])
|
|
246
|
+
def _setEnumEDilationOptionProperty(self, propertyName: str, value):
|
|
247
|
+
return self._callFunction("setEnumEDilationOptionProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
248
|
+
def _getEnumECySoilCapOptionProperty(self, propertyName: str):
|
|
249
|
+
return self._callFunction("getEnumECySoilCapOptionProperty", [propertyName])
|
|
250
|
+
def _setEnumECySoilCapOptionProperty(self, propertyName: str, value):
|
|
251
|
+
return self._callFunction("setEnumECySoilCapOptionProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
252
|
+
def _getEnumEDilatancyProperty(self, propertyName: str):
|
|
253
|
+
return self._callFunction("getEnumEDilatancyProperty", [propertyName])
|
|
254
|
+
def _setEnumEDilatancyProperty(self, propertyName: str, value):
|
|
255
|
+
return self._callFunction("setEnumEDilatancyProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
256
|
+
def _getEnumEInitialConsolidationProperty(self, propertyName: str):
|
|
257
|
+
return self._callFunction("getEnumEInitialConsolidationProperty", [propertyName])
|
|
258
|
+
def _setEnumEInitialConsolidationProperty(self, propertyName: str, value):
|
|
259
|
+
return self._callFunction("setEnumEInitialConsolidationProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
260
|
+
def _getEnumESwellingFormProperty(self, propertyName: str):
|
|
261
|
+
return self._callFunction("getEnumESwellingFormProperty", [propertyName])
|
|
262
|
+
def _setEnumESwellingFormProperty(self, propertyName: str, value):
|
|
263
|
+
return self._callFunction("setEnumESwellingFormProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
264
|
+
def _getEnumEWaterConditionProperty(self, propertyName: str):
|
|
265
|
+
return self._callFunction("getEnumEWaterConditionProperty", [propertyName])
|
|
266
|
+
def _setEnumEWaterConditionProperty(self, propertyName: str, value):
|
|
267
|
+
return self._callFunction("setEnumEWaterConditionProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
268
|
+
def _getEnumEEnhancedSimpleSoilTypesProperty(self, propertyName: str):
|
|
269
|
+
return self._callFunction("getEnumEEnhancedSimpleSoilTypesProperty", [propertyName])
|
|
270
|
+
def _setEnumEEnhancedSimpleSoilTypesProperty(self, propertyName: str, value):
|
|
271
|
+
return self._callFunction("setEnumEEnhancedSimpleSoilTypesProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
272
|
+
def _getEnumEWCInputTypeProperty(self, propertyName: str):
|
|
273
|
+
return self._callFunction("getEnumEWCInputTypeProperty", [propertyName])
|
|
274
|
+
def _setEnumEWCInputTypeProperty(self, propertyName: str, value):
|
|
275
|
+
return self._callFunction("setEnumEWCInputTypeProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
276
|
+
def _getEnumEThermalSoilTypeProperty(self, propertyName: str):
|
|
277
|
+
return self._callFunction("getEnumEThermalSoilTypeProperty", [propertyName])
|
|
278
|
+
def _setEnumEThermalSoilTypeProperty(self, propertyName: str, value):
|
|
279
|
+
return self._callFunction("setEnumEThermalSoilTypeProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
280
|
+
def _getEnumEThermalVolumetricDepencenceTypeProperty(self, propertyName: str):
|
|
281
|
+
return self._callFunction("getEnumEThermalVolumetricDepencenceTypeProperty", [propertyName])
|
|
282
|
+
def _setEnumEThermalVolumetricDepencenceTypeProperty(self, propertyName: str, value):
|
|
283
|
+
return self._callFunction("setEnumEThermalVolumetricDepencenceTypeProperty", [propertyName, value.value, self.documentProxyID], proxyArgumentIndices=[2])
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import subprocess
|
|
2
|
+
import time
|
|
3
|
+
from rs2._common.Client import Client
|
|
4
|
+
from multiprocessing.connection import Listener
|
|
5
|
+
|
|
6
|
+
class ApplicationManager:
|
|
7
|
+
minimumPort = 49152
|
|
8
|
+
maximumPort = 65535
|
|
9
|
+
defaultTimeout = 30
|
|
10
|
+
def startApplication(self, pathToExecutable : str, port : int, timeout : float = defaultTimeout ):
|
|
11
|
+
"""
|
|
12
|
+
Starts the application specified by pathToExecutable and starts the python server on the given port.
|
|
13
|
+
Returns when the server is ready to accept requests.
|
|
14
|
+
Throws TimeoutError exception if the server is not ready within that time.
|
|
15
|
+
|
|
16
|
+
Args:
|
|
17
|
+
pathToExecutable: the full path to the executable of the application you want to start.
|
|
18
|
+
port: the port number you want the python server to bind to.
|
|
19
|
+
timeout: time in seconds before we stop trying to start the application
|
|
20
|
+
|
|
21
|
+
Raises:
|
|
22
|
+
ValueError: Port range must be between 49152 and 65535, otherwise ValueError is raised
|
|
23
|
+
TimeoutError: if timeout is provided, raises TimeoutError if not able to connect to the server within that time.
|
|
24
|
+
"""
|
|
25
|
+
if port < self.minimumPort or port > self.maximumPort:
|
|
26
|
+
raise ValueError(f"port must be in the range {self.minimumPort} to {self.maximumPort}")
|
|
27
|
+
|
|
28
|
+
if not self._isPortAvailable(port):
|
|
29
|
+
raise RuntimeError(f"port number {port} is occupied. Please choose another port.")
|
|
30
|
+
|
|
31
|
+
subprocess.Popen([f"{pathToExecutable}", "-startpythonserver", f"{port}"], start_new_session = True, creationflags=subprocess.DETACHED_PROCESS)
|
|
32
|
+
|
|
33
|
+
self._tryToConnectToServer(port, timeout)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def _isPortAvailable(self, port):
|
|
37
|
+
portAvailable = False
|
|
38
|
+
listener = None
|
|
39
|
+
try:
|
|
40
|
+
listener = Listener(('localhost', port), 'AF_INET')
|
|
41
|
+
portAvailable = True
|
|
42
|
+
except Exception:
|
|
43
|
+
portAvailable = False
|
|
44
|
+
|
|
45
|
+
if listener:
|
|
46
|
+
listener.close()
|
|
47
|
+
|
|
48
|
+
return portAvailable
|
|
49
|
+
|
|
50
|
+
def _tryToConnectToServer(self, port, timeout):
|
|
51
|
+
|
|
52
|
+
startTime = time.time()
|
|
53
|
+
serverIsRunning = False
|
|
54
|
+
|
|
55
|
+
while not serverIsRunning:
|
|
56
|
+
if timeout:
|
|
57
|
+
if (time.time() - startTime) > timeout:
|
|
58
|
+
raise TimeoutError("The application did not start within the given timeout time.")
|
|
59
|
+
try:
|
|
60
|
+
client = Client("localhost", port)
|
|
61
|
+
client.closeConnection()
|
|
62
|
+
except Exception as e:
|
|
63
|
+
continue
|
|
64
|
+
serverIsRunning = True
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
class ColorPicker():
|
|
2
|
+
Black = 0x000000
|
|
3
|
+
Brown = 0x002AA5
|
|
4
|
+
Dark_Olive_Green = 0x404000
|
|
5
|
+
Dark_Green = 0x005500
|
|
6
|
+
Dark_Teal = 0x5E0000
|
|
7
|
+
Dark_Blue = 0x8B0000
|
|
8
|
+
Indigo = 0x82004B
|
|
9
|
+
Dark_Grey = 0x282828
|
|
10
|
+
|
|
11
|
+
Dark_Red = 0x00008B
|
|
12
|
+
Orange = 0x2068FF
|
|
13
|
+
Dark_Yellow = 0x008B8B
|
|
14
|
+
Green = 0x009300
|
|
15
|
+
Teal = 0x8E8E38
|
|
16
|
+
Blue = 0xFF0000
|
|
17
|
+
Blue_Grey = 0xC07B7B
|
|
18
|
+
Grey_40 = 0x666666
|
|
19
|
+
|
|
20
|
+
Red = 0x0000FF
|
|
21
|
+
Light_Orange = 0x5BADFF
|
|
22
|
+
Lime = 0x32CD32
|
|
23
|
+
Sea_Green = 0x71B33C
|
|
24
|
+
Aqua = 0xD4FF7F
|
|
25
|
+
Light_Blue = 0xC09E7D
|
|
26
|
+
Violet = 0x800080
|
|
27
|
+
Grey_50 = 0x7F7F7F
|
|
28
|
+
|
|
29
|
+
Pink = 0xCBC0FF
|
|
30
|
+
Gold = 0x00D7FF
|
|
31
|
+
Yellow = 0x00FFFF
|
|
32
|
+
Bright_Green = 0x00FF00
|
|
33
|
+
Turquoise = 0xD0E040
|
|
34
|
+
Skyblue = 0xFFFFC0
|
|
35
|
+
Plum = 0x480048
|
|
36
|
+
Light_Grey = 0xC0C0C0
|
|
37
|
+
|
|
38
|
+
Rose = 0xE1E4FF
|
|
39
|
+
Tan = 0x8CB4D2
|
|
40
|
+
Light_Yellow = 0xE0FFFF
|
|
41
|
+
Pale_Green = 0x98FB98
|
|
42
|
+
Pale_Turquoise = 0xEEEEAF
|
|
43
|
+
Pale_Blue = 0x8B8368
|
|
44
|
+
Lavender = 0xFAE6E6
|
|
45
|
+
White = 0xFFFFFF
|
|
46
|
+
|
|
47
|
+
def getRGBFromColor(color: int):
|
|
48
|
+
"""
|
|
49
|
+
Returns the RGB representation of a color from its int value
|
|
50
|
+
|
|
51
|
+
Params:
|
|
52
|
+
color (int) : int representing the color
|
|
53
|
+
|
|
54
|
+
Returns: tuple containing red, green and blue values of the color. Each of red, green and blue are between 0 and 255 inclusive
|
|
55
|
+
"""
|
|
56
|
+
# Internally MSFT COLORREF stores the byte ordering of RGB Color as BGR: 0x00bbggrr
|
|
57
|
+
blue = (color >> 16) & 0xFF
|
|
58
|
+
green = (color >> 8) & 0xFF
|
|
59
|
+
red = color & 0xFF
|
|
60
|
+
|
|
61
|
+
return (red, green, blue)
|
|
62
|
+
|
|
63
|
+
def getColorFromRGB(red: int, green: int, blue: int):
|
|
64
|
+
"""
|
|
65
|
+
Returns the int representation of a color from its R, G, B values
|
|
66
|
+
|
|
67
|
+
Params:
|
|
68
|
+
red (int) : int representing red value of the color. Must be between 0 and 255 inclusive
|
|
69
|
+
green (int) : int representing green value of the color. Must be between 0 and 255 inclusive
|
|
70
|
+
blue (int) : int representing blue value of the color. Must be between 0 and 255 inclusive
|
|
71
|
+
|
|
72
|
+
Returns: int representation of color formed combining rgb values
|
|
73
|
+
"""
|
|
74
|
+
if not (0 <= red <= 255 and 0 <= green <= 255 and 0 <= blue <= 255):
|
|
75
|
+
raise ValueError("Red, Green, and Blue values must be between 0 and 255, inclusive")
|
|
76
|
+
|
|
77
|
+
# Internally MSFT COLORREF stores the byte ordering of RGB Color as BGR: 0x00bbggrr
|
|
78
|
+
return (blue << 16) | (green << 8) | red
|
|
File without changes
|