Jump to content

"Custom Selection": Objects in symbols


team

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
Link to comment

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
Link to comment

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

Link to comment

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