Jump to content
Sign in to follow this  
team

"Custom Selection": Objects in symbols

Recommended Posts

Hello from a newbie (in forum not Vw)!

My Problem is, that the button "symbols" in Custom selection doesn't seem to have any effect.

The number of objects shown under the button includes the objects in symbols, but selected ist (of course) only the objects that are not in symbols and groups.

(I tried to select objects with the same lineweight, to change it)

So, what is the button for?

Or is there a trick to get it work right with symbols?

Thanks

"team"

I hope you understand my "English"!

Edited by team

Share this post


Link to post

Hi,

back from General Discussion,

cause maarten told me that I only get this by an

"ForEachObject" script.

Can someone help me with the script

to change all (include symbols and groups) object with a specified Lineweight to another one?

And by the way, is it possible for hatches to?

In Groups an normal objects is no Problem with this one from custom modification:

EditProperties(INGROUP & INVIEWPORT & (LW=1));

but symbols?

Thanks

Edited by team

Share this post


Link to post

PROCEDURE Example;
PROCEDURE SetLineWight(h : HANDLE);
BEGIN
	SetLW(h,1);
END;
BEGIN
ForEachObject(SetLineWight,INSYMBOL & (T=Rect));
RedrawAll;
END;
RUN(Example);

This script selects all the rectangles ((T=Rect)), also the ones in symbols (INSYMBOL) and changes the linewight (SetLW(h,1)).

Share this post


Link to post

Graag gedaan :)

I see now that i forgot something: INGROUP should also be part of the Criteria, so you 'll get: INSYMBOL & INGROUP & (T=Rect)

Share this post


Link to post

Great, it works, even with Symbols in Groups

I changed it to change LineWeight=1 to Lineweight=2:

------------------------------------------------------

PROCEDURE LineWeight;

PROCEDURE SetLineWight(h : HANDLE);

BEGIN

SetLW(h,2);

END;

BEGIN

ForEachObject(SetLineWight,INSYMBOL & INGROUP & (LW=1));

RedrawAll;

END;

RUN(LineWeight);

-----------------------------------------------------

Thank you very much!

PS: How do you make thies "Code-Windows" in the Forum?

Edited by team

Share this post


Link to post
PS: How do you make thies "Code-Windows" in the Forum?

You need to put your code between these tags [ code ][ /code ] (but then without the spaces)

You get these by clicking on this symbol # in the little bar at the top of the Textbox while selecting your code.

Share this post


Link to post

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.

Sign in to follow this  

 

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.

×
×
  • Create New...