Solved

Unable to run a LISP routine from the command line.

Posted on 2011-02-25
2
751 Views
Last Modified: 2012-05-11
My problem is with calling a custom command from the command line. The command is successfully called from a menu item contained in a partial CUI. The command, as shown below, is RELIMIT. Since the command is defined as RELIMIT in the Comand Name field I expected this would be the value submitted from the command line. Again, the operation works when selected from the menu in the partial CUI, but when entered from the command line I get the following message: Unknown command "RELIMIT". Is there somewhere else I need to define this command (acad2009.lsp, perhaps)?

 Custom command in partial CUI
0
Comment
Question by:tsynnott
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 12

Expert Comment

by:silverkorn
ID: 34980345
You are getting this error because you are creating a Menu Item and not necessarily a command line shortcut. The field "Command Name" is for "Displays the name of the Macro"

the easiest and quickest solution to your problem is to edit your LISP function to accept the command RELIMIT instead of RLIMIT

to do that open the LISP file in notepad and change the line that should look like:
(defun c:rlimit (     TO:
(defun c:relimit (

then you need to change your macro command to:
^C^C(if (= relimit nil) (load "DLCRLMIT")) (relimit)
0
 
LVL 12

Accepted Solution

by:
silverkorn earned 500 total points
ID: 34980434
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Our company has proprietary drawing files that we do not give to our customers for final documentation. Our customers now require that we give them these drawings. They understand that they are proprietary and do not require them to be in AutoCAD bu…
In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question