Jump to content

move object to active class


Recommended Posts

For a single selected object

 

SetClass(FSActLayer,'Class to Move To');

 

For multiple selected objects

Procedure ChangeSelectedObjectsClass;

	Function Execute(H1:Handle):Boolean;
		Begin
			SetClass(H1,'Class to Change To');
		End;

Begin
	ForEachObjectInLayer(Execute,2,0,0);
End;

Run(ChangeSelectedObjectsClass);

 

  • Like 1
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...