Replies: 7 comments 23 replies
-
Thinking about this, I don’t think these commands should be loaded by default. At least not in their current form. There are situations where the console won’t exit properly, the user’s only choice is to exit the whole application, potentially losing work. |
Beta Was this translation helpful? Give feedback.
-
entsel() and select() should have a document lock ? |
Beta Was this translation helpful? Give feedback.
-
it does work in BricsCAD, but you have to click on the editor. |
Beta Was this translation helpful? Give feedback.
-
BricsCAD it appears to be stalled because the console is the foreground window, messages are not passed until the host app is active, it would be cool to be able to activate the app on runcode . |
Beta Was this translation helpful? Give feedback.
-
I don't remember now if I've already mentioned this or if I've missed it somewhere, but generally PYSTDREPL and PYPTREPL seem to work properly now (after the modifications I've made). I use them often and I don't notice the problems you described (I mainly work with PYPTREPL, but PYSTDREPL should work even better). EDIT: |
Beta Was this translation helpful? Give feedback.
-
Honestly, I don’t know much about Consoles. I don’t use them often, and I never use them in a CAD context, except for the cad command line, and that’s pretty much to run command and see output. Maybe you can explain a bit on how you’re using it in a CAD context. Is it purely a development tool? Or is this something that can be used in a CAD work environment? I can run stuff like this, seems to work well on the platforms a = Ax.AcadApplication()
d = a.activeDocument()
m = d.modelSpace()
m.addLine(Ge.Point3d(0,0,0) , Ge.Point3d(100,100,0)) I feel that Ax calls are pretty safe Other API calls like I think we can remove the config restriction if we can get prevent users from closing the application accidentally Maybe I can add stuff in C++
https://learn.microsoft.com/en-us/windows/console/registering-a-control-handler-function |
Beta Was this translation helpful? Give feedback.
-
It would be ideal if after pressing Ctrl+C / Ctrl+Break the message (in the console) was displayed: "Use quit() to exit". The same could happen after pressing the close button, but then instead of disabling it, you would have to handle its click. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I think it’s really cool, but there are issues
1, does not work in BricsCAD
2, it throws exceptions in AutoCAD when AutoCAD shuts down, I think it's related to item 3.
Exception thrown at 0x00007FFCF7931EA9 (accore.dll) in acad.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.
3, exit seems to not restore stdin, stdout, stderr back to AutoCAD. AutoCAD is pretty much unusable afterwards
Beta Was this translation helpful? Give feedback.
All reactions