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 turn off point select mode without those pesky dots undrawing.

Started by Lar, April 07, 2013, 05:08:47 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Lar

Ok, I really, really love point select mode. But you know how it is when you have a large drawing open and you hit ctrl+A (select all), without realizing that point select mode is active, and you have to watch those million dots appear one at a time (at high speed but still irritating to have to watch) and you know that when they are done you will have to turn point select mode off because they all redraw with every action so you best bite the bullet and turn point select off now and just watch them points go away now, one by one?

Well, after 20+ years of using dcad  I have finally found a way to deactivate point select mode without having to watch them dots undraw.

Simply activate another drawing (with nothing selected), turn point select mode off, then reactivate the first drawing. Any of the highlighted points that were not covered by the other drawing's windows will still be visible, but they are not really there. You can refresh to clear them away or just go about your work and they won't be there to bother you.

The only way to activate another drawing if one is not there already is to start a new drawing but that will open a lot faster that those dots will undraw. Once the drawing is open you can close all but one of its windows and even minimize it, leaving it open for when you need it again. If you minimize it and leave it visible you can just click it to activate it without opening it, so your selection don't redraw at all. You can even close a floating window completely by grabbing its bottom and pushing it all the way up until only its title bar is left visible, then size it down horizontally just enough so that clicking it don't cause the minimize menu to pop up.

This trick can also work the other way: if you make a selection and point select mode is off but you want it on (say your next action will be to zoom in and you need the points visible when you do), you can switch to the other drawing, activate ps mode, switch back and the dots are there (but may not be visible until a refresh happens) without you having to watch them appear. This is where the closed down window really comes in good ...because if re-activating the first file's window will bring it from behind another window you will be watching them dots appear one by one.

Here'a s trick:
Turn off point select mode and select plenty stuff... Zoom in tight on an entity whose end point you want to move and so that where you want to move it to is also visible... Activate the closed down drawing (hold ctrl and repetedly press tab to cycle through the windows) and activate point select mode (aka' ps mode')... Re-activate the first window. The points will be highlighted but not visible... Put the cursor over the endpoint to move, the cursor will change to the bullseye, signifying that that point will be picked up if you click... Click the point then switch back to the other drawing and turn ps mode off, then switch back to the first drawing. PS Mode will be deactivated but you will still be able to complete the moving of the point. How cool is that  8)!! If you did not deactivate ps mode you will have to wait for all the points, seen and unseen, to redraw themselves before control of dcad is returned to you.
<<Note that this trick won't work if intending to highlight more than one point to move, because once you highlight any of the points they will all redraw>>

Lar
<<whew, took a lot of words to explain a few simple actions...>>

prl

Quote from: Lar on April 07, 2013, 05:08:47 PM
a way to deactivate point select mode without having to watch them dots undraw.

You must really have a lot of points. For me, this is always fairly fast unless you are in one of the shaded modes in 3d.  Will this help?

if sys(345) = 1 then 'point select mode  is active
   sys(36)=2
   >PointSelectMode
   {
   }
   sys(36)=0
   regen
endif



Lar

Prl, you live a charmed dcad existence if you've never experienced that many-point-redraw... or is it that my dcad aspirations are too ambitious.

I would have to rewrite your macro so it acts as an on/off toggle. I would also remove the 'regen' since regenning is what I'm trying to avoid. Also, my trick of turning off ps mode in the middle of a point move will be aborted by the macro.

But the big picture here is that the redrawing of the points (when you activate or deactivate ps mode, move a point or highlight points) is totally unnecessary. After activating/deactivating ps mode the points should all appear and disappear at once.

Lar

Rob S

So, just out of curiosity, how long does the redraw of the points take for you?  How large of a drawing do you have open and how many points does it have.

For a test, open the sample drawing "map detail.dcd", which has 161,000 points.  On my Laptop using V22 with the entire drawing on screen, when I go edit select all (Ctrl+A) it only takes 2-3 seconds to draw all the points, and upon Escape (Esc) about the same to erase them again.  More like 1-2 seconds on the desktop.

That is not near enough time for me to switch drawings, run some commands, and switch back.  Drawing the points for a normal selection of a few items is nearly instantaneous.
User since forever

Dr PR

Lar,

I understand exactly what you are saying. I have drawings with more than a million points, and individual window redraws on my older machines can take a minute or more if Point select mode is active and I have selected an object with a lot of points (grid surfaces) like a ship hull. Even on my newest machine it can take 5-10 seconds to redraw a window.

For this reason I disable Point Select mode unless I absolutely need it.

One of the things that is really frustrating is that if I have multiple windows open and change the shading in one, ALL windows are redrawn! Since Point Select mode essentially doubles the redraw time, if I forget to disable it before changing shading, I get to watch up to eight slow window redraws. Might as well go get a cup of coffee while I wait.

