Welcome to the COE Discussion Forum! 

 

To participate in the discussion forum, you must be logged in to the website.  If you forget your login information, please contact COE Headquarters at coe@coe.org or (800) 263-2255.

If you are new to the COE Discussion Forum and would like to participate, please register.


Register Today
COE 2009 Annual PLM Conference & TechniFair

COE DISCUSSION FORUM
Subject: How 2 update tree of documents? (+)

You are not authorized to post a reply.   
Author Messages
COE-FORUM-USER

12 Jul 2002 03:05 AM
I made a script which changes attributes of selected object. After performing the script I need to refresh screen. I tryed to use OPERATION_NAME="UPDATE" (and changin' other attributes) in RecLst3 but this does not work.

So here is a question: how to automaticly refresh the screen?

Thanx beforehand

Adios amigo(s). Vladislav Skoupski, lead programmer in JSC Sukhoi Civil Aircraft (Moscow, RUSSIA)

Author: Vladislav Skoupski
COE-FORUM-USER

30 Jul 2002 12:04 PM
Vladislav, try using the ISmView.Refresh method. For example:


Dim smGUIView As SmGUISrv.ISmView

Dim SmSession As SmApplic.SmSession

Dim GUISrv As SmGUISrv.SmGUIServices


 


Set SmSession = SCREXT_ObjectForInterface(ApplHndl)

Set GUISrv = SmSession.GetService("SmGUISrv.SmGUIServices")

Set smGUIView = GUISrv.ActiveViewWindow.SmView



...<code to update attributes>...



iRet = smGUIView.Refresh(rfaUpdate, smGUIView.Selected.Objects, False)



Author: Jay Imerman
COE-FORUM-USER

31 Jul 2002 01:58 AM
Jay, it's not working. Return code equals 0 but...

Author: Vladislav Skoupski
COE-FORUM-USER

08 Aug 2002 10:29 AM
I think the RetrieveFromDatabase parameter should be True, not False -- try this:

iRet = smGUIView.Refresh(rfaUpdate, smGUIView.Selected.Objects, True)

There is a good example in the COM API Reference Guide under SmGUISrv.ISmView.Refresh (or at least the API Guide version I have, which I downloaded recently from SmarTeam's support downloads).

Author: Jay Imerman
COE-FORUM-USER

12 Aug 2002 02:02 AM
It's do not work also :) Maybe something wrong with me? :) I don't found SmGUISrv function in my SmarTeam API Programmer's Guide...

WBR...

Author: Vladislav Skoupski
COE-FORUM-USER

13 Aug 2002 03:40 PM
Hi,

I would try downloading the latest API documentation from support.smarteam.com. It is located under "Downloads->Documentation->API Documentation" A new version was just released this month.

-James

Author: James Carr
COE-FORUM-USER

14 Aug 2002 01:42 AM
I don't have access to that page :(. Maybe you can send me that file? Thanks beforehand.

Author: Vladislav Skoupski
You are not authorized to post a reply.
Forums > COE Forums > SmarTeam > How 2 update tree of documents? (+)



ActiveForums 3.6

    

401 North Michigan Avenue, Chicago, IL 60611-4267 | (312) 321-5153 | (800) COE-CALL (U.S.)