DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Resizing Objects

Started by jprince58, April 17, 2014, 03:06:33 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

jprince58

I recently transitioned from v14 to v23 and I'm having some trouble with resizing objects--both 2d and 3d.  For example, when grabbing a node and dragging to an intended new location, the object doesn't automatically redraw as it is being resized.  It does, however, redraw at the new size, once the node is released.  Also, in my older version, I could click the desired node and then manually input a precise new position via the coordinate bar.  This now seems to have no affect.

I'm sure I just need to change a setting in the options menu, but can't seem to figure out which one it might be.  I've searched the help files and forum, but can't seem to find anything that might suggest a fix.

Any help would be greatly appreciated.

Jeff Prince
Jenks, OK

samdavo

#1
Quote from: jprince58 on April 17, 2014, 03:06:33 PM
the object doesn't automatically redraw as it is being resized.  It does, however, redraw at the new size, once the node is released.
Jeff - I take it you are referring to rubberband redrawing?

(when you said Jenks OK,  I wondered if you meant Jenks UK (no such place lol),  but sure enough there's a Jenks in O...Klahoma , where the wind comes etcetc) :) )  Good initials for a state !

PS I'll be interested to see the answers from the gurus on your other points - setting new point for that handle with coords  in the course of resizing - interesting.    (PS I'm confident that a macro would work).

I usually resort to drawing a temporary vector - call it a  construction line - then moving (M) rather than dragging - gravity snapping from existing nodes/handles to the end-of-vector, then deleting vector.  Pretty clumsy I know, but at least I can see what's happening.   Likewise I never use "point relative" from a Reference Point, always from Last Point - and construction lines as necessary.   

I'm confident you are miles ahead of me lol, cheers

jprince58

Thanks, samdavo.

Yes, there really is a Jenks, Oklahoma.  An obscure, but obviously misinformed, comedian once said Oklahoma was the mediocre state, since we are just "OK."

I'm not sure what you're referring to as "rubberband redrawing."  In my older version of DesignCAD, when I clicked a handle to resize an object (i.e. stretch, scale, or whatever the proper term might be), the object would stretch/shrink/resize in real-time as the handle was dragged.  Further experimentation shows this still occurs in v23, but only when in wire frame mode.  When I switch to hidden line mode, the object will still resize, but the object doesn't change until the handle is released or the function is terminated by clicking on the new coordinate location.  Clicking on the desired handle, then using the coordinate box to manually enter the new coordinate position doesn't work in either wire frame or hidden line mode.

Just to ensure I haven't completely lost my mind, I went back to v14 and gave it a try.  It works exactly as I expected it to.

Jeff Prince
Jenks, OK

prl

OK Jeff,

You're right.  Version 23 does act odd with resizing handles.  It fails to ghost stretch in shaded and hidden modes.  Only wireframe seems to work as before.

I'll report this as a bug though I'm guessing version 23 isn't going to receive any more patches. 

samdavo

#4
Pryor OK yes? Upperspace etc?
PS you are right - rubberband refers to elasticised box around a selection.
ghosting is more accurate as prl says.

Rob S

QuoteClicking on the desired handle, then using the coordinate box to manually enter the new coordinate position doesn't work in either wire frame or hidden line mode.

It seems trying to get the cursor into the co-ordinate bar starts moving the object, for me entering a number there does nothing in either V22 or 23.

You can do this same thing by bringing up the point-relative dialog (shortcut single quote) and then using the "from origin" option to set your point.

I also noticed that in designcad tile view, you can see the "rubber band" movement in the side views, but as you say, it is currently absent in the main window in hidden line mode.
User since forever

DrollTroll

#6
Sorry fellows, I can't reproduce this. I see rubber-banding resize in 2D mode, in 3D mode (wireframe, OpenGL hidden, OpenGL Shaded) with no problem, using both 'N' and 'M' as well as Copy/Paste.

Try resetting DesignCAD to defaults and see if that helps. Open a command prompt in your DesignCAD folder (the one with dcad23.exe in it), and run these commands to see if that helps:

dcad23 /reset
dcad23 /clear
dcad23 /new

