CONVERTPSTYLES converts the drawing to use named plot styles that can be applied to objects or layers independent of color assignment. In other words, all objects with the same color can have different plot properties. You could use Lee-mac scriptwriter and run it all from inside Autocad, also use in a lisp FINDFILE and write a script so.
![]() ![]()
This script works well if all the files in folder has the issue of missing plot style. If any one file is not having this issue, then the script stops. I noticed that the CONVERTPSTYLES is having two different responses and if the file does not have any issue, then it pops-up different window causing my script to stop.The first image is the normal pop-up and once okayed. Command closes for the problematic files (works perfectly).Second image is the additional pop-up looking for some files when the file is having no issues.Any suggestions.
Thank you ripuz.Your suggestion worked for me. Now when I run this script, it goes smooth and no stopping whatsoever.One more thing I learned about lisp today. I was under impression that LISP file must contain DEFUN but I was wrong.Got one question on the batch file though.
![]()
Currently I'm using below code for the batch file. I copy all my files-to-convert into this folder and run the utility. Is it possible to allow for selection of the folder so that I dont have copy/paste drawings to this folder? Or should I change the folder name inside batch each time? Just want to know how others do this?Also, how to add multiple folders so that I can run this on say five different folder.And if possible, can someone describe the functions listed under the batch code.FOR%%V IN (C:Myfolder.dwg) DO start 'T' /w 'C:Program FilesAutoCAD 2008acad.exe'%%V /b 'FIXPSTYLE.scr'.
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |