Jump to content

Checksum into dwg files


MACF

Recommended Posts

Hi all.

 

I need to do some lisp comand that runs inside my drawings, puting the CHECKSUM value of the drawing into the legend field. It is important that, every time I close the drawing, this command runs alone and update the checksum value into the legend field.

 

Please help me.

Link to comment
Share on other sites

Hi MACF, welcome to the forum.

 

Not entirely sure how you would go about creating the checksum value but the rest of the process would roughly be as follows.

 

1. Add persistent reactor on file open to validate the checksum value.

2. Add persistent reactor on file save/close to update the checksum value.

3. Create a dictionary within the drawing to store the checksum value.

 

Hopefully this will get you on your way to creating a solution.

Link to comment
Share on other sites

I will try to be clear.

 

I need to know if a drawing had some changes after the approval, in other words, some information that tells me if, for example, someone insert a simple dot on one text line. I tried to insert some fields (filesize will be great), but, like AutoCad seems to insert the completely date, every time I save the drawing, I got diferent information on file size, even if the drawing have no changes.

Link to comment
Share on other sites

I will try to be clear.

 

I need to know if a drawing had some changes after the approval, in other words, some information that tells me if, for example, someone insert a simple dot on one text line. I tried to insert some fields (filesize will be great), but, like AutoCad seems to insert the completely date, every time I save the drawing, I got diferent information on file size, even if the drawing have no changes.

 

That's pretty much what my first response is covering although it seems that you'd be better storing the last modified date.

Edited by SOliver
Typo
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...