Jump to content

Creating a GRID (Ruler) with Lisp


RBrigido

Recommended Posts

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?

 

image.thumb.png.a463a115f84f5a1225a3fccfc2846278.png

Link to comment
Share on other sites

  • 4 weeks later...

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

  • Like 2
Link to comment
Share on other sites

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 by BIGAL
Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...