Difference between revisions of "VS:VM SelectSimilar"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
== Description == | == Description == | ||
− | Procedure VM_SelectSimilar enables you to select similar objects based on your active selection. The purpose is to be able to | + | Procedure VM_SelectSimilar enables you to select similar objects based on your active selection. The purpose is to be able to quickly select objects of the same type.<syntaxhighlight lang="pascal"> |
− | PROCEDURE | + | PROCEDURE VM_SelectSimilar(); |
</syntaxhighlight> | </syntaxhighlight> | ||
== Parameters == | == Parameters == | ||
Line 7: | Line 7: | ||
== Remarks == | == Remarks == | ||
− | + | All objects should be compatible. In case of selecting an object based on a type definition, similar type instances will become selected. | |
== Example == | == Example == |
Revision as of 11:24, 16 November 2020
Description
Procedure VM_SelectSimilar enables you to select similar objects based on your active selection. The purpose is to be able to quickly select objects of the same type.
PROCEDURE VM_SelectSimilar();
Parameters
h HANDLE Handle to layer.
Remarks
All objects should be compatible. In case of selecting an object based on a type definition, similar type instances will become selected.
Example
PROCEDURE MoveToLayer;
VAR
h : HANDLE;
BEGIN
h := NIL;
{h := GetObject('LayerName'); in case of predefined layer}
IF VerifyLibraryRoutine('VM_MoveToLayer') THEN
BEGIN
IF (GetType(h) = 31) OR (h = NIL) THEN VM_MoveToLayer(h);
End
ELSE
Message('The routine VM_MoveToLayer is not available.');
END;
RUN(MoveToLayer);
Version
Availability: from VectorMEP 2021