Moving with Point Relative

Started by mr.chocice, May 18, 2012, 11:49:06 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

mr.chocice

When I try to move a selection using the point relative command, it doesn't give me the option to make the move relative to the "last point".  What am I doing wrong?
Sequence I am using is, select object, select handle, select move, select point relative.  Point relative box comes up, but the last point button is not available. 
If this doesn't work, how do I move something a fractional dimension with any precision?  Seems to me I may have something set incorrectly.  Any suggestions?
Using DC-21 on a windows xp machine.

Thanks.

Rob S


The "last point" option works for such things as drawing multi-segment lines where there is actually a previous point set and you want to set your next one relative to that.

Selecting an object and its handle does not "set" any points, so there is no "last point" in existence to to work with.

In this case, the option in the point relative dialog called "reference point" effectively allows you to type in your offset distances first, and then when you click OK, you snap to the point or handle you want to move or copy relative to.

This gives you a precise result.
User since forever

mr.chocice

Thanks, Rob.  Sounds like you have an answer, but I can't seem to get the sequence right.  Would you go through it step by step for me please.

David

Bob P

#3
1. Select your object
2. Optional: Set a handle (h) *** (per last post)
3. >Move command (m)
4. Check the "From reference point" box
5. Set the reference point, either by gravity point (not gravity move) to a current point or by using pxyz, pointrel or pointpolar.  If I don't have points to snap to, sometimes I'll create a temporary line whose endpoints define the vector distance.
6. Set a final point using any of the above point setting methods.

Your object will be moved the vector distance from the reference point to the final point.

MarkX

Quote from: Bob P on May 18, 2012, 04:47:01 PM
1. Select your object
2. Set a handle (h)
3. >Move command (m)
4. Check the "From reference point" box
5. Set the reference point, either by gravity point (not gravity move) to a current point or by using pxyz, pointrel or pointpolar.  If I don't have points to snap to, sometimes I'll create a temporary line whose endpoints define the vector distance.
6. Set a final point using any of the above point setting methods.

Your object will be moved the vector distance from the reference point to the final point.


You don't really need step 2. When using the "From reference point" on the Move command box (as opposed to the "Reference Point" insideof the Point relative command), you don't have to pre-set a specific handle. Effectively, you are setting the move "handle" when you select the reference point.

On step 5, you have to use some method other than a mouse click to set the relative point. Or at least that's how it works for me. Why?

On step 6, if you use relative motion in the move dialog, be sure to select "last point".

What I don't get is why you can't make select the relative point by mouse in Step 5. Seems inconsistent and made it much harder to figure out how things worked.

Also, the term "Reference Point" is used in both the Move dialog and in the Relative motion dialog, but what they do is different.  Effectively, the "Reference Point" in the Move dialog lets you set a move handle without having specified a special handle. The "Reference Point" in the Relative dialog says "Let the XYZ action you have specified act relative to a point that you will specify after this dialog". 

Mark

Rob S

The way I meant is different

1) select object, and "ctrl+h" to set a handle

2) click on the handle to invoke move, or Ctrl-click for copy

3) "  ' (single quote)" shortcut for point-relative, select option for reference point in the point-relative dialog, type in the offsets you want from the reference point for the destination

4) Click OK, and snap (right-click) the reference point from which the destination of the handle is be offset, which could be the handle itself if it is just a move from original position.

This allows you to position your move or copy relative to any point in your drawing.
User since forever

bdeck

There are two ways to do what you want, and neither of them uses handles.

Method 1.

Select the objects to be moved.
Initiate the Move command (press "M")
Check the "From Reference Point" box.
Set a reference point any where in the drawing. (click some random location with the mouse)    
Initiate the Point Relative command (press " ' ") Check the "Last Point" box and enter distances.
Press the Enter key to end the point relative command.


