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.

Re-sizing / Scaling Symbol with different ratios causes rotation - V16 - 22

Started by drgroen, June 22, 2013, 01:22:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

drgroen

DCAD Gurus,

I don't use symbols that much in DCAD.  When I have schematics to do I will use a schematic capture program such as PADS.  However, I do have a few DCAD drawings in which use electronic symbols.

1.  I added an AND gate from the 2D Electronic library.
2.  I re-sized it using the Re-Sizing handles.
3.  The symbol comes out rotated.
(It looks good during the re-size operation, but rotates after I hit Enter.)
4.  The "S" Scale command works fine if I keep the X & Y scale the same.  If I change one or the other it rotates the symbol.


DCAD Express 14 works OK
DCAD 3D Max V16  (2D Mode) has the problem
DCAD 3D Max V17  (2D Mode) has the problem
DCAD 3D Max V18  (2D Mode) has the problem
DCAD 3D Max V20  (2D Mode) has the problem

It seems that it might have to do with the fact that the AND and OR gates have arcs in them.
Maybe it's because the center or origin of the symbol is not set properly?

Inverters (without arcs) do not exhibit the problem.

Capacitors do not seem to exhibit the problem, but they seem to have a parameter set (don't know where) that forces the X & Y ratios to be the same.

I can re-size using the Horizontal, Vertical or Diagonal Re-sizing Handles and get similar results.

I tried going to the Info Box for the symbol and changing the "Scale At" to different settings and still had the problem.

A sample file is attached.

It's important to be able to stretch a logic symbol (line And/OR/NAND/NOR/XOR gates) to accommodate a larger number of inputs.

I find that I can re-size the symbol with different rations in DCAD Express 14, copy the symbol & paste it into V22.

Any suggestions?

Thanks.

Dave

prl

I can confirm the problem.  Looks like confusion between the definition of a symbol and a block.  Versions 16 and later are IMSI.

Blocks use the first handle as the insertion point and the second handle as the "X" axis.   But the user can only define the first handle.  The second one is defined by DesignCAD.

Symbols on the other hand let the user define all the locations (2 for 2d work, 3 for 3d work).  Something is out of whack between the two entity types.

No answer or work-around at the moment.  Let me think about this a while.



prl

Well I stand corrected.  This problem goes all the way to version 13.   Don't understand why v14 express works but the v14 3d Max doesn't.

prl

Dave,


Dt will have to chime in here but researching things suggests that symbols can't be scaled independently in the x and y directions.  Both directions must always have the same factor.  So the fact that re-sizing handles lets you do something (though rotated) is a bug.  Same thing with the "scale" command and the infobox.  Though I must say, all this is very unintuitive since we are clearly give places to independently change the x and y factors.

I did notice that if I take one of your symbols and hold the shift key while grabbing the left to right resizing handles, that will work, though your symbol is enlarged or reduced proportionally in both x and y directions.

Pearco

Dave;

       If I need to load a symbol and only change say the x size then I do as follows.

1. Select the symbol to load but before loading check at the bottom of the dialog the load and explode and use original size boxes.
2. Place it where ever you want but while still selected scale in the direction you want.
3. Now regroup and set the handle as you please or what ever your next step is.

      I use symbols only, so I have no idea how this would work with blocks nor do I use attributes with the symbols I am referring to, so I check that for yourself.
Jim
User since ProDesign 1.5

Lar

This 'rotating' of scaled symbols is not a bug. It is dcad working perfectly.

After investigation I see what is happening:
When you scale symbols what gets scaled are the handle locations, and the drawing gets stretched between these handles. I would guess that with 3 handles only the 1st two handles controls the scaling, since when using the 'move' command with 'use original scale' unchecked the 3rd handle is only used to define the plane the entity lays on (and does not influence the scaling of the object).

If you use the Symbol Library (Shift+S is the default shortcut, I think) you will be able to see the locations of the handles before you select an item. The 'AND' gate symbol has 2 handles and its lines are straight but the 2nd handle is not in a straight line from the1st. So, when you scale, the handles move away from each other, causing the relationship between the straightness of the lines and the 2 non-straight handles to change, resulting in the lines becoming un-straight and thus causing the 'illusion' that the symbol was rotated.

If you load any of the symbols whose handles are straight and scale them they would not 'rotate' as the 'AND' gate does.

To fix this condition you could open the source file and place new straight handles. However, this may cause all your 'AND' gate symbols in existing files to 'rotate'.

I guess it would be better to scale proportionately using the 'Edit menu> Selection Edit> Zoom' command (known as 'OrthoZoom' in BasicCAD, I think).

I guess I never used dcad's symbols because I never noticed this 'rotation' when symbols with non-straight handles are scaled. I only used my own symbols, which have handles as I placed them. The only reason I recognized that the 'handles are being scaled' is because in Cinema4D (my dcad partner program) an object's 'axis' can be scaled independent of its size, something I have yet to fully grasp.

Lar

prl

Quote from: Lar on June 23, 2013, 11:21:51 AM
This 'rotating' of scaled symbols is not a bug. It is dcad working perfectly.

Lar, your explanation does make sense but this isn't Dcad working perfectly.   To show the "ghost" resizing and then when the user hits "enter" to have it rotate is certainly not a well oiled command.

prl

Looked at this some more thinking about Lar's skewed handles line theory.  If one takes the symbol and explodes it (making it regular entities) but keeping the original handle locations, all behaves as normal.  Also a similar experiment with sticky handles and groups etc., all behaves as one would expect.   My take, the resizing handles command is flawed when dealing with symbols. 

I've attached one of those fancy self-executing screen capture movies for your enjoyment.  It is in the zip file.  Unzip and double click the executable.

drgroen

Lar,

Thanks for the input.

Quote from: Lar on June 23, 2013, 11:21:51 AM
This 'rotating' of scaled symbols is not a bug. It is dcad working perfectly.

If you can't fix it, feature it  :)
I understand now what it's doing, but it would be nice to scale symbols with different X & Y scales.
It does work for Groups & Blocks.

Quote from: Lar on June 23, 2013, 11:21:51 AM

If you use the Symbol Library (Shift+S is the default shortcut, I think) you will be able to see the locations of the handles before you select an item. The 'AND' gate symbol has 2 handles and its lines are straight but the 2nd handle is not in a straight line from the1st. So, when you scale, the handles move away from each other, causing the relationship between the straightness of the lines and the 2 non-straight handles to change, resulting in the lines becoming un-straight and thus causing the 'illusion' that the symbol was rotated.

If you load any of the symbols whose handles are straight and scale them they would not 'rotate' as the 'AND' gate does.


You're right on the 2 "non-straight" handles.  If I re-save the symbol with both handles in the with same X or Y dimension, the rotating does not happen.  It also forces scaling to use the same X & Y scale.

Quote from: Lar on June 23, 2013, 11:21:51 AM
To fix this condition you could open the source file and place new straight handles. However, this may cause all your 'AND' gate symbols in existing files to 'rotate'.

I tried this and there was no problem causing the existing symbols on my drawing to rotate.

I have my method of attack.
1. Load the symbol
2. Explode it
3. Size it as required
4. Group it or Block it as needed.
5. Save it as a Symbol if I think I'll need it again.

Or....
1.  Load the symbol in DCAD Express 14
2.  Scale it as needed
3.  Copy it to the clipboard
4.  Past it into my DCAD 3D Max 22 drdawing.


Thanks again to all.

Dave


prl

Quote from: drgroen on June 23, 2013, 01:08:27 PM
I understand now what it's doing, but it would be nice to scale symbols with different X & Y scales.
It does work for Groups & Blocks.

By adjusting your symbols so the second handle is in the "x" axis direction, you are applying the default rule for a block.  Hence it works.  Symbols can't be scaled independently in the x and y direction, but blocks can.  You can see the mix-up as DesignCAD transitioned from symbols to blocks. 

Lar

Quote from: prl on June 23, 2013, 12:32:43 PM
  To show the "ghost" resizing .
True, Prl, but this 'incorrect ghost' happens elsewhere, like when resizing hatches the patters stretches and when enter is hit the pattern appears unchanged although the hatch borders are resized (as it should be). The ghost itself does a sort of pixel-manipulation instead of true command execution. Whether or not that needs to be fixed is another discussion.

Quote from: prl on June 23, 2013, 01:03:28 PM
If one takes the symbol and explodes it (making it regular entities) but keeping the original handle locations, all behaves as normal.
Prl, what I'm saying is that the symbol's internal handles (ie, those placed by the user in the source file) is all the stretching command uses (and only 2 of them) when symbols are stretched. Whatever fills in the gap between and around those handles is just along for the ride... and they obey the law that symbols should always remain proportional (I guess the programmers flipped a coin on this). The result is that the points are stretched and this moves the contents, so it appears to be rotated (like how the user can 'rotate' an object by 'pivoting' the handles). When you exploded the symbols the stretching commands can now use all the points and can now manipulate the aspec ratio of the lot.

Quote from: drgroen on June 23, 2013, 01:08:27 PM
Quote from: Lar on June 23, 2013, 11:21:51 AM
To fix this condition you could open the source file and place new straight handles. However, this may cause all your 'AND' gate symbols in existing files to 'rotate'.

I tried this and there was no problem causing the existing symbols on my drawing to rotate.
Good to know, Drgroen. It seems that after insertion, dcad only uses the 2nd internal user-handle to scale, even if the user creates new handles for the symbol. Big Daddy P has the final say.

Lar
wha...? Oh, "Big Daddy P" = Big Daddy Programmer

prl

Quote from: Lar on June 23, 2013, 01:33:19 PM
Prl, what I'm saying is that the symbol's internal handles (ie, those placed by the user in the source file) is all the stretching command uses

I understand what you are saying, though to say that this is DesignCAD working perfectly well is a stretch.  Symbols by DesignCAD definition have a locked aspect ratio and that is what the resizing handles command should be enforcing. So for symbols, grab a grip and scale something in the x direction by 1.5, the same factor is applied to the Y direction. Grab a grip in the y direction and resize by 1.5, same factor is applied to the x direction.



JJG

I'll add that the same way is used when you "import" something through the copy and paste (Ctrl C / Ctrl V) and enable the "resize" button : the second handle is the one used to re-size and rotate together.
I have learned to work with, very efficient in fact.

prl

This topic has exposed a few more bugs.

For symbols, in BasicCAD the Change SY_XScale or Change SY_YScale don't work.

I also noticed that when you first create a 2d "block", the infobox doesn't give you the option for changing the y scale.  But you can use the resizing handles command or scale command for separate x and y factors.  After using those, the infobox correctly shows both x and y scaling options.