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.

How to change just one position point of solid

Started by MarkX, November 13, 2011, 02:40:04 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

MarkX

I'm running a head to head comparison with another product on a tutorial. It seems that DC requires me to do more fiddling with reference and construction lines.

In particular, if I have a solid, and want to move it, changing only its X value ... how do I do that? If the object was a line or point, I could do it from the info box. But the info box doesn't let me do that for a solid cube, for instance. I'm a bit surprised that it doesn't allow this ability, actually.

And yes, I could use the delta box, but I would first have to find the two original x values, subtract them, and then copy that into the delta. That's a lot of extra steps.

So far the only work-around I see is to place a pointmark on the solid, then change the X value of the pointmark, and then snap the solid to the new location of the pointmark.

But maybe there's some other, faster way I'm overlooking?

Thanks!
Mark

Bob P

Do you want to move the entire solid?  If so:

Gravity Snap to a point on the solid with the period key.
>Move (m key)
>Point polar (; key)
Enter the delta-x value, and the angle if necessary.
>Enter

If you want to move just one point of the solid:

>PointMove (* key)
Gravity snap to the point to move (period key)
>Point polar (; key)
Enter the delta-x value, and the angle if necessary.
>Enter

Pearco

MarkX;

You may need to read up on move by reference point. If you set a reference point on the object you want to move and then invoke the point polar command. then you can enter the distance and direction you want to move it. Call up the move dialog box and there is a check box for the move by reference choice.
Jim
User since ProDesign 1.5

MarkX

Bob & Pearco --

I know how to use reference points, polar, etc. These require that you know a DELTA.

I don't want to calculate a delta -- I want to change the X value only without several intermediate steps.. I can do this with simple objects like pointmarks and lines, but the feature doesn't seem to be available for solids. I thought maybe I was missing something.

Thanks!
Mark

Rob S


I think a macro could be written for this, but it might take more time than I have right now  :(
User since forever

Dean

"But the info box doesn't let me do that for a solid cube "
Hi Mark, Have the coordinate toolbar open so you can see the x,y,z,values.Then place the cursor next to any one the 8 points from which the x value will change this will select the cube then double click the period key then click shift +; then type in the new x value. You can change/move the insertion point x value of a block in the info box.
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

Rob S

Dean, this does move the object to x = 35, however, it also moves it to whatever is entered in the y and z boxes of the XYZ dialog box, by default 0 and 0.

It would be great if this dialog had a "keep current" or "no change" option in the entries.

So, I don't think we quite have it solved as yet
User since forever

Lar

#7
Mark, those other programs normally move objects by their center-of-gravity, which takes a whole lot more calculating to get a particular point at a particular absolute-x location, since you would hardly ever want an object located by it's center. The 3d animation program that I use as a companion to dcad allows me to move the default center axis to any location but this normally involves the extra steps of finding and turning on 'point snapping' (right-click snapping is one of dcad's awesomest abilities) and then actually moving the axis.

So, in my opinion and experience, your pointmark example is probably the easiest thing to do overall. Remember that once you move the pointmark you can just right click to snap at any point of the solid to select it and set the 'big-blue' handle there, then immediately click the again to 'pick-up' the solid, then move it to the pointmark and right-click-snap to drop it there. What dcad can do it does about 100 times faster and with absolute accuracy than other cad and 3d programs.

Lar

MarkX

Quote from: Lar on November 14, 2011, 09:14:39 AM
Mark, those other programs normally move objects by their center-of-gravity, which takes a whole lot more calculating to get a particular point at a particular absolute-x location, since you would hardly ever want an object located by it's center.
Hi Lar,

The program I'm thinking of uses points and reference points similar to DC. I just thought there ought to be a quick way to move an object by changing just one of its XYZ values in space. You can do this for lines, so its puzzling that you can't for solids or even sets of selections.  Hmm ... there isn't a way to pop up to the coordinate bar WITHOUT changing your current cursor location, is there?

