Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bearings.LSP

5 REPLIES 5
Reply
Message 1 of 6
WoodmanT
1026 Views, 5 Replies

Bearings.LSP

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!

5 REPLIES 5
Message 2 of 6
AllenJessup
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



Allen Jessup
Engineering Specialist / CAD Manager

Message 3 of 6
WoodmanT
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

 

 

Message 4 of 6
AllenJessup
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



Allen Jessup
Engineering Specialist / CAD Manager

Message 5 of 6
terry.inniss
in reply to: WoodmanT

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

Message 6 of 6
AllenJessup
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

 

 



Allen Jessup
Engineering Specialist / CAD Manager

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

Post to forums  

Rail Community


Autodesk Design & Make Report