JoshRula Posted June 26, 2023 Share Posted June 26, 2023 What is the vectorscript function to change the active class? I have written a script to make several parts and would like them to take on the class attributes. when I move them to with SetClass(H2, 'LAMINATE' ); for example, They move to the correct class but do not take on the pen colors. Quote Link to comment
JoshRula Posted June 26, 2023 Author Share Posted June 26, 2023 NameClass('19MM PLYWOOD'); oops, found it! thanks! Quote Link to comment
Pat Stanford Posted June 26, 2023 Share Posted June 26, 2023 You probably also need to use the ByClass functions to set the object to use the Class attributes: LSByClass - Line Style LWByClass - Line Weight FillColorByClass FPatByClass - Fill Pattern OpacityByClass MarkerByClass PenColorByClass Or if you have already created the object there are Set functions (SetLSByClass, etc) that you can use to change an existing object to use the Class attributes. Search for ByClass in the Function Reference to see all the options. 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.