Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rib.lsp for 2008?

Status
Not open for further replies.

ohiocad

Structural
Apr 6, 2001
193
A while ago, I downloaded the re-insert block lisp, rib.lsp, from the Cadalyst website (tip 2154), and have used it with no problems for a while, and found it to be a BIG time saver. (Big kudos to Will DeLoach who is listed as the author)

We recently upgraded from Acad 2006 to Acad 2008, and I get an error when trying to run it. I'm not really very familiar with lisp, and was hoping someone can name an easy fix for it.

The error message that I get is:

; error: no function definition: VLAX-ENAME->VLA-OBJECT

I can post the code if need be, but I figure a lot of others will have this already. As another option, is this built into 2008? If so, I haven't been able to find it.

Any help appreciated
 
Replies continue below

Recommended for you

I would be surprised any vlisp functions were removed in 2008 that were there since at least 2005. You might need to load the visual lisp extensions with "vl-load-com. Try typing the following on the command line,
Code:
(vl-load-com)
then run the lisp. If this works, you could add the statement to the first line of the lisp routine -after (defun ....
 
That did it, CarlB. Thanks for the reply.

Any particular reason that 06 would load that, and 08 by default wouldn't? We haven't customized that for anything that I am aware of, and 08 installed with typical settings, then migrated my 06 settings upon startup. I gues I figured that would have pulled anything like that.

Following is the first few lines of the lisp, but I am not sure of the syntax to insert that command you gave me into the lisp file.
-----------------
(defun c:rib (/
ss ; selection set of block to redefine
ent ; entity name of block
obj ; object of the entity
name ; name of block
path ; short path of block location
file ; full path of block location
)
(while (not ss)
-----------------

Is it as simple as placing
(lv-load-com)
just above (while (not ss)?
 
"Is it as simple as placing
(lv-load-com)
just above (while (not ss)?"


Yes, but "vl" not "lv" :)
 
Oops.... I cna tpye welll.

Thanks again for the help, you just saved me hours, this week alone.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor