Author Topic: Making a tool operate trans-parently  (Read 982 times)

0 Members and 1 Guest are viewing this topic.

ScottMC

  • Newt
  • Posts: 191
Making a tool operate trans-parently
« on: April 02, 2022, 08:58:23 PM »
This is what I currently use but would be so helpful to be able to pick/turn my Z axis transparently. ANY SUGGESTIONS APPRECIATED!

MickD, "New UCS"  was where it came from. This is was I currently use to turn my Z.
https://www.theswamp.org/index.php?topic=56040.msg600030#msg600030

Code: [Select]
(defun c:ur nil           ;; Z - 90°, # or Pick
        (princ (strcat " New/Pick \"Z\" UCS, Angle or <90"(chr 176)">"))
    (vl-cmdf "ucs" "z" "\\")
(princ)
)

Now, attempting other ways, seems it's a 'no-go'

Command: 'ucs
** That command may not be invoked transparently **
« Last Edit: April 02, 2022, 10:08:03 PM by ScottMC »

kirby

  • Newt
  • Posts: 127
Re: Making a tool operate trans-parently
« Reply #1 on: April 07, 2022, 10:27:51 AM »
Not quite what you wanted, but similar outcome....

ScottMC

  • Newt
  • Posts: 191
Re: Making a tool operate trans-parently
« Reply #2 on: April 07, 2022, 11:22:13 AM »
Results..

Command: L
LINE Specify first point:
Specify next point or [Undo]: 'UZR

Rotate UCS Z axis by 1-pick 2-enter angle (1/2)  <1>:

Pick base point...
Next point...
Reset UCS to World 0-No 1-Yes (0/1)  <0>:
_ucs
Point or option keyword required.
; error: Function cancelled

Wouldn't work/allow transparent to rotate ucs.
** Running A2K **

kirby

  • Newt
  • Posts: 127
Re: Making a tool operate trans-parently
« Reply #3 on: April 07, 2022, 11:58:33 AM »
Sorry about that, I didn't know you wanted to change the UCS in the middle of a command.  That doesn't work in Acad 2018 either.

If you are using this to draw line segments or polylines, maybe a program that captures the geometry, allows UCS changes between point selection, then builds the lines or polylines after completion?