| Article | 70000530 |
| Type | Wish |
| Product | WebJS |
| Version | 7005 |
| Date Added | 8/20/2015 12:00:00 AM |
| Fixed | 7.7006.0.1 (8/24/2015 12:00:00 AM) |
| Submitted by | Iland Sandor |
Summary
I would like to be able to get all the entities of a specific layer.
Solution
In version 7006.0.1 a new function was added in the vdraw web library, GetEntitiesFromLayer().
GetEntitiesFromLayer(string layerName)
Returns all entities assigned to a specific layer. The function takes the following parameters- layerName: The name of the layer from which the entities will be returned.
Example
var vdcanvas = vdmanager.vdrawObject('canvas');
var ents = vdcanvas.GetEntitiesFromLayer("0");
alert(ents.length);
