Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to create automatic layouts

114 REPLIES 114
SOLVED
Reply
Message 1 of 115
Anonymous
33755 Views, 114 Replies

How to create automatic layouts

Hi Everyone,

 

Please help me to create automatic layouts for the attached drawing

 

Also request you to please provide me the LISP/FAS file.

 

The attache dwg is simple drawing. But i have 200 grids in some cases.

 

Please help on this.

 

Thank you in advance. 

114 REPLIES 114
Message 21 of 115
ronjonp
in reply to: maratovich

That's quite the program!

 

I was only referring to the sample sheet the OP provided on tab 'X-XXX-X which is 11x17 paper size.

 

Message 22 of 115
Anonymous
in reply to: ronjonp

Hello guys.

Where can i find the source? Still looking for a solution by witch the blocks in modelsapce are in a angel and in the layout the viewpor should stand stright up. Is that difficult to create?

 

Regards

Message 23 of 115
maratovich
in reply to: Anonymous

Have you watched several of our posts before?
You ask what I described?
Maybe we can do it.
Give us an example of your .dwg file and an example of how it should work out.

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
Message 24 of 115
Anonymous
in reply to: maratovich

Sorry did not read properly. But here is an example from a drawing.

The block has three attributes where the name('s) for the layout is given.

 

Regards Henk 

Message 25 of 115
maratovich
in reply to: Anonymous

You can only do this for flat rectangles. Rotated ones are not created.
An example of how to do the video. Names by the attribute of the block.

 

 

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
Message 26 of 115
ronjonp
in reply to: Anonymous

It would be much easier if your block was defined as a 1x1 unit square. Then the X an Y scale could be set to the sheet size. Also put the insertion point in the center of the box. From that you have all the information to make a view that matches.

image.png

 

 

Message 27 of 115
Anonymous
in reply to: ronjonp

Thanx for the reply.

I will replace the insertpoint to teh center of the block.

The second thing is that the size off the viewport has the same size of the block. I only used the example drawing of the earlier post Trail2.dwg.

No need for a frame on the paperspace even the scale may be the same as in modelspace 1:1.

So only a paperspace whit a (rotated UCS) viewport would be nice.

 

Regards Henk

Message 28 of 115
Anonymous
in reply to: Anonymous

And of course a new sample drawing 

Message 29 of 115
vishwa0121
in reply to: ronjonp

Thank you very much for your effort. its really useful but still i am facing some issues

1) i am facing trouble in Scaling factor.

2) and also title block is missing wen layout creates.

is it possible to modify as per above requirements?

 

Regards

vishwa

Message 30 of 115
dani_cs
in reply to: lando7189

Hello  lando7189,

 

I am very interested in a lisp like that. I tried it but I could not run it. My idea is to use blocks (they will be the Viewports of each layout) alligned to a line and when I run the lisp, it will make all layouts with the ucs of all blocks

 

Best regards,

Daniel.

Message 31 of 115
maratovich
in reply to: dani_cs

There are several solutions. Watch the video.
Ask a specific question.

Add your example here.

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
Message 32 of 115
dani_cs
in reply to: maratovich

Hello maratovich

 

I have been looking for a routine able to do this many time. I have a road axis and 188 blocks (viewports) allign to it by the mid point. But making all layouts one by one it's a waste of time. So do you know a routine able to make all layouts automatically with the configuration of a template tab, and orientated to the respective UCS viewport?

 

Look at the example and I expect you understand my question. 

Best regards,

Daniel.

Message 33 of 115
ronjonp
in reply to: dani_cs

What scale are you working at? 01 >> Scale: 2.0691 >> Twist: 0.0 .. that is an odd scale

Message 34 of 115
ronjonp
in reply to: dani_cs

See attached ... made from sample drawing. That drawing has an educational stamp BTW.

Message 35 of 115
dani_cs
in reply to: ronjonp

Hello  rperez,

 

Yes I know it's a odd scale. I did it very quickly hehe

Message 36 of 115
dani_cs
in reply to: ronjonp

 Hello rperez,

 

I dit it at home with educational autocad, yes.

 

I saw attached, and that's I am looking for. I think you used a lisp or another software, aren't you?

It would be perfect for me.

 

Best regards,

Daniel.

Message 37 of 115
ronjonp
in reply to: dani_cs

If you refer to THIS post there is a code base to make these layouts. Then all you have to do is apply the logic from THIS post and you have a solution.

Message 38 of 115
dani_cs
in reply to: ronjonp

Hello,

 

I tried it many times and I could not run it. That's the reason I posted on here again. Thanks for your effort.

 

Regards.

Message 39 of 115
Anonymous
in reply to: lando7189

Hi

 

 

Message 40 of 115
maratovich
in reply to: Anonymous

The decision will be in 2-3 days.

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report