Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/30/2025 in all areas

  1. @NanGlase To further assess the possibilities of the "license server" option in real time from AutoCAD, the following needs to be considered: At the code level, you must: Check that both the client PC and your own have the same communication port available, and if not, handle this somehow. Also ensure that the firewall will not block the ports on either the client or the server side. At the infrastructure level, you must: Have a static IP or a domain name on the server side so that your code, when executed by the client, knows where to send the request. In my opinion, although this is an interesting challenge, you should assess whether the effort and investment required are justified by the benefits you may gain. I believe that, considering all of this, the most reasonable options might be those proposed by @Steven P and @BIGAL.
    2 points
  2. You can via lisp send yourself an email with the code in it. I would scramble the code. Give client a fas file to run. You can send to a remote server a file, likewise can read a file from a remote server, a bit harder and if your pc is off the code will fail. Have tested this. Re Install from a usb, I had a zip file and a install.lsp, The install lisp unzips all the files to a known directory, yes can unzip a file using lisp, it menuloads the menu and adds support paths. Happy to provide an example. I use this method for multiple users at one company they just email the two files to each user and they drag and drop the lisp. (defun pingserver ( / xml str) (setq server "http://myserver.com.au/TestInfo.txt") ; I would change this to get passed a unique filename (setq xml (vlax-create-object "MSXML2.XMLHTTP.3.0")) (vlax-invoke-method xml 'open "POST" server :vlax-false (vlax-invoke-method xml 'send) (setq str (vlax-get-property xml 'responsetext)) ; got your file !!!!! ;do your bit here )
    1 point
  3. AutoCAD licensing AutoCAD, in real time. Who could resist reading a bit more? Well, yes. Confirmed: this is possible. How? As I said before, through PowerShell (managed from Lisp, of course), but in a more elegant way than using 'sendCommand': with 'setVariable'. The idea is to have our Lisp write a script (.ps1) that creates a lightweight server to listen on a port. AutoCAD PC1 sends a request message to AutoCAD PC2, which processes it and sends a reply back to AutoCAD PC1. Receiving this message triggers the loading of a DCL with a textbox (showing the received code) and an Accept button to register that code. And how do you trigger the DCL upon receiving the message? Think of a detonator: 'setVariable'... and then think of the explosive: 'vlr-sysvar-reactor'. Sounds good? "If you can imagine it, you can build it. And improve it."
    1 point
×
×
  • Create New...