Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Member
CravingGod
Posts: 4
Registered: ‎10-18-2010
Message 1 of 3 (423 Views)

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

423 Views, 2 Replies
09-12-2012 09:04 AM

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?

Active Member
just.nobody
Posts: 8
Registered: ‎01-26-2008
Message 2 of 3 (350 Views)

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

01-19-2013 02:46 PM 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!

Contributor
TylerMelancon
Posts: 16
Registered: ‎07-05-2013
Message 3 of 3 (119 Views)

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

04-23-2014 06:25 AM 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.

 

 

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.