Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error Create Group #1

Open
alam-haha opened this issue Jul 16, 2024 · 0 comments
Open

Error Create Group #1

alam-haha opened this issue Jul 16, 2024 · 0 comments

Comments

@alam-haha
Copy link

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant