Script / LISP to create layouts from cross sections

Script / LISP to create layouts from cross sections

bittersmann
Participant Participant
2,555 Views
5 Replies
Message 1 of 6

Script / LISP to create layouts from cross sections

bittersmann
Participant
Participant

Hey 🙂
I am new to LISP / scripting in ACAD, so I hope I can find some help here.

I got many files where I have many cross sections and it is needes to create a layout for each of those.
Good thing, they all have the same size and the same space betweeneach of them 🙂

I hope someone can help me get rid of this annoying problem to copy/paste and _pan them all  🙂

0 Likes
2,556 Views
5 Replies
Replies (5)
Message 2 of 6

Sea-Haven
Mentor
Mentor

Using software like Civil Site Design the cross sections would be produced on a individual layout as requested, no conversion required. 

 

Can it be done yes, but a bit of coding, need to look for Profil-nr and then get sheet number in correct order, making a new layout is pretty easy 1 line of code. Would start with the relationship of "Profil-nr" and the 2 corner points so a window select could be carried out. Was each section originally enclosed within a title block ? Would make life much easier. 

 

SeaHaven_0-1644196492891.png

If something was done need a title block for the layouts or correct size and scale. The sheet is 0.28 long ??? Should the dwg be scaled 1st to each section 280mm a A4 sheet. Makes life easier again.

0 Likes
Message 3 of 6

maratovich
Advisor
Advisor

No problem, use this - AutoViewport 

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
0 Likes
Message 4 of 6

bittersmann
Participant
Participant

Thx, hmm what is Civil SiteDesign, since we are working with Civl 3D and the whole package maybe I can installthis ^^
Hmm the profi nr are no title blocks 😞
BUT would it help that the softwre we get the sctions from, Always use the same pattern in delta x and delta y and always do it in 3 collums and x rows 🙂 ?

I thought about somehting like:
input x and y of the first section AND the number of cross sections so it can walt through communs and rows and just print them in layouts 🙂 ?

(and I never coded in LISP 😞 )

And thax you too, I gona look atthose 2 tools 🙂

0 Likes
Message 5 of 6

hak_vz
Advisor
Advisor

@bittersmann 

Why you need your sheets placed in different layouts. Is only printing a problem?

When working with sections I prefer to have it all placed in model space, and print out of it. There are situation when you have to make changes and layouts are not so practical. What if your boss tells you to interpolate some sections between?

 

Regarding your drafting, I would scale it all by factor 1000 and print it out in ratio 1 : 1. Assuming 1 mm = 1 m there is no need for scaling. It is much easier to work then and make changes and you don't need to to recalculate.

 

Check scaled file in attachment.

If printing is a problem I'll point you to solution that works out of model space using named plots, simple to use and without any charge (Lol). You may also learn some autolisp.

 

 

 

 

Miljenko Hatlak

EESignature

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
0 Likes
Message 6 of 6

Sea-Haven
Mentor
Mentor

We use CIV3D and Civil Site design which has the option of create layouts for cross sections, or even another dwg. The dwg appears metric so we would use a A3 company title block, this would allow say 4 cross sections per sheet, a A1 would contain a lot more. 

 

Re Hak_vz want more sections not a problem there is a table etc so can add random sections at chainages or at spacing between chainage range press the plot button and all new layouts are made. Can be done at any time.

 

 

0 Likes