Describe the bug
When I try to extend a line using the add_new_extrapol_length method and set the support surface using the support attribute, the compiler suggests that there is a type error.
To Reproduce
A active part in Generative Shape Design
A surface named Surface1
A line named Xa Spline
A point in Xa Spline named Point.1
Traceback (most recent call last):
File "e:\bugReport.py", line 18, in <module>
XLeftExtend.support = Surface1Ref
File "D:\------\envs\pycatiaEnv\lib\site-packages\pycatia\hybrid_shape_interfaces\hybrid_shape_extrapol.py", line 375, in support
self.hybrid_shape_extrapol.Support = value
File "D:\------\envs\pycatiaEnv\lib\site-packages\win32com\client\dynamic.py", line 685, in __setattr__
self._oleobj_.Invoke(entry.dispid, 0, invoke_type, 0, value)
TypeError: must be real number, not Reference
Expected behavior
LineExtend.support should use a refrence to set a set a support surface to add_new_extrapol_length.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: Windows 10
CATIA V5 R32
pycatia version 0.6.8
Additional context
I think this issue is very similar to #141. I tried to change pycatia\hybrid_shape_interfaces\hybrid_shape_extrapol.py line 375 from
Describe the bug When I try to extend a line using the add_new_extrapol_length method and set the support surface using the support attribute, the compiler suggests that there is a type error.
To Reproduce A active part in Generative Shape Design A surface named
Surface1
A line namedXa Spline
A point in Xa Spline namedPoint.1
and traceback is :
Expected behavior LineExtend.support should use a refrence to set a set a support surface to add_new_extrapol_length.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context I think this issue is very similar to #141. I tried to change
pycatia\hybrid_shape_interfaces\hybrid_shape_extrapol.py
line 375 fromself.hybrid_shape_extrapol.Support = value
to
self.hybrid_shape_extrapol.Support = value.com_object
This successfully avoids the TypeError and work well.