Some questions regarding shortcuts, rebuild-command and view

 From:  DavidE
10909.1 
Hey everyone!

Over the last few weeks a few questions came up and I'd like to sum them up in this thread.
Sorry if that's a bit much in one thread so please let me know if multiple would be preferred instead.

#1. Is it possible to also deselect objects via mouse-drag or only selecting it?
So for example selecting 5 objects via the click&mouse-drag-selection and then deselecting some of them, again, somehow with the click&mouse-drag?

#2. Is it possible to have one shortcut which applies 'Rotate Axis' when being in 3D-view and just 'Rotate' in-case it is a 2D-view like Front/Top/Right/...?
I came up with the script 'ImprovedRotate.js' (attached below) which is unfortunately is always giving me the following error



Not sure what's the problem here... Does somebody know?

#3. Do not abort commands when using space-bar for other shortcuts.
I've set the space-bar as a shortcut for the following script which simply changes the view to 3D and also focuses on the selected object.

moi.ui.mainWindow.viewpanel.mode = '3D';
var viewport = moi.ui.getViewportUnderMouse(); if ( viewport ) viewport.reset();

The problem here is that whenever I'm in the middle of some command, let's say polyline, and then use the shortcut mentioned above, the polyline-command aborts. However, clicking the view-buttons in the left-bottom corner while drawing a polyline works perfectly fine.
Not sure if the script is the problem or the spacebar-shortcut itself...

#4. How to handle inaccuracies between edges/curves and connected faces
What I mean with that is how to prevent those 'inaccuracies' which often occur when creating faces between curves with e.g. the 'Planar'-command. Please check out the following screenshot:



What I figured out is that it has something to do with the amount of points the curves are having.
I've tried Rebuild-command on the curves (e.g. rebuilding with ~200 points), however the faces which are attached to the points are unfortunately not being updated and so those inaccuracies are still there.



I've also attached the .3dm file below if that helps.

Thanks a lot and best regards,
DavidE