Solved

Unable to run a LISP routine from the command line.

Posted on 2011-02-25
2
724 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
  • 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Certificate Services 5 246
renovation contractor drawing software 2 77
autocad files 1 59
autocad 2015 hardware suggestions 47 83
Following a number of instances of re-installing Solidworks I thought that it may be a  good idea to detail the procedure that I follow each time to ensure a good stable install. Backup: Backup your system.  It goes without saying that this i…
The following article will describe how to add/edit a dimension style through AutoCAD VBA. AutoCAD VBA has its quirks and when it comes to dimensions and controlling how they look through VBA.  This is where AutoCAD can be vividly confusing. The…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now