Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ultra-pipe kbupdate.lsp (Drawing Name vs. Circuit ID and TML range)

2 REPLIES 2
Reply
Message 1 of 3
CravingGod
845 Views, 2 Replies

Ultra-pipe kbupdate.lsp (Drawing Name vs. Circuit ID and TML range)

For those who are familiar with the Ultra-Pipe Program, when I open a drawing from Ultra-Pipethe title layer is updated by the kbupdate.lsp file and the drawing decription (title Layer) is updated with the Circuit ID and TML range.  Referencing the attached pdf, you can see that this would be misleading in some cases.  I need the description in the title block to be updated with the drawing name instead.

 

We have changed the default layer colors before in the kbupdate.lsp so I know it's not impossible.  I am 99% sure that the changes needed for the problem above would be in the same file.

 

It's a shot in the dark, but anybody got solutions?

2 REPLIES 2
Message 2 of 3
just.nobody
in reply to: CravingGod

UltraPipe's interface with AutoCAD just sucks dude.  I've written my own program in .NET that reads the tables and does what I want it to do with to the drawings.  If you can take the time to learn some C#, Get Acquainted with the .Net API, and learn a little bit about working with databases through code you can do a much better job than the stock CAD interface that comes with Upipe.

 

I've spent a lot of time fighting with that kbupdate.lsp file when I first started learning AutoLisp. Back in '06.  .Net is the way to go man.

 

If memory serves me correct though, there's a function in the kbupdate.lsp called uinfo that handles what your talking about.  I would start poking around there.

 

Its reading the data from a .dat file that you can pull up by typing (startapp "notepad" filename) once the drawing opens.

 

You can make this a standard command in your personal lisp file so you dont have to type the full thing every time.

 

(defun c:ufile (/)
(startapp "notepad" filename)
)

 

Good luck and happy coding!

Message 3 of 3
TylerMelancon
in reply to: CravingGod

I know this is a super old post but I wanted to see if anyone knows exactly WHERE the .DAT file is being created from. What file makes that happen?

 

I like how it loops from KBUPDT00.DAT to KBUPDT99.DAT and then repeats but I cannot figure out for the life of me where these Data files are being created from. I would like to know so I can perform something similar with the loop effect.

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost