RS2Scripting 11.25.0__tar.gz → 11.26.0__tar.gz
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.25.0/src/RS2Scripting.egg-info → rs2scripting-11.26.0}/PKG-INFO +3 -3
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/README.md +1 -1
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/pyproject.toml +1 -1
- {rs2scripting-11.25.0 → rs2scripting-11.26.0/src/RS2Scripting.egg-info}/PKG-INFO +3 -3
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/_common/Client.py +1 -1
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/interpreter/RS2Interpreter.py +75 -75
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/RS2Modeler.py +78 -78
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/HydroDistribution.py +164 -164
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/tests/testSaveAs.py +45 -43
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/License.txt +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/setup.cfg +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/RS2Scripting.egg-info/SOURCES.txt +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/RS2Scripting.egg-info/dependency_links.txt +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/RS2Scripting.egg-info/requires.txt +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/RS2Scripting.egg-info/top_level.txt +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/BaseModel.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/Units.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/_common/ProxyObject.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/_common/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/_common/documentProxy.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/interpreter/InterpreterEnums.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/interpreter/InterpreterGraphEnums.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/interpreter/InterpreterModel.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/interpreter/_UtilityResult.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/interpreter/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/interpreter/queryResults/HistoryQueryResults.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/interpreter/queryResults/MaterialQueryResults.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/interpreter/queryResults/MeshResults.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/interpreter/queryResults/TimeQueryResults.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/interpreter/queryResults/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/interpreter/supportResults/BoltResult.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/interpreter/supportResults/CompositeResult.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/interpreter/supportResults/JointResult.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/interpreter/supportResults/LinerResult.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/interpreter/supportResults/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/Model.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/AbsoluteStageFactorGettersInterface.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/AbsoluteStageFactorInterface.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/CompositeProperty.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/DiscreteFunction.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/HydroDistributionFunction.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/MaterialJoint.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/MaterialJointOptions.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/PropertyEnums.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/RelativeStageFactorInterface.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/ShearNormalFunction.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/SnowdenAnisotropicFunction.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/StructuralInterface.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/UserDefinedWaterMode.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/bolt/Bolt.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/bolt/EndAnchored.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/bolt/FullyBonded.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/bolt/PlainStrandCable.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/bolt/Swellex.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/bolt/Tieback.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/bolt/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/BartonBandis.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/BartonBandisMaterial.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/DisplacementDependent.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/GeosyntheticHyperbolic.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/GeosyntheticHyperbolicMaterial.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/HyperbolicSoftening.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/Joint.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/MaterialDependent.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/MohrCoulomb.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/MohrCoulombMaterial.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/NoneSlip.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/liner/CableTruss.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/liner/Geosynthetic.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/liner/Liner.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/liner/ReinforcedConcrete.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/liner/StandardBeam.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/liner/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/InitialConditions.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/MaterialProperty.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/StageFactors.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/datum/BaseDatum.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/datum/Datum.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/datum/PeakResidualDatum.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/datum/SimpleDatum.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/datum/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/Brooks.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/Constant.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/FEAGroundwater.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/Fredlund.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/Gardner.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/Genuchten.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/Simple.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/UserDefined.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/Hydraulic.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/StaticGroundwater.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/ChSoil.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/Custom.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/CySoil.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/DoubleYield.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/HardeningSoil.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/HardeningSoilSmallStrainStiffness.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/Isotropic.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/ManzariAndDafalias.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/NonLinearHyperbolic.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/NonLinearIsotropic.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/Norsand.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/Orthotropic.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/Pm4Sand.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/Pm4Silt.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/SoftSoil.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/SoftSoilCreep.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/Stiffness.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/SwellingRock.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/TransverselyIsotropic.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/ViscoElastic.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/AnisotropicLinear.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/BarcelonaBasic.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/BartonBandisStrength.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/BoundingSurfacePlasticity.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/CamClay.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/ChSoilStrength.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/CySoilStrength.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/DiscreteFunction.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/DoubleYieldStrength.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/DruckerPrager.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/Finn.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/GeneralizedAnisotropic.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/GeneralizedHoekBrown.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/HardeningSoilStrength.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/HardeningSoilWithSmallStrainStiffness.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/HoekBrown.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/Hyperbolic.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/JointedGeneralizedHoekBrown.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/JointedMohrCoulomb.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/ManzariAndDafaliasStrength.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/ModifiedCamClay.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/MohrCoulombStrength.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/MohrCoulombWithCap.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/NorSandStrength.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/PM4SandStrength.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/PM4SiltStrength.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/PowerCurve.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/Shansep.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/ShearNormalFunction.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/SnowdenModAnisotropicLinear.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/SoftSoilCreepStrength.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/SoftSoilStrength.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/SofteningHardeningModel.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/Strength.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/SwellingRockStrength.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/VerticalStressRatio.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/Thermal.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/conductivity/Conductivity.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/conductivity/ConstantConductivity.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/conductivity/CoteAndKonrad.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/conductivity/Derives.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/conductivity/Johansen.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/conductivity/JohansenLu.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/conductivity/Tabular.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/conductivity/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/heatcapacity/ConstantHeatCapacity.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/heatcapacity/CustomHeatCapacity.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/heatcapacity/HeatCapacity.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/heatcapacity/JameNewman.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/heatcapacity/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/CustomWaterContent.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/Konrad.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/SoilUnfrozenWaterContent.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/TiceAnderson.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/BrooksWaterContent.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/FredlundWaterContent.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/GardnerWaterContent.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/GenuchtenWaterContent.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/HydraulicModel.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/SimpleWaterContent.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/pile/Beam.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/pile/Elastic.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/pile/ForceDisplacement.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/pile/Linear.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/pile/MaterialDependentPile.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/pile/MohrCoulombPile.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/pile/MultiLinear.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/pile/Pile.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/pile/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/modeler/properties/propertyProxy.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/utilities/ApplicationManager.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/utilities/ColorPicker.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/src/rs2/utilities/__init__.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/tests/testExampleCode.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/tests/testFileOpenWarning.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/tests/testInterpreterMultipleFileCloseProgram.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/tests/testInterpreterSaveAs.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/tests/testInterpreterSingleFileCloseProgram.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/tests/testMaterialJointOptions.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/tests/testModelerMultipleFileCloseProgram.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/tests/testModelerSingleFileCloseProgram.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/tests/testOpenFileNoResults.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/tests/testShearNormalFunction.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/tests/testSnowdenAnisotropicFunction.py +0 -0
- {rs2scripting-11.25.0 → rs2scripting-11.26.0}/tests/testStiffnessYoungModulusE1EZFactor.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: RS2Scripting
|
|
3
|
-
Version: 11.
|
|
3
|
+
Version: 11.26.0
|
|
4
4
|
Summary: Client library for interacting with RS2 through python
|
|
5
5
|
Author: Rocscience
|
|
6
6
|
License: MIT License
|
|
@@ -107,7 +107,7 @@ The following steps can be taken to regenerate the RS2 Scripting Documentation:
|
|
|
107
107
|
2. Rebuild the RS2 library in your virtual environment by following the [Build](#build) section.
|
|
108
108
|
3. Install the documentation requirement packages.
|
|
109
109
|
```pip install -r docs/requirements.txt```
|
|
110
|
-
4. Run docs
|
|
110
|
+
4. Run .\docs\example_code\runAllExamples.bat file in the folder to update example results. This will run the examples using the version of RS2 you have installed on your machine.
|
|
111
111
|
5. To generate the documentation run the following:
|
|
112
112
|
```python generateAndBuildDocumentation.py```
|
|
113
113
|
|
|
@@ -90,7 +90,7 @@ The following steps can be taken to regenerate the RS2 Scripting Documentation:
|
|
|
90
90
|
2. Rebuild the RS2 library in your virtual environment by following the [Build](#build) section.
|
|
91
91
|
3. Install the documentation requirement packages.
|
|
92
92
|
```pip install -r docs/requirements.txt```
|
|
93
|
-
4. Run docs
|
|
93
|
+
4. Run .\docs\example_code\runAllExamples.bat file in the folder to update example results. This will run the examples using the version of RS2 you have installed on your machine.
|
|
94
94
|
5. To generate the documentation run the following:
|
|
95
95
|
```python generateAndBuildDocumentation.py```
|
|
96
96
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: RS2Scripting
|
|
3
|
-
Version: 11.
|
|
3
|
+
Version: 11.26.0
|
|
4
4
|
Summary: Client library for interacting with RS2 through python
|
|
5
5
|
Author: Rocscience
|
|
6
6
|
License: MIT License
|
|
@@ -107,7 +107,7 @@ The following steps can be taken to regenerate the RS2 Scripting Documentation:
|
|
|
107
107
|
2. Rebuild the RS2 library in your virtual environment by following the [Build](#build) section.
|
|
108
108
|
3. Install the documentation requirement packages.
|
|
109
109
|
```pip install -r docs/requirements.txt```
|
|
110
|
-
4. Run docs
|
|
110
|
+
4. Run .\docs\example_code\runAllExamples.bat file in the folder to update example results. This will run the examples using the version of RS2 you have installed on your machine.
|
|
111
111
|
5. To generate the documentation run the following:
|
|
112
112
|
```python generateAndBuildDocumentation.py```
|
|
113
113
|
|
|
@@ -5,7 +5,7 @@ from multiprocessing.connection import Client as multiProcessingClient
|
|
|
5
5
|
|
|
6
6
|
class Client:
|
|
7
7
|
def __init__(self, host, port):
|
|
8
|
-
self.compatibleProgramVersion = "11.
|
|
8
|
+
self.compatibleProgramVersion = "11.026"
|
|
9
9
|
self.connection = self.establishConnection(host, port)
|
|
10
10
|
if self.connection == None:
|
|
11
11
|
raise RuntimeError("Could not establish connection with the server. Make sure the server is started on the application.")
|
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
from rsmessages.requestFormat import functionRequest
|
|
2
|
-
from rs2._common.Client import Client
|
|
3
|
-
from rs2.utilities.ApplicationManager import ApplicationManager
|
|
4
|
-
from rs2.interpreter.InterpreterModel import Model
|
|
5
|
-
import winreg
|
|
6
|
-
import time
|
|
7
|
-
|
|
8
|
-
class RS2Interpreter:
|
|
9
|
-
def __init__(self, host = 'localhost', port=60055):
|
|
10
|
-
self.client = Client(host, port)
|
|
11
|
-
|
|
12
|
-
def openFile(self, fileName : str) -> Model:
|
|
13
|
-
'''
|
|
14
|
-
Takes in the absolute path to an rs2 file to be opened in the modeler.
|
|
15
|
-
|
|
16
|
-
Examples:
|
|
17
|
-
.. code-block:: python
|
|
18
|
-
|
|
19
|
-
model = modeler.openFile('C:/simple_3_stage.fez')
|
|
20
|
-
'''
|
|
21
|
-
request = functionRequest('open_file', [fileName], keepReturnValueReference=True)
|
|
22
|
-
modelObjectId = self.client.callFunction(request)
|
|
23
|
-
model = Model(self.client, modelObjectId)
|
|
24
|
-
return model
|
|
25
|
-
|
|
26
|
-
@classmethod
|
|
27
|
-
def startApplication(cls, port : int, overridePathToExecutable : str = None, timeout : float = 30) -> None:
|
|
28
|
-
"""Opens the most recently installed RS2 application. Starts the python server and binds it to the given port.
|
|
29
|
-
|
|
30
|
-
Args:
|
|
31
|
-
port (int): the port to bind the python server to. Use this same port when initializing RS2Modeler
|
|
32
|
-
overridePathToExecutable (str, optional): full path to the desired executable to be opened. If not provided, the latest installation of rs2 is used
|
|
33
|
-
timeout (float, optional): the maximum amount of time to wait for the application and server to start.
|
|
34
|
-
|
|
35
|
-
Raises:
|
|
36
|
-
ValueError: Port range must be between ``49152`` and ``65535``, otherwise ValueError is raised
|
|
37
|
-
TimeoutError: if timeout is provided, raises TimeoutError if not able to connect to the server within that time.
|
|
38
|
-
"""
|
|
39
|
-
appManager = ApplicationManager()
|
|
40
|
-
executablePath = overridePathToExecutable if overridePathToExecutable else cls._getApplicationPath()
|
|
41
|
-
appManager.startApplication(executablePath, port, timeout)
|
|
42
|
-
|
|
43
|
-
@staticmethod
|
|
44
|
-
def _getApplicationPath() -> str:
|
|
45
|
-
|
|
46
|
-
registry = winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE)
|
|
47
|
-
key = winreg.OpenKey(registry, r'SOFTWARE\Rocscience\RS2 11.0')
|
|
48
|
-
installationLocation, type = winreg.QueryValueEx(key, "Install")
|
|
49
|
-
|
|
50
|
-
rs2ModelerInstallLocation = rf"{installationLocation}\Interpret"
|
|
51
|
-
|
|
52
|
-
return rs2ModelerInstallLocation
|
|
53
|
-
|
|
54
|
-
def closeProgram(self, saveModels=True, timeout=30):
|
|
55
|
-
'''
|
|
56
|
-
Closes the modeler program. All unsaved models are saved by default.
|
|
57
|
-
|
|
58
|
-
Examples:
|
|
59
|
-
.. code-block:: python
|
|
60
|
-
|
|
61
|
-
#Saves all models before closing
|
|
62
|
-
modeler.closeProgram(True)
|
|
63
|
-
|
|
64
|
-
#Closes without saving any models
|
|
65
|
-
modeler.closeProgram(False)
|
|
66
|
-
'''
|
|
67
|
-
request = functionRequest('closeProgram', [saveModels])
|
|
68
|
-
portUsed = self.client.callFunction(request)
|
|
69
|
-
self.client.closeConnection()
|
|
70
|
-
appManager = ApplicationManager()
|
|
71
|
-
portIsAvailable = False
|
|
72
|
-
startTime = time.time()
|
|
73
|
-
while not portIsAvailable:
|
|
74
|
-
if (time.time() - startTime) > timeout:
|
|
75
|
-
raise TimeoutError("The application did not close within the given timeout time.")
|
|
1
|
+
from rsmessages.requestFormat import functionRequest
|
|
2
|
+
from rs2._common.Client import Client
|
|
3
|
+
from rs2.utilities.ApplicationManager import ApplicationManager
|
|
4
|
+
from rs2.interpreter.InterpreterModel import Model
|
|
5
|
+
import winreg
|
|
6
|
+
import time
|
|
7
|
+
|
|
8
|
+
class RS2Interpreter:
|
|
9
|
+
def __init__(self, host = 'localhost', port=60055):
|
|
10
|
+
self.client = Client(host, port)
|
|
11
|
+
|
|
12
|
+
def openFile(self, fileName : str) -> Model:
|
|
13
|
+
'''
|
|
14
|
+
Takes in the absolute path to an rs2 file to be opened in the modeler.
|
|
15
|
+
|
|
16
|
+
Examples:
|
|
17
|
+
.. code-block:: python
|
|
18
|
+
|
|
19
|
+
model = modeler.openFile('C:/simple_3_stage.fez')
|
|
20
|
+
'''
|
|
21
|
+
request = functionRequest('open_file', [fileName], keepReturnValueReference=True)
|
|
22
|
+
modelObjectId = self.client.callFunction(request)
|
|
23
|
+
model = Model(self.client, modelObjectId)
|
|
24
|
+
return model
|
|
25
|
+
|
|
26
|
+
@classmethod
|
|
27
|
+
def startApplication(cls, port : int, overridePathToExecutable : str = None, timeout : float = 30) -> None:
|
|
28
|
+
"""Opens the most recently installed RS2 application. Starts the python server and binds it to the given port.
|
|
29
|
+
|
|
30
|
+
Args:
|
|
31
|
+
port (int): the port to bind the python server to. Use this same port when initializing RS2Modeler
|
|
32
|
+
overridePathToExecutable (str, optional): full path to the desired executable to be opened. If not provided, the latest installation of rs2 is used
|
|
33
|
+
timeout (float, optional): the maximum amount of time to wait for the application and server to start.
|
|
34
|
+
|
|
35
|
+
Raises:
|
|
36
|
+
ValueError: Port range must be between ``49152`` and ``65535``, otherwise ValueError is raised
|
|
37
|
+
TimeoutError: if timeout is provided, raises TimeoutError if not able to connect to the server within that time.
|
|
38
|
+
"""
|
|
39
|
+
appManager = ApplicationManager()
|
|
40
|
+
executablePath = overridePathToExecutable if overridePathToExecutable else cls._getApplicationPath()
|
|
41
|
+
appManager.startApplication(executablePath, port, timeout)
|
|
42
|
+
|
|
43
|
+
@staticmethod
|
|
44
|
+
def _getApplicationPath() -> str:
|
|
45
|
+
|
|
46
|
+
registry = winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE)
|
|
47
|
+
key = winreg.OpenKey(registry, r'SOFTWARE\Rocscience\RS2 11.0')
|
|
48
|
+
installationLocation, type = winreg.QueryValueEx(key, "Install")
|
|
49
|
+
|
|
50
|
+
rs2ModelerInstallLocation = rf"{installationLocation}\Interpret"
|
|
51
|
+
|
|
52
|
+
return rs2ModelerInstallLocation
|
|
53
|
+
|
|
54
|
+
def closeProgram(self, saveModels=True, timeout=30):
|
|
55
|
+
'''
|
|
56
|
+
Closes the modeler program. All unsaved models are saved by default.
|
|
57
|
+
|
|
58
|
+
Examples:
|
|
59
|
+
.. code-block:: python
|
|
60
|
+
|
|
61
|
+
#Saves all models before closing
|
|
62
|
+
modeler.closeProgram(True)
|
|
63
|
+
|
|
64
|
+
#Closes without saving any models
|
|
65
|
+
modeler.closeProgram(False)
|
|
66
|
+
'''
|
|
67
|
+
request = functionRequest('closeProgram', [saveModels])
|
|
68
|
+
portUsed = self.client.callFunction(request)
|
|
69
|
+
self.client.closeConnection()
|
|
70
|
+
appManager = ApplicationManager()
|
|
71
|
+
portIsAvailable = False
|
|
72
|
+
startTime = time.time()
|
|
73
|
+
while not portIsAvailable:
|
|
74
|
+
if (time.time() - startTime) > timeout:
|
|
75
|
+
raise TimeoutError("The application did not close within the given timeout time.")
|
|
76
76
|
portIsAvailable = appManager._isPortAvailable(portUsed)
|
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
from rsmessages.requestFormat import functionRequest
|
|
2
|
-
from rs2._common.Client import Client
|
|
3
|
-
from rs2.modeler.Model import Model
|
|
4
|
-
from rs2.utilities.ApplicationManager import ApplicationManager
|
|
5
|
-
import winreg
|
|
6
|
-
import time
|
|
7
|
-
|
|
8
|
-
class RS2Modeler:
|
|
9
|
-
"""
|
|
10
|
-
:ref:`Modeler Example`
|
|
11
|
-
"""
|
|
12
|
-
def __init__(self, host='localhost', port=60054):
|
|
13
|
-
self.client = Client(host, port)
|
|
14
|
-
|
|
15
|
-
def openFile(self, fileName : str) -> Model:
|
|
16
|
-
'''
|
|
17
|
-
Takes in the absolute path to an rs2 file to be opened in the modeler.
|
|
18
|
-
|
|
19
|
-
Examples:
|
|
20
|
-
.. code-block:: python
|
|
21
|
-
|
|
22
|
-
model = modeler.openFile('C:/simple_3_stage.fez')
|
|
23
|
-
'''
|
|
24
|
-
request = functionRequest('open_file', [fileName], keepReturnValueReference=True)
|
|
25
|
-
modelObjectId = self.client.callFunction(request)
|
|
26
|
-
model = Model(self.client, modelObjectId)
|
|
27
|
-
return model
|
|
28
|
-
|
|
29
|
-
@classmethod
|
|
30
|
-
def startApplication(cls, port : int, overridePathToExecutable : str = None, timeout : float = 30) -> None:
|
|
31
|
-
"""Opens the most recently installed RS2 application. Starts the python server and binds it to the given port.
|
|
32
|
-
|
|
33
|
-
Args:
|
|
34
|
-
port (int): the port to bind the python server to. Use this same port when initializing RS2Modeler
|
|
35
|
-
overridePathToExecutable (str, optional): full path to the desired executable to be opened. If not provided, the latest installation of rs2 is used
|
|
36
|
-
timeout (float, optional): the maximum amount of time to wait for the application and server to start.
|
|
37
|
-
|
|
38
|
-
Raises:
|
|
39
|
-
ValueError: Port range must be between 49152 and 65535, otherwise ValueError is raised
|
|
40
|
-
TimeoutError: if timeout is provided, raises TimeoutError if not able to connect to the server within that time.
|
|
41
|
-
"""
|
|
42
|
-
appManager = ApplicationManager()
|
|
43
|
-
executablePath = overridePathToExecutable if overridePathToExecutable else cls._getApplicationPath()
|
|
44
|
-
appManager.startApplication(executablePath, port, timeout)
|
|
45
|
-
|
|
46
|
-
@staticmethod
|
|
47
|
-
def _getApplicationPath() -> str:
|
|
48
|
-
|
|
49
|
-
registry = winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE)
|
|
50
|
-
key = winreg.OpenKey(registry, r'SOFTWARE\Rocscience\RS2 11.0')
|
|
51
|
-
installationLocation, type = winreg.QueryValueEx(key, "Install")
|
|
52
|
-
|
|
53
|
-
rs2ModelerInstallLocation = rf"{installationLocation}\RS2"
|
|
54
|
-
|
|
55
|
-
return rs2ModelerInstallLocation
|
|
56
|
-
|
|
57
|
-
def closeProgram(self, saveModels=True, timeout=30):
|
|
58
|
-
'''
|
|
59
|
-
Closes the modeler program. All unsaved models are saved by default.
|
|
60
|
-
|
|
61
|
-
Examples:
|
|
62
|
-
.. code-block:: python
|
|
63
|
-
|
|
64
|
-
#saves all models before closing
|
|
65
|
-
modeler.closeProgram(True)
|
|
66
|
-
|
|
67
|
-
#closes the program without saving
|
|
68
|
-
modeler.closeProgram(False)
|
|
69
|
-
'''
|
|
70
|
-
request = functionRequest('closeProgram', [saveModels])
|
|
71
|
-
portUsed = self.client.callFunction(request)
|
|
72
|
-
self.client.closeConnection()
|
|
73
|
-
appManager = ApplicationManager()
|
|
74
|
-
portIsAvailable = False
|
|
75
|
-
startTime = time.time()
|
|
76
|
-
while not portIsAvailable:
|
|
77
|
-
if (time.time() - startTime) > timeout:
|
|
78
|
-
raise TimeoutError("The application did not close within the given timeout time.")
|
|
1
|
+
from rsmessages.requestFormat import functionRequest
|
|
2
|
+
from rs2._common.Client import Client
|
|
3
|
+
from rs2.modeler.Model import Model
|
|
4
|
+
from rs2.utilities.ApplicationManager import ApplicationManager
|
|
5
|
+
import winreg
|
|
6
|
+
import time
|
|
7
|
+
|
|
8
|
+
class RS2Modeler:
|
|
9
|
+
"""
|
|
10
|
+
:ref:`Modeler Example`
|
|
11
|
+
"""
|
|
12
|
+
def __init__(self, host='localhost', port=60054):
|
|
13
|
+
self.client = Client(host, port)
|
|
14
|
+
|
|
15
|
+
def openFile(self, fileName : str) -> Model:
|
|
16
|
+
'''
|
|
17
|
+
Takes in the absolute path to an rs2 file to be opened in the modeler.
|
|
18
|
+
|
|
19
|
+
Examples:
|
|
20
|
+
.. code-block:: python
|
|
21
|
+
|
|
22
|
+
model = modeler.openFile('C:/simple_3_stage.fez')
|
|
23
|
+
'''
|
|
24
|
+
request = functionRequest('open_file', [fileName], keepReturnValueReference=True)
|
|
25
|
+
modelObjectId = self.client.callFunction(request)
|
|
26
|
+
model = Model(self.client, modelObjectId)
|
|
27
|
+
return model
|
|
28
|
+
|
|
29
|
+
@classmethod
|
|
30
|
+
def startApplication(cls, port : int, overridePathToExecutable : str = None, timeout : float = 30) -> None:
|
|
31
|
+
"""Opens the most recently installed RS2 application. Starts the python server and binds it to the given port.
|
|
32
|
+
|
|
33
|
+
Args:
|
|
34
|
+
port (int): the port to bind the python server to. Use this same port when initializing RS2Modeler
|
|
35
|
+
overridePathToExecutable (str, optional): full path to the desired executable to be opened. If not provided, the latest installation of rs2 is used
|
|
36
|
+
timeout (float, optional): the maximum amount of time to wait for the application and server to start.
|
|
37
|
+
|
|
38
|
+
Raises:
|
|
39
|
+
ValueError: Port range must be between 49152 and 65535, otherwise ValueError is raised
|
|
40
|
+
TimeoutError: if timeout is provided, raises TimeoutError if not able to connect to the server within that time.
|
|
41
|
+
"""
|
|
42
|
+
appManager = ApplicationManager()
|
|
43
|
+
executablePath = overridePathToExecutable if overridePathToExecutable else cls._getApplicationPath()
|
|
44
|
+
appManager.startApplication(executablePath, port, timeout)
|
|
45
|
+
|
|
46
|
+
@staticmethod
|
|
47
|
+
def _getApplicationPath() -> str:
|
|
48
|
+
|
|
49
|
+
registry = winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE)
|
|
50
|
+
key = winreg.OpenKey(registry, r'SOFTWARE\Rocscience\RS2 11.0')
|
|
51
|
+
installationLocation, type = winreg.QueryValueEx(key, "Install")
|
|
52
|
+
|
|
53
|
+
rs2ModelerInstallLocation = rf"{installationLocation}\RS2"
|
|
54
|
+
|
|
55
|
+
return rs2ModelerInstallLocation
|
|
56
|
+
|
|
57
|
+
def closeProgram(self, saveModels=True, timeout=30):
|
|
58
|
+
'''
|
|
59
|
+
Closes the modeler program. All unsaved models are saved by default.
|
|
60
|
+
|
|
61
|
+
Examples:
|
|
62
|
+
.. code-block:: python
|
|
63
|
+
|
|
64
|
+
#saves all models before closing
|
|
65
|
+
modeler.closeProgram(True)
|
|
66
|
+
|
|
67
|
+
#closes the program without saving
|
|
68
|
+
modeler.closeProgram(False)
|
|
69
|
+
'''
|
|
70
|
+
request = functionRequest('closeProgram', [saveModels])
|
|
71
|
+
portUsed = self.client.callFunction(request)
|
|
72
|
+
self.client.closeConnection()
|
|
73
|
+
appManager = ApplicationManager()
|
|
74
|
+
portIsAvailable = False
|
|
75
|
+
startTime = time.time()
|
|
76
|
+
while not portIsAvailable:
|
|
77
|
+
if (time.time() - startTime) > timeout:
|
|
78
|
+
raise TimeoutError("The application did not close within the given timeout time.")
|
|
79
79
|
portIsAvailable = appManager._isPortAvailable(portUsed)
|