To avoid handles altogether, first install the M,N, and S macros from the following link:
http://forum.designcad.com/index.php?topic=322.0
Map the keyboard using the Options/Options/Keyboard menu so that M, N, and S refer to the M, N, and S macros.

Method 2.

Select the objects to be moved.
Press the M key to run the M macro.
Set a reference point any where in the drawing    
Initiate the Point Relative command (press " ' ") Check the "Last Point" box and enter distances.
Press the Enter key to end the point relative command.
Press the Enter key to end the macro.


The macro in this case is only slightly faster than the built-in function. So why use it?
The macro is capable of true 4-point moves, and it doesn't waste your time with handles.

BD

prl

#7
Quote from: mr.chocice on May 18, 2012, 11:49:06 AM
If this doesn't work, how do I move something a fractional dimension with any precision?  Seems to me I may have something set incorrectly.  Any suggestions?

All the above is fine just way too much thinking and too may steps for my taste.  I'm a keyboard fan.

Example: To move something 2'-2 1/4" in the y direction and 3'-6 1/2" in the z direction all in one move.

At the command line (space bar) type>     sm 0 2'2.25" 3'6.5"    then press enter key.  DONE!

hit space bar to do the move again, again, again, again.


Below is the code I use to do this.


'Program: sm.d3m (move selection by dx dy dz offsets)

if sys(80)=0 then
 Message "Nothing selected to move. . . routine will end"
 END
end if

dx$ = "0"
dy$ = "0"
dz$ = "0"

fmt$ = "%s %s %s"

b$ = sys$(0)
if b$ = "" then
input "Enter dx dy dz offset.    Examples : 0 0 4 or 0 7.25 or 1.25'  (Note trailing zeros can be omitted)", b$
endif

if b$="" then END

Parse b$, fmt$, dx$, dy$, dz$

precision 15
dx = val(dx$)
dy = val(dy$)
dz = val(dz$)

for j = 1 to 100
sys(36) = 1 'stop annoying flicker
>Move
{
<type 1
<reference 1
<Pointxyz 0.0000000000,0.0000000000,0.0000000000
<Pointrel [dx,dy,dz]
}
regen
sys(36) = 0
PRINT "Press space bar for additional moves, enter to end"
  anykey A
  if A=13 then
    >Move
    {
    <type 1
    <reference 0
    <null
    }
    sys(80)=0
    end
  endif
next j

end

bdeck

#8
Prl,

As often as I need to do this task, it never occurred to be to automate it.

Simple is better, and simpler is betterer.  :)

Thanks for the post, and the reminder.

BD

mr.chocice

Thanks, Everyone;

It's been a busy time, and I've not been able to try out your solutions yet.  I'll let you know how things work out.

David.

mr.chocice

Well, I finally got around to trying it out.  It's amazing how easy it is...when you know how.   Thanks, again, everyone.

David

charly-bochum


Hallo David,

For the same reason I had written two by me and others frequently used macros for moving or copping marked objects relative to their position with fixed or variable distance or direction.
Although written in German, they could easily be used or modified by anyone.
Perhaps there is anybody who has an interest to modify it to English nomenclature - better that I could do.

charly-bochum

----------------------------------------------------------------------------------------------------

'Markiertes Verschieben.d3m für DesignCad

'Verschieben eines Objektes um feste Abstände und Winkel

IF SYS(34) = 0 THEN
Message "Es ist kein Objekt markiert"
STOP 'wenn nichts markiert ist
ENDIF

input "Distanz der Verschiebung in m oder [0=Return] für variable Verschiebung", D

IF D=0 THEN GOTO VARIABEL

input "Richtung der Verschiebung in ° oder [r,l,o,u] für 0°,180°,90°,270°", i$
'message i$

WI=VAL(i$)
If i$="l" or i$="L" Then WI=180
If i$="r" or i$="R" Then WI=0
If i$="o" or i$="O" Then WI=90
If i$="u" or i$="U" Then WI=270

