Trusted DWG

Trusted DWG

BFane
Contributor Contributor
1,085 Views
2 Replies
Message 1 of 3

Trusted DWG

BFane
Contributor
Contributor

I have several thoussand drawings that need certain actions performed on them. I have a script that opens each file in turn, loads a Lisp routine that performs the desired actions, closes trhe current one, and moves on to the next.

So far so good. My problem is that I don't want to perform certain actions on drawings that aren't from a "trrusted source." Is there any way for a Lisp routine to determine if a drawing is "trusted" after it's opened?

I know DWGCHECK turns trusted checking on and off, but that's not what I want. I also know that the status bar shows a suitable "trusted/not trusted" icon. Is there a readable system variable that controls this?

 

Thanks

 

Bill

0 Likes
Accepted solutions (1)
1,086 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

Hey Bill!

 

Not that I have been able to find.

 

The DWGCHECK does not appear to have any variables that include NOT opening the file, but that is not to say that you might be able to run down an external program that could do that for you.

 

Hopefully, some of the more proficient/experienced Lisp programmers out there have run into this problem and know of a solution.

 

If you find or create something, make sure you post it. It seems to me that functionality would be very valuable, esp. for those of us who work with users who aren't careful what CAD programs they use.

0 Likes
Message 3 of 3

BFane
Contributor
Contributor
Accepted solution

Hi!

 

I managed to cobble up a solution unique to my situation. It turns out that all the "not from trusted" drawings contained the same block definition, unique to them. A quick look at the BLOCKS table let me filter them out.

 

Thanks

 

Bill

0 Likes