• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

file review

  • Thread starter Thread starter JMT
  • Start date Start date

JMT

Guest
Good morning to all,

I hope this is the part of the right forum otherwise I apologize in advance.
I have autocad files containing standard component blocks and I would need to be sure that the user always open the latest version of those files.
for excel files I exploited the open workbook event and I go to check the rev index written within a txt file; in autocad it is possible to do something similar?

Good day to all

 
Immagine 2021-03-05 134113.webpevery activation of the dwg generates the event, hooks you up with your routine as with the excel.
 
perfect, thank you very much, in excel I wrote the value of the revision even in a cell and then compare it to the one written in the txt.
 
1 - thisdrawing.setvariable "users1", "test"
2 - strvalore=thisdrawing.getvariable("users1")

with the first write, the other law, at the closure of the file the value is deleted.

or

1 - thisdrawing.setvariable "userr1", 1.0
2 - dblvalore=thisdrawing.getvariable("userr1")
Write and read a double-precision number, saved in the dwg.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top