LISP FOR BLOCK DATA BASE

LISP FOR BLOCK DATA BASE

Kyle.para
Advocate Advocate
5,464 Views
22 Replies
Message 1 of 23

LISP FOR BLOCK DATA BASE

Kyle.para
Advocate
Advocate

 

I have a lisp from @hencoop that I am using to write 100's of blocks that I currently have sitting in a bunch of different drawings. I can get the lisp to work no problem to write the blocks to a central location.


The problem is i need a lisp to update and replace blocks from the database that I am writing to.  That way I can just update the blocks in the database's library and then either update or replace the blocks in there respective drawings.  I tried to get 2 programs to work from @hencoop I get errors on both of them.  Does anyone have anything similar or who can help me figure out how to get the programs working properly?

UBLK

http://paracadd.com/lisp/ublk.lsp

 

RBLK

http://paracadd.com/lisp/lisp_lst.htm#rblk

http://paracadd.com/lisp/RBRKL.LSP

 

0 Likes
Accepted solutions (3)
5,465 Views
22 Replies
Replies (22)
Message 21 of 23

hencoop
Advisor
Advisor

I don't have a Zip of it all.  If you are missing any routine that is used an error will be generated and you will see a message on the command line at least that says the function is not defined.  That will point to the routine you need if there are any.  The subroutine names and their filenames are the same.

AutoCAD User since 1989. Civil Engineering Professional since 1983
Product Version: 13.6.1963.0 Civil 3D 2024.4.1 Update Built on: U.202.0.0 AutoCAD 2024.1.6
                        27.0.37.14 Autodesk AutoCAD Map 3D 2024.0.1
                        8.6.52.0 AutoCAD Architecture 2024
0 Likes
Message 22 of 23

Kyle.para
Advocate
Advocate

Sorry one thing I was tracing back the other thread on RBLK and realized I wasn't following this correctly.

 

You wrote "

 

I am in a crunch but I'm plotting for a few minutes so I can respond a little.

 

Open VLIDE, enable "Break on error" under "Debug"

Run the program and hit escape when it asks for the block name.

In the debug toolbar select "Last break source" which will take you to the  code asking for the block name.

(USTR ...) needs to have its last variable changed from NIL to T to allow it accept spaces.

 

When I hit last break source I get:ERROR-BREAK function cancelled.
0 Likes
Message 23 of 23

hencoop
Advisor
Advisor

If an error function is defined you will NOT be taken to the break source as described.

Check this by typing *error* at the VLIDE console.  If it returns NIL then it is not defined; otherwise, type (SETQ *error* NIL) at the VLIDE console or the command prompt and then you should be able to navigate to the last break source when you encounter an error.  (Be sure that the lisp routine is loaded in the VLIDE or there may be nowhere to navigate to.)

AutoCAD User since 1989. Civil Engineering Professional since 1983
Product Version: 13.6.1963.0 Civil 3D 2024.4.1 Update Built on: U.202.0.0 AutoCAD 2024.1.6
                        27.0.37.14 Autodesk AutoCAD Map 3D 2024.0.1
                        8.6.52.0 AutoCAD Architecture 2024
0 Likes