team Posted October 16, 2008 Share Posted October 16, 2008 (edited) 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 October 17, 2008 by team Quote Link to comment
team Posted October 17, 2008 Author Share Posted October 17, 2008 (edited) 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 October 17, 2008 by team Quote Link to comment
maarten. Posted October 17, 2008 Share Posted October 17, 2008 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)). Quote Link to comment
team Posted October 17, 2008 Author Share Posted October 17, 2008 dank je well, maarten! So fast.... I will try this! Quote Link to comment
maarten. Posted October 17, 2008 Share Posted October 17, 2008 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) Quote Link to comment
team Posted October 17, 2008 Author Share Posted October 17, 2008 (edited) 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 October 17, 2008 by team Quote Link to comment
maarten. Posted October 17, 2008 Share Posted October 17, 2008 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. Quote Link to comment
team Posted October 17, 2008 Author Share Posted October 17, 2008 Thanks again.... Quote Link to comment
Recommended Posts
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.