We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/zh19980811/Easy-MCP-AutoCad'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test_highlight_simple.py•676 B
import win32com.client
import pythoncom
def test_highlight_simple(handle, color=3):
try:
acad = win32com.client.Dispatch("AutoCAD.Application")
doc = acad.ActiveDocument
print(f"Attempting to get entity with handle {handle}...")
entity = doc.HandleToObject(handle)
old_color = entity.Color
entity.Color = color
print(f"Success! Highlighted entity {handle}. Color changed from {old_color} to {color}")
except Exception as e:
print(f"Error: {e}")
if __name__ == "__main__":
# 80 is the handle of the new circle
test_highlight_simple("80", 1) # Color 1 is Red