Also, Jeff, make sure you haven't activated RedSDK mode -- it's not fully implemented for 3D yet, and there may be some display anomaly hold-outs in 2D mode as well.

25 years with DesignCAD

prl

Quote from: DrollTroll on April 18, 2014, 07:22:56 AM
Sorry fellows, I can't reproduce this. I see rubber-banding resize in 2D mode, in 3D mode (wireframe, OpenGL hidden, OpenGL Shaded) with no problem, using both 'N' and 'M' as well as Copy/Paste.

This is a resizing handles problem, not a copy or move command issue.  Turn on resizing handles and select an object.  Then grab one of the grips.

DrollTroll

Oh, the red handles? Sorry I never use those. Thought you meant selection handles. I'll check that.
25 years with DesignCAD

prl

Quote from: DrollTroll on April 18, 2014, 07:27:53 AM
Oh, the red handles? Sorry I never use those.

Well as you can tell, neither do I.  But yes, the red handles.

Lar

I use resizing handles a lot and I don't miss the ghost preview too much (unless I want to visually resize until something within the selection's bounding box aligns with something else) but my rubberband bounding box always seem to move opposite to the direction of the mouse. This itself is not such a big deal, because once I make the final click it resizes properly. However, many time I don't get a chance to make that final click. The bugger shoots off somewhere and resizes on my first click. I then have to undo, place the cursor at the desired resize handle, press and hold (aka 'drag') near my desired target point then press the period key so I snap to the desired point.

Lar

samdavo

#11
Quote from: jprince58 on April 17, 2014, 03:06:33 PM
Also, in my older version, I could click the desired node and then manually input a precise new position via the coordinate bar.  This now seems to have no affect.
Already said I suspect, but on the subject of typing in new coords of a red handle ...
you can select resizing handle mode - select an object ( say a cube) , it has red handles...