I find I spend an awful lot of time in DC just setting up guidelines and reference points. In this case I would only have to change the value of one axis to get where I want.

Thanks!
Mark

Dean

" Hmm ... there isn't a way to pop up to the coordinate bar WITHOUT changing your current cursor location, is there?"

With the coordinate bar open.Draw a cube then place cursor next to top left front corner of cube then hit the period key then hit F6 type in the x value coordinate then hit enter then hit M (make sure from reference point is un-checked)then hit enter.
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

MarkX

Quote from: Dean on November 14, 2011, 11:24:21 AM
" Hmm ... there isn't a way to pop up to the coordinate bar WITHOUT changing your current cursor location, is there?"

With the coordinate bar open.Draw a cube then place cursor next to top left front corner of cube then hit the period key then hit F6 type in the x value coordinate then hit enter then hit M (make sure from reference point is un-checked)then hit enter.
Hi Dean --

That's it! I'm making a note in my DC tips collection.

Thanks!
Mark

JJG

#11
You forget to say that your object must first be selected.

In this case, without even using the coordinate bar, there is another solution:

Often I move any object (entity, groups of entities, etc ... and therefore solids too) by this procedure:
1) keyboard shortcut "Ctrl H", then click for a first point of reference, then open the "point relative" window (with the key ' ) and fill in the desired movement in X, Y, and Z together , and take care to check "Last point "; validate ;
2) issue the command "Move" (keyboard shortcut "M"), then validate again.

So the selection was moved automatically to the desired amount.
QED

JJG

Quote from: Dean on November 14, 2011, 11:24:21 AM
" Hmm ... there isn't a way to pop up to the coordinate bar WITHOUT changing your current cursor location, is there?"

With the coordinate bar open.Draw a cube then place cursor next to top left front corner of cube then hit the period key then hit F6 type in the x value coordinate then hit enter then hit M (make sure from reference point is un-checked)then hit enter.

Note that You can also inform the future movement in Y and Z too (in addition to X), going from the x-value at the y-value (and possibly to the z-value too) using the Tab key, before you hit enter .. .
This way you can do all at once ...
Is even better

MarkX

Quote from: JJG on November 14, 2011, 12:39:21 PM
You forget to say that your object must first be selected.

In this case, without even using the coordinate bar, there is another solution:

Often I move any object (entity, groups of entities, etc ... and therefore solids too) by this procedure:
1) keyboard shortcut "Ctrl H", then click for a first point of reference, then open the "point relative" window (with the key ' ) and fill in the desired movement in X, Y, and Z together , and take care to check "Last point "; validate ;
2) issue the command "Move" (keyboard shortcut "M"), then validate again.

So the selection was moved automatically to the desired amount.
QED
Hi JJG,

Yes, there are apparently many ways to perform RELATIVE motion. But I was looking for a method to move one or more XYZ coordinates ABSOLUTELY while leaving the others unchanged. In other words, given X=1,Y=1,Z=2.7812 change to X=1,Y=1,Z=3.14159265368 WITHOUT having to do calculations like 3.14159265368 - 2.7812 before the movement and without having to first capture the values of existing locations.

This is a straight-forward process in other systems, and I'm glad to see that there's at least a back-door to the process via F6.

Thanks!
Mark

Bob P

#14
'Program mpx.d3m
'I've put an extra line (message X1, ...) which can be removed or commented out if desired.

Setpoint "Gravity-snap onto the point that you want to move", 1
GETXYZ X1, Y1, Z1
sys(1)=0
message X1, "is the old x value"
INPUT "Enter a new x value ", X2
>Pointmove
{
<pointxyz [X1, Y1, Z1]

<pointxyz [X2, Y1, Z1]
}

END:

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

On a separate note, I had forgotten that the macro help files pertaining to pointxyz are misleading.  They all show real values without the brackets.  But - variables must be within brackets.  Drove me crazy until I looked at some of my other macros.