FIX: Connect to existing student version - #7918
Conversation
2a85972
Pull request was converted to draft
|
Verified on Windows 11, AEDT 2026 R1, this PR branch (1.3.dev0): ✅ Attach to existing session works — started
Remote-machine attach (the original #7884 remote case) was not tested — no routable gRPC path between our two machines. |
|
Hi @tzhou-yyds , thanks for the feedback, I applied a small fix that could impact the issue you mentioned, I tested 2026R1: app_1 = Hfss(version="2026.1", port=50700, new_desktop=False, non_graphical=True, machine="127.0.0.1") With an open AEDT in non graphical mode with the env. variable PYAEDT_USE_PRE_GRPC_ARGS, and it not open a new AEDT instance. |
|
Re-tested with the latest
Thanks for the quick turnaround! |
SMoraisAnsys
left a comment
There was a problem hiding this comment.
Overall LGTM but there is something bothering me with "Step 6". Otherwise, I left minor comments.
Co-authored-by: Sébastien Morais <146729917+SMoraisAnsys@users.noreply.github.com>
|
Hi @SMoraisAnsys , I applied your suggestions, please could you review it again? I reverted the self.__port set instead of using the property setter, but I also modified it in other places of desktop.py to make it consistent, please take a look. I do not understand why this is better than using the property setter, in my opinion in was more clean, but I also understand that if the property setter changes, it could be dangerous, and actually it opens the door to the question if the self.port property should have a setter, or not, because it is a very sensitive variable. |
performed suggestions, and Unified self.__port set
Description
Student version was connecting to existing session.
Platform: windows, linux
Issue linked
Close #7891
Close #7884
Checklist