Akash_SAK Posted February 10 Posted February 10 what if ? In our setup, we have access only to the .pgp (Program Parameters) file and do not have permission to load or execute AutoLISP (.lsp) files. As you may be aware, .pgp files are limited to defining command aliases only and cannot execute command logic, options or automation. For reference, below is the AutoLISP command we are currently using in standard AutoCAD: (Defun C:QD () (Command "LENGTHEN" "DELTA" pause) ) This LISP command: Launches the LENGTHEN command Automatically selects the DELTA option Pauses for user input However, when restricted to .pgp files, the closest possible format is only an alias, such as: D, *DIMLINEAR (example only) Unfortunately, .pgp files cannot replicate AutoLISP behavior, meaning they cannot pass command options (e.g., DELTA) and cannot include pauses or logic and can only map a shortcut to an existing command. As a result, the above LISP logic cannot be converted or replicated using .pgp alone. The only feasible workaround in a .pgp-only environment is to map a shortcut directly to the base command (e.g., LENGTHEN), after which options must be entered manually by the user. I wanted to highlight this limitation so expectations can be aligned accordingly. Please let me know if macro-based solutions (CUI macros) or additional permissions can be considered within the OEM environment. Thanks in advance for the understanding and support. Quote
BIGAL Posted February 10 Posted February 10 "OEM environment." If you are using a OEM version then a possible way to run other lisp programs is to go back to the developer who could add your lisps to their package then they should work. 1 Quote
Akash_SAK Posted Thursday at 07:06 AM Author Posted Thursday at 07:06 AM Thankyou Bigal for the information and may i know that where would be the autocad Lisp package file is available on PC ? Quote
BIGAL Posted Thursday at 11:12 PM Posted Thursday at 11:12 PM (edited) You need to understand what is a OEM version it is used by software providers as a means to get an Autocad but with their software as the essential item. Refering to OEM document "Deliver products with scaled feature sets at scaled price points and provide an AutoCAD-based platform that cannot be customized or extended by end users." So any outside program lisp or .NET etc can not be ran by you. But you can add programs using the OEM key that is held by the software developer. You would have to go back to them to add. What program did you buy ? Edited Thursday at 11:13 PM by BIGAL 1 Quote
Akash_SAK Posted 19 hours ago Author Posted 19 hours ago Thanks Bigal for the info , I have CADS-RC lite program i have seen that the product has the access of using lisps and parameter files but i couldn't have any idea to add those packages in this product. Quote
SLW210 Posted 15 hours ago Posted 15 hours ago I do not see anything specific stating the Lite version can do LISP. But, just in case, here is the manual for regular CADS RC. https://rebarcad.com/wp-content/uploads/2025/09/Lisp_Programming_Interface_Guide.pdf I also moved your thread to a new topic Use LISP with CADS RC Lite in AutoLISP, Visual LISP & DCL Forum Quote
rlx Posted 5 hours ago Posted 5 hours ago (edited) if I read the manual provided by the link from SLW210 you should be able to create and (App)load your own lisp file with your own custom shortcuts (defun c:xx...). Lisp programming interface guide 2.1 Procedure to draw the reinforcement: 1. First draw the outlines with the required dimension. 2. Create a lisp file called demo.lsp in C:\ 3. Copy and paste the code mentioned below to the demo.lsp 4. Save it and close. 5. In AutoCAD use the Appload command to load the demo.lsp 6. Type Demo in the command prompt. It will ask you to pick the Lower Left corner of the base and the upper right corner of the base. Pick points p1 & p2 as mentioned in the drawing. 7. Specify the Cover and Centre to centre spacing. 8. You can see the reinforcement drawn on the screen. 9. Repeat step 6 & 7 for different footing outlines. But I'm just guessing here... never heard of this program so can't really tell. In the old days I smuggled my lisp routines in by creating a *.mnl file so my routines were loaded along with the menu (despite many efforts of a certain human who's name can't be spoken trying to stop users (specifically me) from being able to do their own stuff). Now many years later he admits dragons are very difficult if not impossible to stop (haha). Another way is starting AutoCad with your own custom profile by creating your own desktop shortcut (Google is your friend) Edited 5 hours ago by rlx Quote
BIGAL Posted 5 hours ago Posted 5 hours ago (edited) Did you contact CADS RC about adding your own lisp programs I would do that as the first step in getting answers. There is some comments in the programming guide about add other lisps. Have you just tried running a lisp by pasting to the command line. (alert (strcat "this dwg name is " (getvar 'dwgname) " and is located at " (getvar 'dwgprefix))) Are you sure its a OEM version of Autocad ? If you type "About" what does it show. Talk to your IT the time savings can be hours a week using lisps, only use LSP files not FAS or VLX. A lsp file is a text file so you can see the code and look for anything that might be dangerous, like vl-file-delete, or only trust people like those here. You can get IT to check any code then add to your company directory location. This has like 130 lisps behind it. Edited 5 hours ago by BIGAL Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.