Jump to content

Wblock Etransmitted archive


samifox

Recommended Posts

hi

 

i want to establish a program that will

 

1.open a zip archive to a temporary folder

 

2.for each dwg

#perform wblock on file.dwg

#save to the same location file_wb.dwg

#delete file.dwg

#rename to file.dwg

 

3.add it all to archive archive_wb.zip

 

i would start working on that,

want to make sure if something like this already exist? or some part of it

 

Thanks

S

Link to comment
Share on other sites

  • Replies 22
  • Created
  • Last Reply

Top Posters In This Topic

  • samifox

    10

  • maratovich

    9

  • BIGAL

    4

Top Posters In This Topic

Posted Images

1 pretty sure there would be a windows command line syntax for uzipping a file to a known directory

 

2 using a bat file can start Autocad and start a script that calls a lisp

 

3 last line of script would do the same as item 1 but in reverse make a zip

 

Lastly a quick google http://kb.winzip.com/kb/

Link to comment
Share on other sites

it might seems that i were looking for a copy-paste program and that all,

well i would be happy if someone already thought about it and made it available ,

but im happy also if there are some resource to help me accomplish the script as quickly as possible

 

about your suggestion , ive read an article doing this way, but i thought to make something more friendly so everyone can use easily

 

Thanks

S

Link to comment
Share on other sites

The length of the code will be more than 100 lines, this is a long time to do.

+ Debugging problems - AutoCAD requests, additional conditions.

here it is necessary to make .exe program

Link to comment
Share on other sites

maratovich I disagree you can use startapp to run the zip bit at start, the wblock 2-3, lines save 2-3 lines, close 1 line delete use vla-delete 1 line, rename vla-rename, use startapp again to make a new zip.

 

I do stuff within autocad using an external program called from a lisp, you sees a srceen pop up but it closes once finished. Yes you would need to write a script but you would run a lisp repeatedly for the steps.

 

not proper code but idea
(setenv dwgname "dwgname1")(load doall) ; do all uses getenv dwgname
(setenv dgwgname "dwgname2")(load doall)

 

Samifox you need to look at the wblock bit what do you want to export out use _.wblock it prompts for answers etc in a lisp.

 

; you need to download a unzip program
(startapp "c:\\program files\\xx-zip\\zzz x c:\\temp\\project2.zip -oc:\\temp\\ziptest")

Edited by BIGAL
Link to comment
Share on other sites

maratovich I disagree you can use startapp to run the zip bit at start, the wblock 2-3, lines save 2-3 lines, close 1 line delete use vla-delete 1 line, rename vla-rename, use startapp again to make a new zip.

BIGAL You have intrigued me.8)

This is a matter of principle.:D

8 hours of work was spent.:(

This picture .gif, the big size here does not show, save on the computer.

ZipWblock.jpg

ZipWblock.zip

Link to comment
Share on other sites

Hi maratovich my virus checker is blocking your program (Norton) so could not have a look at it.

 

You are right about the time though I spent around 5 hours trying to change some code I found to make it simpler, gave up, spent 1hr using original code and now it works.

 

What samifox wants can be done it is his turn to try what you have posted.

Link to comment
Share on other sites

Hi maratovich my virus checker is blocking your program (Norton) so could not have a look at it.

Your antivirus is developed on the Symantec engine (Norton), and Norton accepts by default any unknown file as a virus.

I personally contacted the developers of this engine three times and they all swore to me three times to add the program to the whitelist.:(

The basis of this antivirus is the white list, the rest is the virus.

And if I finalize the program and lay out a new version of the antivirus again will swear because. The file size will change.

Moreover, such an antivirus works only in 50% of cases as a virus.

All programs are checked by Kaspersky and Doctor Web, as well as the permanent scanner Dr. Veba on the server.

Simply manually add the program to the antivirus white list.:)

 

If you want to send the file to the developers of the antivirus - they will check and say that everything is clean, but their list will not be fixed.:x

Link to comment
Share on other sites

BIGAL You have intrigued me.8)

This is a matter of principle.:D

8 hours of work was spent.:(

This picture .gif, the big size here does not show, save on the computer.

 

WEll done:)

 

friend before runing this fantastic program please remove student stamp

Link to comment
Share on other sites

when autocad drawing was last saved with educetional version of autocad , a warning is popup when opening the drawing, this dialog box is enxpected by your program

Link to comment
Share on other sites

I'm using 2014.

I still do not know how to suppress the window when opening it.

 

you dont. the only thing you can do to suppress this massage is to convert the archive with TrueView 2016+.

Link to comment
Share on other sites

you dont. the only thing you can do to suppress this massage is to convert the archive with TrueView 2016+.

No. Necessary:

-open .dwg

-save as .dxf

-open .dxf and save as .dwg

Then this record will not be.

But this must be done by hand.

Link to comment
Share on other sites

No. Necessary:

-open .dwg

-save as .dxf

-open .dxf and save as .dwg

Then this record will not be.

But this must be done by hand.

 

have you tried that?

Link to comment
Share on other sites

Why do not you believe us?

Of course we did.

 

its being long time ago i investigate after that stamp and the only solution was to convert.

 

glade to know there is another way

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...