Jump to content
Developer Wiki and Function Reference Links Read more... ×
tismacfan2

move object to active class

Recommended Posts

Could someone help me with a script, which moves a selected object to the active class.

 

Thank you Pascal

Share this post


Link to post

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

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×