Nikon Posted 6 hours ago Posted 6 hours ago (edited) Good day everyone! I've discovered new (old?) the possibilities of a true rectangle. It is very convenient to work with him! The only drawback is that the rectangle is unstable. You can create it and work with it only in the current file. If you then close and open this file, the properties of the true rectangle are lost. Is it possible to make it stable so that its properties are preserved? https://autocadtips1.com/2011/11/20/autolisp-make-a-real-rectacgle/ AutoLISP: Make a Real Rectangle Posted on November 20, 2011 by AutoCAD Tips A long time ago, AutoCAD used to make Rectangles and polygons as their own entities. When you made a rectangle and then did a LIST <enter> on it, it would show as a rectangle. Nowadays, these objects are those objects in their geometry but are made of polyline entities. So modifying these objects is sometimes hard. that’s where this routine steps in to help. This routine lets you create a rectangle and even after you continue working elsewhere in your drawing, you can come back to that rectangle and modify that object and it acts like how rectangles used to act in AutoCAD. Here’s how: TREC <enter> to start “True RECtangle” Create a rectangle how you normally create one When needed, this routine will let you drag a single corner and the rest of the rectangle’s geometry will adjust accordingly to keep its geometry as a rectangle. TrueRect.lsp Edited 6 hours ago by Nikon 1 Quote
GLAVCVS Posted 1 hour ago Posted 1 hour ago Hi Nikon It seems your code is simply performing a scroll. You don't need Lisp to do that. Simply, select the grip and press the spacebar. Quote
GLAVCVS Posted 1 hour ago Posted 1 hour ago (edited) Ugh I think I watched your video too fast. I haven't had much time to do anything slowly lately I believe object reactors only survive the current drawing session. You must consider that the reactor was created relative to an object name, and object names change between drawing sessions. Edited 1 hour ago by GLAVCVS 1 Quote
Nikon Posted 54 minutes ago Author Posted 54 minutes ago It is a pity that there is no creation of a true rectangle in autocad itself! Quote
Lee Mac Posted 33 minutes ago Posted 33 minutes ago 20 minutes ago, Nikon said: It is a pity that there is no creation of a true rectangle in autocad itself! It can be done, but it requires creating a custom object using ObjectARX (C++). Quote
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.