and, left click on or near a handle on one face eg the YZ face  (don't right click with gravity snap, or you might select something else)
now ... the colour of the selection changes but the red handle stays red;  I am assuming that means that the handle is selected.
then you can enter new coords using  { : }  ( i.e. point XYZ);

or { ' } (i.e. point rel), or other options eg Rob S's point rel from origin ( which is the same as { : }  ,  or from reference point.

Now suppose you enter dx = 1000, dy = 2000, and dz = 3000  (and by this stage the colour of your selection has changed back to the first selection colour - can be ignored it seems....  anyway becaue you are working on the YZ plane handle, when it finishes, you have a change of 1000 in x direction, and the other coords are ignored. (2 cents).

Weird, but "from last point" is not available with { ' },  but if you use "from last cursor" it seems to maintain accuracy (??), and eg a cube 1250x1250x1250 becomes exactly 2250x1250x1250. (2 cents)

(PS On second thoughts, maybe it is safer to use POINT XYZ, or Point Rel from origin as Rob S suggests. - Personally I've never trusted "from last cursor position")

PPS btw,   only the X (or dx) coordinate matters - it will ignore the Y and Z (because, for this example, we are effectively stretching the YZ plane in X dirn, and all else stays rectangular)

samdavo

#12
PS   Jeff,
Just concentrating on that topic of setting the coords for a red handle (or maybe more than one?):-
1. yep, you're right, (I think) - you can change the X, Y or Z coordinate of a single YZ, ZX or XY face resp (but only one face at a time);  But I personally found it a bit tricky.

Other options :-
2. If you want to change the dimension in all three orthogonal axes, you can of course use Selection Scale, which changes scale or scales in all 3 directions (if you wish).

3. You can also go to Infobox - look at Bounding Box data, and change the size of X Y and Z dimensions thereof,

4. Finally, if you also want to rotate the selection - and /or scale - and/or maybe butt them up to a wall or whatever,  you might have a need for some convenient handles ( up to 3), which can be moved to any random orientations and distances.    The following macro draws a construction line around outside and inside of the bounding box, with 27 points, viz:-
6 at mid faces ( compare the red handles of the resizing box)
8 at corners,
12 at mid-edge, and
1 at centre. 
(compare Rubik's Cube).
When you Move (M) or Duplicate (N) the object/selection, you simply use new positions for the 1, 2 or 3 handles.  (all of which I'm sure everyone is aware of- still, might as well add it to the options).

' Diabox4.d3m - sets points centres of bounding box faces PLUS the geometric centre
'PLUS the corners of the bounding box, PLUS the midpoints of all edges
' records the points in an array, then draws a line.
'AND sets three handles for the solid or selection etc, at the midface of BOTTOM, top and right faces, as seen when looking along the z axis

' Allocate storage for the points.
Dim X(43), Y(43), Z(43)

Message "You should have something selected - ideally a 3D solid (or 2D shape) - this will draw a diamond in bounding box, with axes similar to the resizing handle - PLUS the bounding box and midpoint of all edges"

X(1) = (sys(196)+sys(198))/2 'A top dead centre
Y(1) = sys(199) 'A top dead centre
Z(1) = (sys(200)+sys(201))/2 'A top dead centre

X(2) = sys(196) 'B left dead centre
Y(2) = (sys(197)+sys(199))/2 'B left dead centre
Z(2) = (sys(200)+sys(201))/2 'B left dead centre

X(3) = (sys(196)+sys(198))/2 'C btm dead centre
Y(3) = sys(197) 'C btm dead centre
Z(3) = (sys(200)+sys(201))/2 'C btm dead centre

X(4) = sys(198) 'D right dead centre
Y(4) = (sys(197)+sys(199))/2 'D right dead centre
Z(4) = (sys(200)+sys(201))/2 'D right dead centre

X(5) = (sys(196)+sys(198))/2 'A top dead centre
Y(5) = sys(199) 'A top dead centre
Z(5) = (sys(200)+sys(201))/2 'A top dead centre

X(6) = (sys(196)+sys(198))/2 'E front dead centre
Y(6) = (sys(197)+sys(199))/2 'E front dead centre
Z(6) = sys(200) 'E front dead centre

X(7) = (sys(196)+sys(198))/2 'C btm dead centre
Y(7) = sys(197) 'C btm dead centre
Z(7) = (sys(200)+sys(201))/2 'C btm dead centre

X(8) = (sys(196)+sys(198))/2 'F back dead centre
Y(8) = (sys(197)+sys(199))/2 'F back dead centre
Z(8) = sys(201) 'F back dead centre

X(9) = (sys(196)+sys(198))/2 'A top dead centre
Y(9) = sys(199) 'A top dead centre
Z(9) = (sys(200)+sys(201))/2 'A top dead centre

X(10) = sys(196)'B left dead centre
Y(10) = (sys(197)+sys(199))/2 'B left dead centre
Z(10) = (sys(200)+sys(201))/2 'B left dead centre

X(11) = (sys(196)+sys(198))/2 'E front dead centre
Y(11) = (sys(197)+sys(199))/2 'E front dead centre
Z(11) = sys(200) 'E front dead centre

X(12) = sys(198)'D right dead centre
Y(12) = (sys(197)+sys(199))/2 'D right dead centre
Z(12) = (sys(200)+sys(201))/2 'D right dead centre

X(13) = (sys(196)+sys(198))/2 'F back dead centre
Y(13) = (sys(197)+sys(199))/2 'F back dead centre
Z(13) = sys(201) 'F back dead centre

X(14) = sys(196)'B left dead centre
Y(14) = (sys(197)+sys(199))/2 'B left dead centre
Z(14) = (sys(200)+sys(201))/2 'B left dead centre

X(15) = (sys(196)+sys(198))/2 'diamond centre, average of min and max X values in the selection
Y(15) = (sys(197)+sys(199))/2 'diamond centre, average of min and max Y values
Z(15) = (sys(200)+sys(201))/2 'diamond centre, average of min and max Z values

'continuing

X(16) = sys(196) 'J small small small
Y(16) = sys(197)
Z(16) = sys(200)

X(17) = sys(196) 'JK
Y(17) = sys(197)
Z(17) = (sys(200)+sys(201))/2

X(18) = sys(196) 'K ssb
Y(18) = sys(197)
Z(18) = sys(201)

X(19) = sys(196) 'KL
Y(19) = (sys(197)+sys(199))/2
Z(19) = sys(201)

X(20) = sys(196) 'L sbb
Y(20) = sys(199)
Z(20) = sys(201)

X(21) = sys(196) 'K ssb
Y(21) = sys(197)
Z(21) = sys(201)

X(22) = (sys(196)+sys(198))/2 'KM
Y(22) = sys(197)
Z(22) = sys(201)

X(23) = sys(198) 'M bsb
Y(23) = sys(197)
Z(23) = sys(201)

X(24) = sys(198) 'MN
Y(24) = (sys(197)+ sys(199))/2
Z(24) = sys(201)

X(25) = sys(198) 'N bbb
Y(25) = sys(199)
Z(25) = sys(201)

X(26) = (sys(196)+sys(198))/2 'NL
Y(26) = sys(199)
Z(26) = sys(201)

X(27) = sys(196) 'L sbb
Y(27) = sys(199)
Z(27) = sys(201)

X(28) = sys(196) 'LP
Y(28) = sys(199)
Z(28) = (sys(200)+sys(201))/2

X(29) = sys(196) 'P sbs
Y(29) = sys(199)
Z(29) = sys(200)

X(30) = sys(196) 'PJ
Y(30) = (sys(197)+sys(199))/2
Z(30) = sys(200)

X(31) = sys(196) 'J sss
Y(31) = sys(197)
Z(31) = sys(200)

X(32) = (sys(196)+sys(198))/2 'JQ
Y(32) = sys(197)
Z(32) = sys(200)

X(33) = sys(198) 'Q bss
Y(33) = sys(197)
Z(33) = sys(200)

X(34) = sys(198) 'QM
Y(34) = sys(197)
Z(34) = (sys(200)+sys(201))/2

X(35) = sys(198) 'M bsb
Y(35) = sys(197)
Z(35) = sys(201)

X(36) = sys(198) 'N bbb
Y(36) = sys(199)
Z(36) = sys(201)

X(37) = sys(198) 'NR
Y(37) = sys(199)
Z(37) = (sys(200)+sys(201))/2

X(38) = sys(198) 'R bbs
Y(38) = sys(199)
Z(38) = sys(200)

X(39) = sys(198) 'RQ
Y(39) = (sys(197)+sys(199))/2
Z(39) = sys(200)

X(40) = sys(198) 'Q bss
Y(40) = sys(197)
Z(40) = sys(200)

X(41) = sys(198) 'R bbs
Y(41) = sys(199)
Z(41) = sys(200)

X(42) = (sys(196)+sys(198))/2 'RP
Y(42) = sys(199)
Z(42) = sys(200)

X(43) = sys(196) 'P sbs
Y(43) = sys(199)
Z(43) = sys(200)

>Line
{
    For i = 1 to 43
       <PointXYZ [X(i), Y(i), Z(i)]
    Next i
    }


'next set three handles, at the midface of BOTTOM, top and right faces, as seen when looking along the z axis
'i.e the normal default direction for 2D viewing, which means it also works in 2D

>SetHandle
{
    <Pointxyz [x(3), y(3), z(3)] 'C
    <Pointxyz [x(1), y(1), z(1)] 'A
    <Pointxyz [x(4), y(4), z(4)] 'D
  }

End

prl

Quote from: samdavo on April 19, 2014, 03:11:59 AM
The following macro draws a construction line around outside and inside of the bounding box, with 27 points, viz:-

Sam, that's very creative.  It will let you grab those pesky roundish type solids that no longer have a center point (cylinders, spheres, cones, etc.)

samdavo

#14
prl - here's what I meant by "butting objects up to walls (or each other)"
Basically you join the blocks at midface points.  :)

PS It is just a single cranked construction line - and easy to delete when you finish with it.
You can get it back quick enough by selecting and running the macro again.
PS Sometimes it's nice to keep the original bounding box maybe grouped with the object (before you rotated it)  - after which you can still get a NEW bounding "diabox" as well :)