HPx=SYS(190) 'x-Koordinate Handle-Punkt 1
HPy=SYS(191) 'y-Koordinate Handle-Punkt 1
>SetHandle
{
  <PointXYZ [HPx,HPy]
  }

'Punkt der Verschiebung
Px=HPx+D*cos(WI)
Py=HPY+D*sin(WI)
>SelectMove   
{
<PointXYZ [Px,Py]
}

>Redraw
{
}

END

VARIABEL:

Sys(41) = 1 'Rubberband ein

SetPoint "Startpunkte" 2 '"..." wird nicht angezeigt
PointVal Ax Ay 1

>SetHandle
{
  <PointXYZ [Ax,Ay]
  }

PointVal Bx By 2

>SelectMove
{
<PointXYZ [Bx,By]
}

STOP

--------------------------------------------------------------------------------------------

'Markiertes Kopieren.d3m für DesignCad

'Kopieren eines Objektes unter festem Abstand und Winkel

IF SYS(34) = 0 THEN
Message "Es ist kein Objekt markiert"
STOP 'wenn nichts markiert ist
ENDIF

input "Distanz der Verschiebung in m oder [0=Return] für variable Verschiebung", D

IF D=0 THEN GOTO VARIABEL

input "Richtung der Verschiebung in ° oder [r,l,o,u] für 0°,180°,90°,270°", i$
'message i$

WI=VAL(i$)
If i$="l" or i$="L" Then WI=180
If i$="r" or i$="R" Then WI=0
If i$="o" or i$="O" Then WI=90
If i$="u" or i$="U" Then WI=270

HPx=SYS(190) 'x-Koordinate Handle-Punkt 1
HPy=SYS(191) 'y-Koordinate Handle-Punkt 1
>SetHandle
{
  <PointXYZ [HPx,HPy]
  }

'Punkt der Verschiebung
Px=HPx+D*cos(WI)
Py=HPY+D*sin(WI)
>SelectDuplicate   
{
<PointXYZ [Px,Py]
}

>Redraw
{
}

end

VARIABEL:
Sys(41) = 1 'Rubberband ein

SetPoint "Startpunkte" 2 '"..." wird nicht angezeigt
PointVal Ax Ay 1

>SetHandle
{
  <PointXYZ [Ax,Ay]
  }

PointVal Bx By 2

>SelectDuplicate   
{
<PointXYZ [Bx,By]
}

>Redraw
{
}

STOP









prl

I like these.  Here is the first one with the prompts translated.  The other one is similar.  Danke.



'Selection Move (CB)

'Move an object a fixed distance and angle

IF SYS(34) = 0 THEN
Message "No selection.  Program will stop."
STOP 'wenn nichts markiert ist
ENDIF

input "Offset distance or enter [0=Return] for from/to points move", D

IF D=0 THEN GOTO VARIABEL

input "Move direction in degrees ° or [r,l,u,d] for right, left, up, down;  0°,180°,90°,270°", i$
'message i$

WI=VAL(i$)
If i$="l" or i$="L" Then WI=180
If i$="r" or i$="R" Then WI=0
If i$="o" or i$="O" Then WI=90
If i$="u" or i$="U" Then WI=270

HPx=SYS(190) 'x-Koordinate Handle-Punkt 1
HPy=SYS(191) 'y-Koordinate Handle-Punkt 1
>SetHandle
{
 <PointXYZ [HPx,HPy]
 }

'Punkt der Verschiebung
Px=HPx+D*cos(WI)
Py=HPY+D*sin(WI)
>SelectMove  
{
<PointXYZ [Px,Py]
}

>Redraw
{
}

END


VARIABEL:

Sys(41) = 1 'Rubberband ein

SetPoint "Set two points; from and to" 2
PointVal Ax Ay 1

>SetHandle
{
 <PointXYZ [Ax,Ay]
 }

PointVal Bx By 2

>SelectMove
{
<PointXYZ [Bx,By]
}

STOP