Refresh

Refresh

Anonymous
Not applicable
336 Views
2 Replies
Message 1 of 3

Refresh

Anonymous
Not applicable
On the code Patrick Posted for Steve, (system date and time to a custom property) I
have tried

ThisApplication.ActiveDocument.Update
ThisApplication.ActiveView.Update

but neither seem to redraw the screen to show the new time and date after the
program is run. I know they are updating because if I manually edit something after
running the program they will then show the right date and time.

So is there some other update or some sort of redraw / refresh in Inventor IDW's or
??

--
Kent Keller
http://kwik-mcad.scriptmania.com/
0 Likes
337 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
I have had the same problem with custom properties. I ended up using the
system properties for my custom. Category = Stock Number etc. At least
this way they update correctly. If there is a way to update the custom I
would be interested in it too.

Kathy Johnson


"Kent Keller" wrote in message
news:FA234FFBE985D5910DA753B818FBCA50@in.WebX.maYIadrTaRb...
> On the code Patrick Posted for Steve, (system date and time to a custom
property) I
> have tried
>
> ThisApplication.ActiveDocument.Update
> ThisApplication.ActiveView.Update
>
> but neither seem to redraw the screen to show the new time and date after
the
> program is run. I know they are updating because if I manually edit
something after
> running the program they will then show the right date and time.
>
> So is there some other update or some sort of redraw / refresh in Inventor
IDW's or
> ??
>
> --
> Kent Keller
> http://kwik-mcad.scriptmania.com/
>
>
>
0 Likes
Message 3 of 3

Anonymous
Not applicable
Kent Keller wrote:
>
> On the code Patrick Posted for Steve, (system date and time to a custom property) I
> have tried
>
> ThisApplication.ActiveDocument.Update
> ThisApplication.ActiveView.Update
>
> but neither seem to redraw the screen to show the new time and date after the
> program is run. I know they are updating because if I manually edit something after
> running the program they will then show the right date and time.
>
> So is there some other update or some sort of redraw / refresh in Inventor IDW's or
> ??
>
> --
> Kent Keller
> http://kwik-mcad.scriptmania.com/

It appears to need to be refreshed to show the date and time when the
macro was run. A simple way, short of the non-existent regen or refresh
is to Minimize and then Maximize the window. But there still is the
problem that the date/time that is displayed when a new fresh .idw comes
in appears to be the date that the macro was run prior to the new
drawing being brought in. In other words when somebody goes to open a
new template .idw on 11/15/01 they see a date of 11/14/01 when I entered
the macro - until they run the macro -and min/max the window.

Ideally it would behave like this:

Open a New template and it puts the current date/time in it. Doing a
Save or Save Copy As the drawing and it puts a new current date/time in
it. Print would ask "do you want to update the date/time?" before it
is printed, so that if you just opened the drawing to print it and did
not save it, it would print the time that it was last saved.

Steve
0 Likes