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.

Bug with Extrude command

Started by JJG, October 19, 2012, 04:49:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JJG

I have not tested with v22, that I have not (it's bad, huh !!!), but this bug exists in v18 to v21 at least.
(not recently tested in v15, but it seems to me that the same thing happened)

This is what it is:

Working with "Select object when created" checked (Option, tab"General")  (this only appears in this case)
then draw a plan to be extruded ;
extrude it, then (without having deselected anything) move the created solid :
the original plan sticks on its original position, the rest moves ...
:'(

I think the problem is here : since the new created entities are a grid and a new plan on the top, Designcad considers the original plan (ie the "bottom") as a previous entitie, not as a new one being created, so that he deselects it (what a mistake !!!), but the original plan is still part of the new created solid : try to understand something in there.
This is a real bug !  I said !

JJG

note that :
1) if you deselect this new created solid, then reselect it through "Select previous", the original plan always sticks to its original position.

2) if you deselect , then reselect without "Select previous", ie by clicing near or on this new created solid,it's so OK, ie the original plan don't sticks to its original position, but moves withn the entire solid.

3) if you select something else, without having first deselected this new created solid, then reselect this new created solid through "Select previous", the original plan yet again sticks to its original position.

To whom it may concern.

JJG

This is something I wanted to point out since a very long time already, but I often forget to do it.
Recent times, I've worked again with this technic, which we should be able to save time with, and therefore I now mention it !

prl

Quote from: JJG on October 19, 2012, 05:06:44 AM
This is something I wanted to point out since a very long time already, but I often forget to do it.

JJG,

Yes the bug exists in version 15.3 too and still exists. When coding and I have created a plane I intend to extrude and subsequently move (the solid), I do the following.     Note I reselect the original plane with the putattr statement.  It should already be selected but it isn't.


.
.   
    pid = sys(9) 'plane id
    sys(242) = 1 'select when created ON
    >extrude
      {
      <Color [rcc, gcc, bcc]
      <AlongCurve [0]
      <Type 0
      <pointxyz [0,0,0]
      <pointxyz [0,wh,0]
      }
    sys(242) = 0 'select when created OFF
   
    'bug in DesignCAD, add plane to selection set, otherwise when you move the solid, the original plane doesn't move with solid
    getattr pid, type, select, laynum, grouporig, rc, gc, bc, solidid
    putattr pid, type,1, laynum, grouporig, rc, gc, bc, solidid
.
.

prl

For DT -  I'm guessing that the "select when created ON" simply records the sys(9) value before something is created and then selects everything beyond it when it is finished creating the item.

For the extrusion of a plane, this still works but you need to also ADD the original plane id to the selection set which may be anything from 1 to sys(9) before the extrusion.

JJG

Quote from: prl on October 19, 2012, 07:13:28 AM
For DT -  I'm guessing that the "select when created ON" simply records the sys(9) value before something is created and then selects everything beyond it when it is finished creating the item.
...

Yes indeed !!!
;)

Lar

Funny thing is, with 'select when created' disabled and you extrude a plane, the entire resulting solid (including the original plane) becomes selected.

One 'trick' to alleviate this particular circumstance, is to, after extruding, simply click on the solid to reselect it (since when intending to extrude you only select the necessary plane(s) and don't have other random stuff selected). This will select the entire solid with the added benefit of putting the big-blu handle where you need it for the move (with 'select when created' on the big-blue  handle usually appears somewhere other than where you want it).  If you want the handle at a particular point and 'point select mode' is on you will have to turn it off, so, in this case just hit esc to deselect then right click on the point to re-select the solid (or just highlight all the points and move the solid from that point). You may think that this will upset your 'select previous' but with 'select when created' on select previous will only reselect the original plane (without the rest of the new solid).

Lar

prl

Quote from: Lar on October 19, 2012, 08:50:21 AM
Funny thing is, with 'select when created' disabled and you extrude a plane, the entire resulting solid (including the original plane) becomes selected.

That is funny.



"It's a line, it's a plane, it's a solid".  "Neither line , nor plane, nor even solid; it's just little old me . . . . . . . . .  DesignCAD"

Dr PR

Some variation of this bug has existed for a very long time. Sometimes the original polygon is not incorporated into the extruded solid. The outline of the polygon (object 1) is extruded into a grid (object 2), and a new polygon (object 3) is created on the new end of the extrusion. All three objects should be incorporated into the new solid, but until the solid is deselected the original polygon is not treated as a part of the solid.

I thought it had been fixed many versions back, but I never use the "Select when created" option so I haven't seen it for quite a while.

Good catch JJG.

Phil
DesignCAD user since 1987

minstrel

Quote from: prl on October 19, 2012, 10:29:38 AM
That is funny.

...This entire thread is funny [in a good way  ;)]

I have tripped over this/these anomalies for some time now...even re-loaded previous version to check if they eliminated the issue.  They did not.  Figured it was just a case of user inexperience.

JJG, glad you shed some light on this and found the right words to expose it!  Now, it'll be nice to get it fixed.

Minstrel

ps - Lar, your tip works well, thanks.