7676from ansys .geometry .core .misc .checks import ensure_design_is_active , min_backend_version
7777from ansys .geometry .core .misc .measurements import DEFAULT_UNITS , Distance
7878from ansys .geometry .core .modeler import Modeler
79- from ansys .geometry .core .parameters . driving_dimensions import DrivingDimension as DrivingDimension
79+ from ansys .geometry .core .parameters import Parameter
8080from ansys .geometry .core .typing import RealSequence
8181
8282
@@ -115,7 +115,7 @@ class Design(Component):
115115 _materials : list [Material ]
116116 _named_selections : dict [str , NamedSelection ]
117117 _beam_profiles : dict [str , BeamProfile ]
118- _driving_dimensions : list [DrivingDimension ]
118+ _driving_dimensions : list [Parameter ]
119119
120120 @protect_grpc
121121 @check_input_types
@@ -138,7 +138,7 @@ def __init__(self, name: str, modeler: Modeler, read_existing_design: bool = Fal
138138 self ._design_id = ""
139139 self ._is_active = False
140140 self ._modeler = modeler
141- self ._driving_dimensions = []
141+ self ._parameters = []
142142
143143 # Check whether we want to process an existing design or create a new one.
144144 if read_existing_design :
@@ -172,9 +172,9 @@ def beam_profiles(self) -> list[BeamProfile]:
172172 return list (self ._beam_profiles .values ())
173173
174174 @property
175- def driving_dimensions (self ) -> list [DrivingDimension ]:
176- """List of driving dimensions available for the design."""
177- return self .get_all_driving_dimensions ()
175+ def parameters (self ) -> list [Parameter ]:
176+ """List of parameters available for the design."""
177+ return self .get_all_parameters ()
178178
179179 @property
180180 def is_active (self ) -> bool :
@@ -669,36 +669,34 @@ def add_beam_circular_profile(
669669
670670 @protect_grpc
671671 @min_backend_version (25 , 1 , 0 )
672- def get_all_driving_dimensions (self ):
673- """Get driving dimensions for the design.
672+ def get_all_parameters (self ):
673+ """Get parameters for the design.
674674
675675 Returns
676676 -------
677677 List[DrivingDimension]
678- List of driving dimensions for the design.
678+ List of parameters for the design.
679679 """
680680 response = self ._parameters_stub .GetAll (GetAllRequest ())
681- return [
682- DrivingDimension ._from_proto (dimension ) for dimension in response .driving_dimensions
683- ]
681+ return [Parameter ._from_proto (dimension ) for dimension in response .driving_dimensions ]
684682
685683 @protect_grpc
686684 @check_input_types
687685 @min_backend_version (25 , 1 , 0 )
688- def set_driving_dimensions (self , dimension : DrivingDimension ) -> bool :
689- """Update a driving dimension of the design.
686+ def set_parameters (self , dimension : Parameter ) -> bool :
687+ """Update a parameter of the design.
690688
691689 Parameters
692690 ----------
693691 dimensions : List[DrivingDimension]
694- List of driving dimensions to set.
692+ List of parameters to set.
695693
696694 Returns
697695 -------
698696 bool
699- True if driving dimensions were set successfully.
697+ True if parameters were set successfully.
700698 """
701- request = UpdateRequest (driving_dimension = DrivingDimension ._to_proto (dimension ))
699+ request = UpdateRequest (driving_dimension = Parameter ._to_proto (dimension ))
702700 dimension = self ._parameters_stub .Update (request )
703701 return dimension
704702
0 commit comments