70002382 script selection commands move copy rotate erase to be applied to selected grips

Article 70002382
Type Wish
Product WebJS
Version 1003
Date Added 7/17/2023 12:00:00 AM
Fixed 10.1004.0.6 (7/21/2023 12:00:00 AM)
Submitted by Dariusz Johanik

Summary

script selection commands move copy rotate erase to be applied to selected grips

Solution

the "select" command of vdcanvas.scriptCommand.parseCommands support "grip" parameter to add the selected grips entities to the ActiveSelection of scriptCommand object
Example:

Begins a move command with all selected grip entities

vdcanvas.scriptCommand.parseCommands(["select -all grip"]);//Note the '-all' is used to crear the ActiveSelection before adding the selected grips entities
vdcanvas.scriptCommand.move();

Send comments on this topic.