buz Posted July 18, 2002 Share Posted July 18, 2002 Is there any way to set this up? Just full of questions aren't I - 8-) tfyh Buz Quote Link to comment
Guest Posted July 19, 2002 Share Posted July 19, 2002 You could use the Workspace Editor and assign a shortcut keystorke for the 2 menu items. Please refer to the User's Guide for information on how to use the workspace editor if you are not familiar with it. Quote Link to comment
buz Posted July 19, 2002 Author Share Posted July 19, 2002 Looks like I get to take my first plunge into the workspace editor with two assignments - :-) BTW - is it possible to assign a 'toggle' type key stroke - same key to switch back and forth? Quote Link to comment
Guest Posted July 19, 2002 Share Posted July 19, 2002 With commands there is no way to toggle a command on or off like you can plug-in buttons. With Lock and Unlock you would assign a shortcut to each of them. Quote Link to comment
buz Posted July 19, 2002 Author Share Posted July 19, 2002 Ok - thanks - turned out to be pretty simple too. Quote Link to comment
matto Posted September 27, 2002 Share Posted September 27, 2002 would make a nice plug in tool except for a small problem in vectorscript i can't find a way to quiery if an object is lock or unlocked. but it must be in there somewhere??? Quote Link to comment
Guest Posted September 27, 2002 Share Posted September 27, 2002 You might want to post this over in the VectorScript section of hte board. Someone over there might be able to assist you. You can always email your question to vs_support@nemetschek.net. Quote Link to comment
MullinRJ Posted September 27, 2002 Share Posted September 27, 2002 This has come up several times before. Though there is no direct way to query VS for the Locked attribute, you can use the following function to get the answer. The concept is, if it moves, it's unlocked. Function IsLocked(Hnd: Handle) :Boolean; { Determine LOCKED? by moving object, if it does not move it is locked. } VAR x1, y1, x2, y2, x3, y3 :Real; Begin GetBBox(Hnd, x1, y1, x2, y2); { Get position in (X1, Y1) } HMove(Hnd, 1, 0); { try to move it } GetBBox(Hnd, x2, y2, x3, y3); { Get new position in (X2, Y2) } HMove(Hnd, -1, 0); { if it moved, move it back } IsLocked := x1 = x2; End; { End IsLocked } HTH, Raymond 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.