×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Rib.lsp for 2008?

Rib.lsp for 2008?

Rib.lsp for 2008?

(OP)
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

RE: Rib.lsp for 2008?

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

RE: Rib.lsp for 2008?

(OP)
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)?

RE: Rib.lsp for 2008?

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


Yes, but "vl" not "lv"  :)

RE: Rib.lsp for 2008?

(OP)
Oops.... I cna tpye welll.

Thanks again for the help, you just saved me hours, this week alone.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources