You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create a group, consists of a single line.
I have Copy and Paste from the example, but the program is error.
here is my program
# Create the AutoCAD object
acad = AutoCAD()
# Define start and end points using APoint
start_point = APoint(0, 0, 0)
end_point = APoint(100, 100, 0)
# Draw the line
line = acad.add_line(start_point, end_point)
group = acad.create_group("MyGroup", line)
and this is the error
AutoCADError: Error creating group 'MyGroup': This object does not support enumeration
Traceback (most recent call last):
File "D:\Programming Project\Python\Python Autocad\Coba-coba\Manufino Library\ManufinoLib.py", line 530, in create_group
for obj in objects:
File "D:\Programming Project\Python\Python Autocad\Coba-coba\venv\lib\site-packages\win32com\client\dynamic.py", line 329, in getitem
raise TypeError("This object does not support enumeration")
TypeError: This object does not support enumeration
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Programming Project\Python\Python Autocad\Coba-coba\Manufino Library\try_manufinolib.py", line 14, in
group = acad.create_group("MyGroup", line)
File "D:\Programming Project\Python\Python Autocad\Coba-coba\Manufino Library\ManufinoLib.py", line 534, in create_group
raise AutoCADError(f"Error creating group '{group_name}': {e}")
ManufinoLib.AutoCADError: Error creating group 'MyGroup': This object does not support enumeration
The text was updated successfully, but these errors were encountered:
I am trying to create a group, consists of a single line.
I have Copy and Paste from the example, but the program is error.
here is my program
and this is the error
The text was updated successfully, but these errors were encountered: