Need Edit on AutoLISP ‌‌

Need Edit on AutoLISP ‌‌

duhanserkan
Participant Participant
4,320 Views
9 Replies
Message 1 of 10

Need Edit on AutoLISP ‌‌

duhanserkan
Participant
Participant

Hi all,

I am new in autolisp apps/scripts. My problem is I have multiple drawings in one layout only that includes many viewports on one specified titleblock. To print them all it takes too much time one by one, for solution I found that autolisp in the attachment but it does not work on DWG to PDF option, I can take pdfs only with secondary pdf plotters such as PDF Redirect. The reason that I want pdfs in DWG to PDF is I can not close the option of `plot object lineweights` with PDF Redirect or other secondary plotters.

I tried to edit lisp in visual lisp editor but whenever I load, it crashes auotcad. If you can tell me a program or fix my problem I would appreciate so much. 

Thank you all

0 Likes
4,321 Views
9 Replies
Replies (9)
Message 2 of 10

hak_vz
Advisor
Advisor

You can not edit DLL files in vlisp editor.  This is compiled file that is not editable.

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.
Message 3 of 10

duhanserkan
Participant
Participant

I have another file which is .lsp file and problem of that one is this lisp only works in model is there any way to work it on layout tab ?

0 Likes
Message 4 of 10

hak_vz
Advisor
Advisor

This file is vlx file i.e. compiled lisp file that can not be edited.

Attach your sample drawing and let us find solution to your problem. If you look through later post to this forum, you may find solutions posted to similar requests.

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 5 of 10

duhanserkan
Participant
Participant

Thank you for your help, I attached one of my drawing it has A3 layout tab working in my all drawings like that, this is one of smallest file that I have basically you can understand the drawing way.

0 Likes
Message 6 of 10

john.uhden
Mentor
Mentor

@duhanserkan 

I am having trouble understanding your methodology.

Multiple viewports in one layout tab that you want to plot separately?

Why not make a separate tab for each?  Then you can use Sheet Set Manager to publish all at once (or just selected tabs) and even to one multi-sheet PDF.  Also, that way each one has an identifiable name.  I am comfortable using the "AutoCAD PDF (Web and Mobile).pc3" even for 24x36 sheets.

John F. Uhden

0 Likes
Message 7 of 10

hak_vz
Advisor
Advisor

@duhanserkan As @john.uhden  suggested, best way to work with layouts is to have single drawing per layout.

I'll try to create a lisp that works for your scenario, in next few days.

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.
Message 8 of 10

duhanserkan
Participant
Participant

Thank you for your help hope we can find a solution anyway even appreciated for suggestions @john.uhden I wish man, I just joined this project in the mid period and the team was worked in that way and I could not change it, nowadays the issue is printing as I predicted will be hard. I also thought to separate it layout tabs but there are too many drawings like I can say in one drawing it has sometimes 30 40 viewports and it works slowly, on the other hand also wanted to learn that lisp things to used to it. Thankss

0 Likes
Message 9 of 10

Sea-Haven
Mentor
Mentor

Just a comment or 2.

 

88 layouts each with one title block in one of my drawings.

Just use a lisp and it plots all 88 in one go, speed well if you blink you may have missed it plotting a layout. 

 

Problem of going to which layout, had a index sheet at layout 1 so then would use GOTO to jump to any layout. Lisp provided below. The trick was "goto 1" which had the index. Goto 0 is model. The drawing index took a few seconds as it was generated by reading the title block in each layout. 

 

Also below is plotpdfrange.lsp both need multi getvals.lsp to work.

SeaHaven_0-1646189616866.png

 

You can convert your existing dwg to 3 layouts just use Layout copy 2 more times and delete unwanted layouts. My auto plot expect title block to be at 0,0 so would need to move wrongly located blocks. Ps have a move all layouts to 0,0 for just this mishap. 

 

Message 10 of 10

sHubamyadav016
Enthusiast
Enthusiast

can i get lisp code of above given file

0 Likes