Let's hope that the new display code flushes out all of these old display bugs!

Phil

PS: I opened the "Map Detail.dcd" drawing on my XP machine. Here are the refresh times (seconds) after a "Select All" operation:

Mode                 PS off    PS on
2D (1 window)      2           5
3D (4 windows)    4          19

As you can see, waiting 19 seconds for the windows to redraw can really slow down your work. And this is with a small 5 Mbyte drawing having no solids or grids and only 160,000 points.

I repeated this with a 46 Mbyte 3D drawing with 180,000 entities and 1,200,000 points:

Mode                 PS off    PS on
3D (1 window)      13         28
3D (4 windows)     28        90

Keep in mind that this drawing is just one mechanism in a much larger 275 Mbyte drawing that is just one part of the superstructure of a ship. The entire ship drawing (when finished) will be 800 Mbytes to 1 Gbyte. If I accidentally selected it all (assuming we will ever be able to load a drawing that large) I would probably die of old age before the program finished redrawing all windows.

Perhaps the biggest problem is that each element is drawn on the screen one at a time. I can see the individual lines and point boxes appear on the screen one after the other. The ESCape key doesn't stop the redraw and each window is drawn two or four times. It looks like part or all of each window is being redrawn after each element of the drawing is selected/deselected.

It might be a major improvement if the program would just create the new images off screen - without the extra code to redraw each window each time an element or point box was selected/deselected - and then just redraw each window once after the image was created.
DesignCAD user since 1987

prl

Quote from: Lar on April 08, 2013, 07:23:13 AM
Prl, you live a charmed dcad existence if you've never experienced that many-point-redraw... or is it that my dcad aspirations are too ambitious.

Probably both.  :)   For what it is worth, I only ever use one and only one main window, never tiled windows.  DesignCAD autoregens everything way too much.  Hence the sys(36)=2 trick for a good many things I do.

Lar

Quote from: Rob S on April 08, 2013, 08:27:03 AM
So, just out of curiosity, how long does the redraw of the points take for you?  How large of a drawing do you have open and how many points does it have.
Rob, after reading your other topic on this subject I was preparing a reply in v22.1 and the specific version you tested in but my conditions are different for that version, and I kept getting vastly varied results in the same version. Basically it boils down to the number of windows used (whether minimized or not). My test, in v22.1, had 153,000 points but also included 250 symbols, with 4 windows (3 minimized). The dots drew about half way then restarted. This went on for about 3 minutes before I escaped out. I exploded all of the symbols, bringing the points to 420,000 and it took 13 seconds to draw the dots. I closed the 3 minimized windows and the dots redrew almost instantly.

Thing is I typically draw with 4 windows (mostly wireframe), usually with more than 1 drawing but lately I've been opening another instance of dcad for my side drawings. Over the years dot-redraw has been somewhat of an irritation. It's not so much the single redrawing but the repetitive redrawing when editing points (since I hardly ever open all layers and select all to edit points). My windows are usually floating and overlay each other so that a part of each window is always visible (easy clicking to activate any window). Because of this my switching-to-other-closed-window-of-drawing trick is very easy and actually works like a charm (I toggle ps mode with the A key). Prl's macro I would have to assign to a hotkey to make it as effective. I won't be able to do the complete-the-moving-of-a-point-with-ps'mode-off, though.

Lar
ps: Rob, I looked for you sample drawing (here and elsewhere) but it's gone...

Rob S

This sample drawing has been shipped with all recent full versions of Designcad, I used it because most people would already have it.

It normally installs in C:\....\IMSIDesign\DesignCAD 3D Max 22\Sample Drawings\2D Sample Drawings\Map Detail.dcd


ps my redraw times on the Laptop in 3D and with PS mode is 10 seconds select and 12 seconds de-select.  I can see where this would become quite an irritant, when selecting objects with many points.

A good test drawing for one single item with many points is the 3D sample "smokestack.dcd" where the ladder has about 4000 points, and on V22 it will take a few seconds (5-8) to redraw on my laptop with all four windows open.  In Shade mode it is 7-10 seconds

You are also correct, sometimes i gets half-way done, and starts over for no good reason that I can see.
User since forever

prl

Quote from: Lar on April 08, 2013, 09:44:22 AM
Thing is I typically draw with 4 windows

Well there is part of the problem, Lar habits and whacky DesignCAD code x 4.


Not that I do this but regarding your observation that running a DesignCAD macro cancels the active command, have you tried simply typing "sys(36)=2" on the command line.  Keep in mind you'll need to do the opposite too, "sys(36)=0".  Once you do this, they are on the command line pulldown.