Skip to content

Commit

Permalink
fixed name conflict in RemoveFace
Browse files Browse the repository at this point in the history
  • Loading branch information
evereux committed Apr 22, 2024
1 parent 8511cbd commit 5b62bdf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* added option to initialise the Application object with pythoncom.CoInitialize().
This is required for when using pycatia in a threaded context. To use this
feature you would do `caa = catia(co_initialise=True)`.
* fixed name conflict in RemoveFace().


## 0.6.7
Expand Down
16 changes: 8 additions & 8 deletions pycatia/part_interfaces/remove_face.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class RemoveFace(DressUpShape):

def __init__(self, com_object):
super().__init__(com_object)
self.remove_face = com_object
self._remove_face = com_object

def keep_face(self, reference: Reference):
"""
Expand All @@ -59,7 +59,7 @@ def keep_face(self, reference: Reference):
:param Reference reference:
"""

self.remove_face.KeepFace = reference.com_object
self._remove_face.KeepFace = reference.com_object

@property
def keep_faces(self) -> References:
Expand All @@ -75,7 +75,7 @@ def keep_faces(self) -> References:
:rtype: References
"""

return References(self.remove_face.KeepFaces)
return References(self._remove_face.KeepFaces)

@property
def propagation(self) -> References:
Expand All @@ -91,7 +91,7 @@ def propagation(self) -> References:
:rtype: References
"""

return References(self.remove_face.Propagation)
return References(self._remove_face.Propagation)

def remove_face(self, reference: Reference):
"""
Expand All @@ -114,7 +114,7 @@ def remove_face(self, reference: Reference):
:param Reference reference:
"""

self.remove_face.RemoveFace = reference.com_object
self._remove_face.RemoveFace = reference.com_object

@property
def remove_faces(self) -> References:
Expand All @@ -130,7 +130,7 @@ def remove_faces(self) -> References:
:rtype: References
"""

return References(self.remove_face.RemoveFaces)
return References(self._remove_face.RemoveFaces)

def remove_keep_face(self, i_keep_face: Reference) -> None:
"""
Expand All @@ -153,7 +153,7 @@ def remove_keep_face(self, i_keep_face: Reference) -> None:
:param Reference i_keep_face:
:rtype: None
"""
return self.remove_face.remove_KeepFace(i_keep_face.com_object)
return self._remove_face.remove_KeepFace(i_keep_face.com_object)
# # # # Autogenerated comment:
# # some methods require a system service call as the methods expects a vb array object
# # passed to it and there is no way to do this directly with python. In those cases the following code
Expand Down Expand Up @@ -191,7 +191,7 @@ def remove_remove_face(self, i_remove_face: Reference) -> None:
:param Reference i_remove_face:
:rtype: None
"""
return self.remove_face.remove_RemoveFace(i_remove_face.com_object)
return self._remove_face.remove_RemoveFace(i_remove_face.com_object)
# # # # Autogenerated comment:
# # some methods require a system service call as the methods expects a vb array object
# # passed to it and there is no way to do this directly with python. In those cases the following code
Expand Down

0 comments on commit 5b62bdf

Please sign in to comment.