![]() |
Telelogic System Architect (steve huntington) | ![]() |
Topic Title: Batch upload of reference documents Topic Summary: Created On: 31-May-2007 15:18 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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. |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.