zero Posted February 27, 2004 Share Posted February 27, 2004 So, how do I change the active class. I want to pick an existing object, get its class, and change the active class to the same. Then I will turn off all classes except the active class and none. I have become addicted to ArchiCAD's "quick-layer" pallette and will try and build the same for Vectorworks.... Thanks in advance! Quote Link to comment
MullinRJ Posted February 28, 2004 Share Posted February 28, 2004 Hi Zero, Try this to set the active class: code: procedure PickClass; VAR ObjH :Handle; X, Y :Real; BEGIN GetPt(X, Y); ObjH := PickObject(X, Y); if (ObjH <> nil) then NameClass(GetClass(ObjH)); END; Run(PickClass);[/code] Quote Link to comment
Petri Posted February 28, 2004 Share Posted February 28, 2004 quote: Originally posted by MullinRJ: Hi Zero, Posted by the Self-appointed Non-modal Editing Advocat: You wanted to say NameClass(GetClass(FSActLayer)); No variables, just one line of code, with object-verb syntax. Beeewdiful! [ 02-28-2004, 05:32 AM: Message edited by: Petri ] Quote Link to comment
zero Posted February 28, 2004 Author Share Posted February 28, 2004 ah indeed it does; "Creates a new class in a VectorWorks document, which then become the active class. If the specified class already exists, then it will become the active class of the document." thanks people! Mat Quote Link to comment
matto Posted February 29, 2004 Share Posted February 29, 2004 now if only we could make that a button. 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.