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: where the variable "Start Link" is saved
Topic Summary: I want a short DXL associated to shortcut Ctrl-J, which will be equivalent to "Make Link from Start"
Created On: 31-Jan-2007 21:18
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.
Answer This question was answered by Marc-Alain Simard, on Wednesday, January 31, 2007 10:10 PM

Answer:
Thank you, this is exactly what I was looking for.
 31-Jan-2007 21:18
User is offline View Users Profile Print this message


Marc-Alain Simard

Posts: 7
Joined: 31-Jan-2007

Dear somebody,

Went I want to link two objects I press Ctrl-i on the source object to perform the task of "Start Link". I like to use shortcut, so on the other side, on the target object, I would like to be able to use an other shortcut, let us say Ctrl-j, to perform the final task "Make Link from Start".

The strategy is to make a short DXL script that perform this task, add the script within the "user" menu and associate the keyboard shortcut Ctrl-j to the script.

The problem arrives when writing the DXL: where the variable "Start Link" is saved. In other words, where the object unique identifier and its module identifier associated to the source object are saved when Start Link is applied to an object. It is certainly a Doors global variable. Is somebody knows how to call it and how to use it?

Marc-Alain Simard,
Requirement Engineer
CAE Montréal, Canada
514-341-6780 ext 6261

Report this to a Moderator Report this to a Moderator
 31-Jan-2007 21:44
User is offline View Users Profile Print this message


Shawn Stepper

Posts: 96
Joined: 6-Aug-2004

Here are two 1 line programs. I map "Make Link from Start" to Ctrl-J and "Clear Start" to Ctrl-Y. This makes it SO much easier to do linking! Sounds like you already know how to do the rest!

The only thing I couldn't figure out is how to detect whether a link has been started. If not, make link from start throws an error. You could probably use noError...

Shawn

-------------------------
Shawn Stepper
shawn.e.stepper@wellsfargo.com
Report this to a Moderator Report this to a Moderator
 31-Jan-2007 22:10
User is offline View Users Profile Print this message


Marc-Alain Simard

Posts: 7
Joined: 31-Jan-2007

Answer Answer
Thank you, this is exactly what I was looking for.
Report this to a Moderator Report this to a Moderator
 1-Feb-2007 13:31
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

There is no way in DXL to find out the object that is selected as the start object.
This means that you may cause a DXL error when attempting to make a link rom start with no start object seleted.

This also means that there is no easy way to control the grey-out behaviour of the menu option "Make link from Start".

What you can do is surround the call to make the link with noError...lastError and then report to the user if no start object has been selected.


string res = ""
noError
callStdItem_(linkCompleteFromItem)
res = lastError
if (!null res)
{
infoBox("No start object selected!")
}

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 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 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.