I3erk Posted October 26, 2008 Share Posted October 26, 2008 I want to know what script or code i can use in order to make a rectangle similar to that of the " basic rectangle tool". this basic rectangle tool creates a rectangle using the one point (corner) and its opposite point (corner). so i would like to know how to write a code that can create a rectangle in this way. Quote Link to comment
Pat Stanford Posted October 27, 2008 Share Posted October 27, 2008 The Vectorscript command is: Rect(X1,Y1, X2,Y2); Where X1 is the X coordinate of the first corner, and Y1 is the Y coordinate of the first corner. X2 and Y2 are the coordinates of the second corner. You can pick any one of the corners to be the first corner and go in any dirtection from there to the second corner. Pat Quote Link to comment
Miguel Barrera Posted October 27, 2008 Share Posted October 27, 2008 If you are also looking for a way to get the corners from the user, then you may also need: CallTool(toolID: INTEGER); or create a rectangular plug-in object. Quote Link to comment
I3erk Posted October 27, 2008 Author Share Posted October 27, 2008 thanks guys. 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.