Jump to content

Recommended Posts

Posted

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.

Posted

"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.

  • Like 1
Posted

Thankyou Bigal for the information and may i know that where would be the autocad Lisp package file is available on PC ?

Posted (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 by BIGAL
  • Agree 1
Posted

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.

image.png

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...