Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic System Architect (steve huntington)
Decrease font size
Increase font size
Topic Title: Batch upload of reference documents
Topic Summary:
Created On: 31-May-2007 15:18
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 31-May-2007 15:18
User is offline View Users Profile Print this message


Mohamed Shajid

Posts: 6
Joined: 15-Aug-2006

Hey Guys,

Has anybody managed to put a macro together for uploading multiple reference documents instead of having to go through them one by one?

Thanks in advance,

Mohammad
Report this to a Moderator Report this to a Moderator
 4-Jun-2007 12:32
User is offline View Users Profile Print this message


SA Team

Posts: 148
Joined: 18-Nov-2005

Hi

Here is the basis of some code to add references to a definition.
It is sample code, so you will need to modify it to do exactly what you want.

To use it :-
1. It is best to test with an empty encyclopedia
2. Create a macro project and put this code in a module
3. Create 2 text files on you D drive root directory called :-
    temp.txt
    temp2.txt
(or change the names in the source code)
4. Run the macro 'RunTest'
5. Refresh your browser and look in 'Definitions' - 'Description' for a new definition called 'Test1'
6. Open the definition and you should see 2 Reference Documents.

Note this macro does not cope with importing the same document more than once.
And it will only run once, unless you delete the definition it creates.

As I say this shows you the code you need to use, but would need finishing before it can be used for real.

Hope this helps
Ian

-------------------------

Senior Software Developer
Telelogic UK Ltd.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic System Architect forum.
There are currently 1 users logged in.
The most users ever online was 16 on 30-Oct-2008 at 14:46.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.