70002776 Ability to switch between different selection modes with webcontrol commands

Article 70002776
Type Wish
Product WebJS
Date Added 10/14/2025 12:00:00 AM
Fixed 11.5.1 (10/14/2025 12:00:00 AM)
Submitted by Kumar Aradhyula

Summary

During selection of the commands move, scale, rotate, copy , mirror, and select , to be able to switch between different selection modes: single, window rectangle, and fence

Solution

In version 11.5.1 a new ptoperty CommandSelectionMode for vdcanvas object
It can get one of the following values:

vdConst.SelectionMode_Auto
This is the default value .
When the user pick over an entity it is added to selection.
When user pick on an empty area a window selection is started and if the second corner is right to the first a crossing selection is applied for the objects passing throw the rectangle
else a window selection is applied and only objects completely inside the rectangle are added to selection


vdConst.SelectionMode_Single :The user select entities by single clicking over them.No window selection is started
vdConst.SelectionMode_WindowAuto :User select entities only by picking a window and entities that crossing the rectangle are selected or if they completely inner depend on the side of the second pick point of window
vdConst.SelectionMode_Window :User select entities only by picking a window and only entities completely inside the rectangle window are added to selection
vdConst.SelectionMode_WindowCross :User select entities only by picking a window and entities completely inside the rectangle window or intersection the window are added to selection
vdConst.SelectionMode_Fence :User select a line segment and entities that intersect the segment are added to selection

You can change the CommandSelectionMode at any time even if a selection command is started.

Send comments on this topic.