Hi all,
There is an object linked out to another object. Now I have a need to get all the link properties of current object by DXL. But I don't find any help from DXL help manual. Is it possible to get link properties by DXL? If it is, could you show me a sample? My DOORS version is 9.2.0.3
I also attached a screen shot to clarify what I need.
Edward
Rational Publishing Engine
Edward_Wang - Fri Mar 18 03:57:27 EDT 2011 |
|
Re: How to get the link properties of object by DXL. llandale - Fri Mar 18 11:53:43 EDT 2011
Once you have a "Link" reference you can retrieve its attributes normally:
string LinkCreatedOn = lnk."Created on"
If you want to add your own custom link attributes, you must create those attributes in the LINK MODULE.
lnk."ObjectModifiedOn" = obj."Last Modified On"
Its confusing, but understand that the link VALUES are stored with the object that SOURCES the link, so in order to modify a link you must have current access to the source object.
You should play with the Link attributes, displaying their values for lots of links so you understand what exactly is in each attribute. For example, lnk."Absolute Number" probably doesn't mean anything.
|
|
Re: How to get the link properties of object by DXL. Edward_Wang - Sun Mar 20 22:59:32 EDT 2011 llandale - Fri Mar 18 11:53:43 EDT 2011
Once you have a "Link" reference you can retrieve its attributes normally:
string LinkCreatedOn = lnk."Created on"
If you want to add your own custom link attributes, you must create those attributes in the LINK MODULE.
lnk."ObjectModifiedOn" = obj."Last Modified On"
Its confusing, but understand that the link VALUES are stored with the object that SOURCES the link, so in order to modify a link you must have current access to the source object.
You should play with the Link attributes, displaying their values for lots of links so you understand what exactly is in each attribute. For example, lnk."Absolute Number" probably doesn't mean anything.
Louie,
Thanks for your quick reply. I know how to get the specific link properties. And I also know that all the object link properties are in the object link module with an object attribute scope.
My question is that is there a way to get the link properties name list include default attribute and customized attribute by DXL? Meanwhile, Is there a way to get the link attribute scope value by DXL?
|
|
Re: How to get the link properties of object by DXL. Mathias Mamsch - Mon Mar 21 03:51:02 EDT 2011 Edward_Wang - Sun Mar 20 22:59:32 EDT 2011
Louie,
Thanks for your quick reply. I know how to get the specific link properties. And I also know that all the object link properties are in the object link module with an object attribute scope.
My question is that is there a way to get the link properties name list include default attribute and customized attribute by DXL? Meanwhile, Is there a way to get the link attribute scope value by DXL?
The link properties are nothing else than the attributes of the link module. So you can open the link module of the corresponding link and iterate normally over the attributes for attrDef in module do ... ... Hope that helps, regards, Mathias
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
|
Re: How to get the link properties of object by DXL. Edward_Wang - Tue Mar 22 01:38:04 EDT 2011 Mathias Mamsch - Mon Mar 21 03:51:02 EDT 2011
The link properties are nothing else than the attributes of the link module. So you can open the link module of the corresponding link and iterate normally over the attributes for attrDef in module do ... ... Hope that helps, regards, Mathias
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
Mathias,
Thanks. It's really help me.
Edward
|
|