Need Lisp to draw the grid and coordinates of the map sheet

Need Lisp to draw the grid and coordinates of the map sheet

Oliver_C3D
Advocate Advocate
11,606 Views
21 Replies
Message 1 of 22

Need Lisp to draw the grid and coordinates of the map sheet

Oliver_C3D
Advocate
Advocate

Hello Dears

I need a lisp grid and draw the coordinates of the map sheet in the image format below.
Thank you for your attention

Oliver_C3D_0-1649434696610.png

 

0 Likes
11,607 Views
21 Replies
Replies (21)
Message 2 of 22

Sea-Haven
Mentor
Mentor

I may have what you want but it works in layouts only, handles twisted ucs etc Co-ordinates are world.

 

 

0 Likes
Message 3 of 22

CADaSchtroumpf
Advisor
Advisor

Hello,

See this thread, if this can respond...

Lisp coordinate grid - from viewport

0 Likes
Message 4 of 22

Oliver_C3D
Advocate
Advocate

Hello @Sea-Haven 

Yes, I want to work on a model

That is, by running Lisp, it grids and coordinates

0 Likes
Message 5 of 22

Oliver_C3D
Advocate
Advocate

Hello @CADaSchtroumpf 

Unfortunately it did not work

0 Likes
Message 6 of 22

CADaSchtroumpf
Advisor
Advisor

I have also an another version: it's work's only in Model Space

The code use (grread) don't forget to move your cursor for see the dynamic bounding box

You have to be familiar with the options.
Press the option key only, do not enter !!!

 

0 Likes
Message 7 of 22

Oliver_C3D
Advocate
Advocate

Hello @CADaSchtroumpf 

By what order is it executed?
I wanted in Model space

0 Likes
Message 8 of 22

CADaSchtroumpf
Advisor
Advisor

@Oliver_C3D  a écrit :

Hello @CADaSchtroumpf 

By what order is it executed?
I wanted in Model space


In fact the DIM-GRID command is more intended for use in object space.
But the application is not locked, you can make a grid in the paper space (it is enough to be in this space before launching the command) but I do not recommend this use.
The grid will always be that of the general system of the space used.


It remains to be tested to become familiar with the part of setting up in dynamic assistance mode of the grid

0 Likes
Message 9 of 22

Oliver_C3D
Advocate
Advocate

Hello @CADaSchtroumpf 

I hope you are fine

I'm sorry, I think you misunderstood me.
I want to grid and coordinate in the model space like the image below.
In fact, after clicking on the model space, take the scale from us and then draw the grid and coordinates according to the size of the map Kadr.

Oliver_C3D_0-1649696179962.png

 

0 Likes
Message 10 of 22

Oliver_C3D
Advocate
Advocate

Hello

@CADaSchtroumpf 

@Sea-Haven 

My problem is still not solved unfortunately!

0 Likes
Message 11 of 22

CADaSchtroumpf
Advisor
Advisor

I cannot suggest another development.
I am attaching a video showing the process.
In the video we do not see the pressing of the keys that I do (respectively 'P' for the position of the frame, 'R' for the rotation of the frame and '-' to decrease the scale compared to that proposed by fault)
Will the video enlighten you on the manipulation to be carried out...?

0 Likes
Message 12 of 22

Sea-Haven
Mentor
Mentor

Very nice grid answer my $0.05 for paperspace matches a twisted viewport.

 

 

0 Likes
Message 13 of 22

Oliver_C3D
Advocate
Advocate

Hi @Sea-Haven 

thank you
I wanted like this lisp in the model space and that it only coordinates on the left and top side.

0 Likes
Message 14 of 22

Sea-Haven
Mentor
Mentor

Keep searching for grid.lsp you should be able to find 1 that is close and the 2 extra side of text could be removed, I know with mine do a left and right twice for hor and ver. Ie 4 sides.

0 Likes
Message 15 of 22

grabiel_peru96
Contributor
Contributor

Friend, could you share your grid lips?

Thanks in advance

Message 16 of 22

Sea-Haven
Mentor
Mentor

Try this.

 

 

0 Likes
Message 17 of 22

grabiel_peru96
Contributor
Contributor

Excellent, thank you very much

0 Likes
Message 18 of 22

gxz1135261742
Observer
Observer

Excellent lisp for grid. I have one question: how could I reverse the direction of Easting by lisp as shown on the second photos?

 

gxz1135261742_1-1737704975157.jpeg

gxz1135261742_2-1737704985219.jpeg

 

 

0 Likes
Message 19 of 22

Sea-Haven
Mentor
Mentor

You would have to change the orientation of the text, I remember took a bit of working out. Using the text insertion point resetting Lower left upper right etc. It is in the code. It may be just swap Lr & Lor for the E's and change (setq ang (+ ang pi))

0 Likes
Message 20 of 22

gxz1135261742
Observer
Observer

Thank you very much!!!

0 Likes