Jump to content
Developer Wiki and Function Reference Links ×

DSelectAll


luiso

Recommended Posts

  • 2 weeks later...

Hi luiso,

I think you must have layers at different scales. SetLayerOptions(5) [show, snap, modify others] only works on layers of the same scale.

To deselect objects on layers of different scales you will have to go to those layers in your script by traversing through the layer list. One way would be to use "ForEachObjectInLayer", and set the layer options to "All Layers"

Try this:

code:

PROCEDURE DeSelect;

FUNCTION DeSelectIt (h:HANDLE) :BOOLEAN;

BEGIN

SetDSelect(h);

END;

BEGIN

ForEachObjectInLayer(DeSelectIt,2,0,1);

END;

RUN (DeSelect);
[/code]

I am not too advanced at this, so maybe someone has a better way, but I think this should work.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...