70002002 Support Attributes grips of a Insert objects

Article 70002002
Type Wish
Product WebJS
Version 9001
Date Added 6/17/2021 12:00:00 AM
Fixed 9.9002.0.5 (6/17/2021 12:00:00 AM)
Submitted by


Support Attributes grips of a Insert objects


In version 9002.0.5 insert objects display the follwing grips:
InsertionPoint of insert object
and all InsertionPoint of all Attributes with the following properties values
InVisibleMode = false or undefined
IsConstant = false or undefined
IsLockedPosition = false

NOTE: in order the grips to be displayed the vdrawObj.GripManager.Enable must be set to true
NOTE: if you want to set all Attributes of all insert object to have IsLockedPosition = false you can use the following code:

//filter all entities in order to change all the existing Attributes of all insert object in the drawing to be allow their grip display and move
 vdcanvas.FilterEntities(null, function (args) {
            if (args.entity && args.entity._t === vdConst.vdInsert_code && args.entity.Attributes) {
                for (var j = 0; j < args.entity.Attributes.Items.length; j++) {
                    var attrrib = args.entity.Attributes.Items[j];
                    if (!attrrib) continue;
                    attrrib.IsLockedPosition = false;//disable attribute lock position property in order to display its grip and allow move the grip
                args.vdraw.UpdateFig(args.entity);//update the figure in order to re-calculate grip points

Send comments on this topic.