Skip to content

Commit

Permalink
rename objects 3d (#4431)
Browse files Browse the repository at this point in the history
Co-authored-by: Samuel Lopez <[email protected]>
  • Loading branch information
gmalinve and Samuelopez-ansys authored Apr 1, 2024
1 parent 610521b commit a324b9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions _unittest/test_07_Object3D.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ def test_07_object_clone_and_get_properties(self):
assert len(new_object.faces) == 6
assert len(new_object.edges) == 12
assert new_object.display_wireframe == initial_object.display_wireframe
new_object.name = "Properties_Box"
assert not new_object.name == "Properties_Box"

def test_08_set_model(self):
o = self.create_copper_box()
Expand Down
2 changes: 1 addition & 1 deletion pyaedt/modeler/cad/object3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ def name(self, obj_name):
self._primitives.add_new_objects()
self._primitives.cleanup_objects()
else:
pass
self.logger.warning("{} is already used in current design.".format(obj_name))

@property
def valid_properties(self):
Expand Down

0 comments on commit a324b9d

Please sign in to comment.