Scenic-Shop

Technical theatre musings & articles

  • Calculators
  • Portfolio

Twist Lisp

Posted by mdj on February 8, 2011
Posted in: Drafting. Tagged: AutoCAD, AutoLISP, Code.

Did you know you can precisely rotate the current view of modelspace?  This is a killer way to simplify drafting and dimensioning objects on an angle, especially if you have a way to align the current view to an object.  (And we do, keep reading.)

The longhand command is Dview > Dviewblock > Twist.  Enter the angle you want to twist the current view to, and you’re set.  Why type that out every time?  This lisp will do that and more – just type “TW” to invoke.

Download it here.

Command : TW

  • Enter the twist angle explicitly (e.g. 45 or -134.25) or…
  • Align: set twist angle by picking two points (Point 1 is 0,0 and Point 2 is positive x-axis vector)
  • Relative: set twist angle relative to current twist angle
  • After twisting the view, the list will prompt yes(default)/no to realign the UCS to the current angle.

Right now the script only does the twist in modelspace, I’m planning on expanding it to work in paperspace & viewports as well.  When I get some free time that is.

Until next time – keep it lazy.

Posts navigation

← Pianos & Steel. CAD Block Giveaway!
Wiki going down… →
  • Recent Posts

    • Update, and calculators
    • Frustum Calculator
    • Fluid Power Calculator
    • Scratch! v. 1.2 released
    • Wiki going down…
  • Categories

    • Design (7)
    • Downloads (7)
    • Drafting (6)
    • Fun (1)
    • Office (19)
    • Shop (26)
    • Stage (2)
    • Uncategorized (4)
    • Wiki News (4)
  • Archives

  • Tags

    AutoCAD AutoLISP Books Calculators Code Construction Downloads Effects Electronics Excel Graphics Hardware Layout Links Materials Math Mech Project Management Solutions Sound Tools
Proudly powered by WordPress Theme: Parament by Automattic.