New drawing?!

New drawing?!

Anonymous
Not applicable
205 Views
1 Reply
Message 1 of 2

New drawing?!

Anonymous
Not applicable
Hi,

I'm programming with VB.NET and COM and I need a way to see, when a users saves a drawing, if the drawing is a newly created one.

When I check the command that is send when saving a new drawing, when I press the save button, it sends QSAVE, but then I don't see if it is a new drawing. It should have send Save As... or something... Is there a way to check this!?
0 Likes
206 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Check the document's FullName property.

If it hasn't been saved, it will be an empty string. If it has, it will be the full path and filename.

If ThisDrawing.FullName = "" then 'drawing has not been saved
'do what you want
End If

Mick.
0 Likes