AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

Reply
New Member
WoodmanT
Posts: 2
Registered: ‎01-23-2012
Message 1 of 6 (584 Views)

Bearings.LSP

584 Views, 5 Replies
01-23-2012 07:13 AM

Hello everyone, new to the forums but I've searched it trying to find Bearings.LSP by Fred Bertagnolli. I recently learned he passed away, and was wondering if anyone could PM me the file, or point me in the right direction, as I can no longer contact him to retrieve it. I don't intend on using this for commercial purposes, if anyone was wondering.

 

Thanks for any help!

*Expert Elite*
AllenJessup
Posts: 5,970
Registered: ‎05-21-2003
Message 2 of 6 (575 Views)

Re: Bearings.LSP

01-23-2012 07:40 AM in reply to: WoodmanT

From what I can find that's an OLD Lisp. Probably 1997 of before. Even if you find a copy it may not run on a current version. It looks like people were having trouble running in on 2004.

 

If you let us know what version of which you are running and what you want to do with the Lisp. It's possible that we can point you to a way of accomplishing you goal without that particular Lisp.

 

Please include what program you're running, the version you're running and the specs of the computer you're running it on.

 

Allen

New Member
WoodmanT
Posts: 2
Registered: ‎01-23-2012
Message 3 of 6 (570 Views)

Re: Bearings.LSP

01-23-2012 07:49 AM in reply to: AllenJessup

Hi Allen,

 

I'm currently attending college, and my AutoCAD teacher gave us Bearings.LSP to just get us used to seeing scripts in action I suppose, he told us that it didn't place to 4 decimal places, but only 2.

I was curious as to why so I tried to change the script but (I'm a python programmer, not used to all this AutoCAD programming and LSP stuff!) it seems that he's also tried to change the script and that's how it became like that. (Or so I'm guessing.) I was just curious as to what the original looked like without being tampered with.

 

Thanks

Trevor

 

Edit: Whoops! I forgot to say that I'm using AutoCAD Civil 3D 2011 Version 2

Specs:

 

Windows 7 32-bit (College laptop, wish I could change to 64. Oh well.)

Intel Core i7-2620M 2.70GHz

8GB RAM (~3GB because 32bit)

nVIDIA QUADRO 1000M 3.2GB

 

 

*Expert Elite*
AllenJessup
Posts: 5,970
Registered: ‎05-21-2003
Message 4 of 6 (562 Views)

Re: Bearings.LSP

01-23-2012 08:06 AM in reply to: WoodmanT

Hello Trevor,

 

Glad to see you have Civil 3D. Of course anything you would need to do with bearings can be accomplished in Civil without any Lisp. Although a minor level of customization makes some things easier.

 

I do doubt that you'll find someone with the original Lisp file at this late date. But you never know.

 

In the mean time you can ask questions about Lisp programming in the Visual LISP, AutoLISP and General Customization group. I used to do a bit of AutoLisp in the way-back. But most of what I want to do is now handled by the program. So now I just stick to writing a few macros.

 

Allen

New Member
terry.inniss
Posts: 1
Registered: ‎01-03-2011
Message 5 of 6 (441 Views)

Re: Bearings.LSP

11-15-2012 07:22 AM in reply to: WoodmanT

I was searching for something else and saw this....Attached is the file requested.

*Expert Elite*
AllenJessup
Posts: 5,970
Registered: ‎05-21-2003
Message 6 of 6 (434 Views)

Re: Bearings.LSP

11-15-2012 07:37 AM in reply to: WoodmanT

Ah. Now we have the file, if your still interested, we can see that on line 101 of the file RTOS is used. That converts a Real number TO a String. The format is (rtos number [mode [precision] ] ). So in (RTOS DIST 2 2) the second 2 is the precision.

 

Thanks to terry.inniss for providing the file.

 

Allen

 

 

Need installation help?

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