Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Call and control DOORS Import from CSV function
Topic Summary: Is it possible
Created On: 14-Dec-2006 21:04
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
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.
 14-Dec-2006 21:04
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Is it possible from another DXL script, to call and control the File -> Import -> Spreadsheet... script?

What I'm trying to do is automate a task.  Instead of having to write my own importer or slowly modify the available one, I just want to do some tasks in DXL, call the importer and run it (picking the options I want), then do a few other tasks.  I just need to specify the file name and pick the "create new objects" option, then hit the Import button.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 18-Dec-2006 20:11
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

Yes, it's possible. If all you're looking for is a quick hack (for only you), it can be pretty simple:

  • Make a copy of the script (it's at ...lib\dxl\standard\import\commas.dxl) and comment out the stuff that makes a GUI (here just the last two lines will work)
  • Change the function that the "Import..." button calls (impSprParseCB, at least in DOORS 7.1) to take a filename rather than a DB, and give the other options the values you need
  • #include your copy in your other script
  • Call the function whenever necessary

    There's probably other stuff that references the dialog box that you'll need to remove, but it'll become apparent when you try it out.


    Chris


    Edit: I see from another post that you already figured most of that out . Guess I should "look before I leap" next time....

    Edited: 18-Dec-2006 at 20:14 by Chris Jones
  • Report this to a Moderator Report this to a Moderator
    Statistics
    20925 users are registered to the Telelogic DOORS forum.
    There are currently 2 users logged in.
    The most users ever online was 15 on 15-Jan-2009 at 16:36.
    There are currently 0 guests browsing this forum, which makes a total of 2 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.