Jump to content

Script to change selected items' class

Recommended Posts

Yes — a handle is like a temporary ID for an object (it's actually the location of where the object is stored in Vectorworks' memory). Most vs functions take the handle as the parameter.


ForEachObject lets you send selected objects to your action function. You might want something like this:


Function ChangeClass( h: HANDLE ):BOOLEAN;
	SetClass( h, 'None' );

ForEachObjectInList( ChangeClass, 2 {selected objects}, 0 {shallow}, FSActLayer );


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

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...