Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Sorry to spam the forums, but I thought this was cool
import traceback
from pyrx_imp import Rx, Ge, Gi, Db, Ap, Ed, Cv
from meta_ai_api import MetaAI
def PyRxCmd_SupZuck():
try:
ai = MetaAI()
while True:
res = Ed.Editor.getString(1, "\n>>>: ")
if res[0] != Ed.PromptStatus.eOk:
return
zuckSaid = ai.prompt(message=res[1])
print(zuckSaid['message'])
except Exception as err:
traceback.print_exception(err)
Python for AutoCAD, Python wrappers for ARX https://github.com/CEXT-Dan/PyRx
Solved! Go to Solution.