RBrigido Posted December 22, 2023 Posted December 22, 2023 Guys, I want to create a lisp routine that creates a GRID format, where the height between the horizontal lines is 2.00m and the vertical lines are 5m apart each. Below I put an image to use as a model to follow. Any idea? Quote
BIGAL Posted December 23, 2023 Posted December 23, 2023 (edited) There are so many GRID examples out there that you could start with Google "GRID autocad lisp". Edited December 23, 2023 by BIGAL Quote
Nikon Posted December 25, 2023 Posted December 25, 2023 (edited) You can use an array... or this lisp GRID.lsp, author VVA... Array.dwg GRID.lsp Edited December 25, 2023 by Nikon Quote
RBrigido Posted January 16 Author Posted January 16 Hi guys, Thanks for your contributions. This made me think in other ways and I ended up creating my own model. I am making it available below for anyone interested in using it. Many thanks, Rodrigo Brigido. RULER.lsp 2 Quote
BIGAL Posted January 16 Posted January 16 (edited) Just me I would make all the layers in one go just run at start, using a (foreach lay lays, the lays list has the name color linetype etc for each layer. Then entmake. So your "create line" does not need to check for a layer every time a line is drawn. You can use (setvar 'clayer yourlayer) to set correct layer. Same with text style (if (= mystyle nil) (make the style)) where mystyle is the name of your style. This way its not ran every time you add a grid. Good to see having a go, you get more help if you try coding 1st. Edited January 16 by BIGAL 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.