AutoCAD Civil 3D
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
rt lisp routine
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
when I load a lisp routine "rt".... it wipes my osnap settings.
??
Re: rt lisp routine
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
It's the (SETVAR "OSMODE" 1) that is doing this (resets to endpoint, presumably as part of the lisp routine). I don't know what the lisp is doing (rotating a view perhaps??) as I'm not a lisp expert - there are other contributors to the forum who are and may be able to suggest something.
As an aside, I have put my preferred OSNAPS in a right click macro so i can always reset if i need to temporarily alter them.
(No connection with Autodesk other than using the products in the real world)

IDSP Premium 2014, Civil 3D 2013 (UKIE) Hotfix 3; Win 7 Pro x64
256Gb SSD, 300Gb 15,000 rpm HDD
16Gb Ram Intel Xeon CPU E5-1607 0 @ 3.00GHz (4 CPUs), ~3.0GHz
NVIDIA Quadro 4000, Dual 27" Monitor, Dell T3600
Re: rt lisp routine
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
so OSMODE 1 is what is killing my osnaps? What should it be set to to prevent this?
Re: rt lisp routine
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I don't have time now. But if no one has chimed in on how to use GETVAR to save the OSMode. I'll get back to you in the morning.
Allen
Re: rt lisp routine
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
(No connection with Autodesk other than using the products in the real world)

IDSP Premium 2014, Civil 3D 2013 (UKIE) Hotfix 3; Win 7 Pro x64
256Gb SSD, 300Gb 15,000 rpm HDD
16Gb Ram Intel Xeon CPU E5-1607 0 @ 3.00GHz (4 CPUs), ~3.0GHz
NVIDIA Quadro 4000, Dual 27" Monitor, Dell T3600
Re: rt lisp routine
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
OK. Since you probably don't write much lisp. The easiest way to fix this would be to add 2 lines to the lisp code. Add the bold line where shown.
C:RT ()
(setvar "cmdecho" 0)
(setq OM (getvar "osmode"))
(setq OB (entsel "\Select object for base angle: "))
Add this line near the end of the lisp.
(setvar "osmode" OM)
The first line sets the current osmode to the variable OM. The second line resets the osmode using the OM variable.
Allen
Re: rt lisp routine
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
neilyj wrote:
Allen is one of the lisp gurus i mentioned
Sorry to dissuade you Neil. But I'm just a dabbler. I stopped doing anything serious in lisp when autodesk and third party covered most of what I wanted to do. The only things I can do in VLisp is to paste together some things by example.
Allen
Re: rt lisp routine
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
If you can anything in lisp - you are a guru...![]()
(No connection with Autodesk other than using the products in the real world)

IDSP Premium 2014, Civil 3D 2013 (UKIE) Hotfix 3; Win 7 Pro x64
256Gb SSD, 300Gb 15,000 rpm HDD
16Gb Ram Intel Xeon CPU E5-1607 0 @ 3.00GHz (4 CPUs), ~3.0GHz
NVIDIA Quadro 4000, Dual 27" Monitor, Dell T3600

