Jump to content

dview > twist > pick points?


Recommended Posts

Posted

Is there a way to dview > twist your view by clicking points as opposed to entering an angle? When you initiate dview > twist objects turn off and any objects you select as the dview block rotate as such you can't select points on the objects...

Posted

Instead of Dview, try UCS . If you use UCS > Z, you can specify the angle (or pick on screen); UCS > OB (or E) you can specify an entity to align to; UCS > V will align to current view.

Posted

Does that mean the answer is NO?

 

I'm looking for a dview > twist that behaves more like the one in Microstation. The answer you gave doesn't really twist the view right, just the ucs?

Posted

Yes, that means no.

Try the Plan command after UCS.

Posted

Try using PLAN afterwards and set view to Current. Or combine the two into macros to rotate the view turnwise and widdershins.

Posted

So you are wanting to twist the view of your drawing by selecting two points?

Posted

Si. I want to dview > twist by selecting two points instead of entering an angle. The UCS deal will do I reckon. Maybe I'll work up the macro for it.

Posted

What I don't like with that is when I do plan > c (for current ucs) it zooms to extents. If I do a zoom previous if reverts back to the previous ucs setting. Is there a way to zoom previous and keep the ucs via a regular macro or will that require programming?

Posted

this might work for you

 

 

 
(defun rtd (a) (/ (* a 180.0)pi))
(defun dtr (a)
       (* pi (/ a 180.0)))
      
(DEFUN C:TW(/ W2 W1 ANG)
       (PRINC"\nSelect two point along the desired horizontal line. ")
       (SETVAR"OSMODE"512)(IF(SETQ W2(GETPOINT"\nFirst point (left): "))
       (PROGN(INITGET 1)(SETQ W1(GETPOINT"\nSecond point: "W2)ANG(ANGLE W2 W1))
       (COMMAND"DVIEW""L" "" "TW"(- 360(RTD ANG))"")(SETVAR"SNAPANG"ANG)))
       (SETVAR"OSMODE"0))

Posted

Exactly what I wanted! Thank you so much my friend! :D Please come by for a drink sometime.

Posted
this might work for you

 

 

 
(defun rtd (a) (/ (* a 180.0)pi))
(defun dtr (a)
       (* pi (/ a 180.0)))
      
(DEFUN C:TW(/ W2 W1 ANG)
       (PRINC"\nSelect two point along the desired horizontal line. ")
       (SETVAR"OSMODE"512)(IF(SETQ W2(GETPOINT"\nFirst point (left): "))
       (PROGN(INITGET 1)(SETQ W1(GETPOINT"\nSecond point: "W2)ANG(ANGLE W2 W1))
       (COMMAND"DVIEW""L" "" "TW"(- 360(RTD ANG))"")(SETVAR"SNAPANG"ANG)))
       (SETVAR"OSMODE"0))

 

What are the different osmode variables? I would like to change it, but not sure what to set it to. How do I figure that out?

Posted

Each OSNAP has a numerical value associated to it. 512 being NEAREST...if you want to change it use one of the other numbers...

 

0 NONe

1 ENDpoint

2 MIDpoint

4 CENter

8 NODe

16 QUAdrant

32 INTersection

64 INSertion

128 PERpendicular

256 TANgent

512 NEArest

1024 QUIck

2048 APParent Intersection

4096 EXTension

8192 PARallel

 

 

If you want more than one to be active than just use the sum of the numbers

Posted

You rock man. Thanks again.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...