![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: using DXL attributes Topic Summary: Created On: 16-Jan-2007 16:10 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hello DXLiens,
does anybody know if there is a possibility of inserting a DXL Attribute in each Module of a certain Folder? For example I have a AttrDXLScript and an already inserted Attribute "bla" of Type text in each Module of a folder. How can I get the AttrDXLScript into the Attribute "bla" in each Module of a folder? Can I use a script to insert a script into the attribute? best regards, Mussie |
|
![]() |
|
![]() |
|
The following example should get you started.
AttrDef ad = null ad = find(current Module, "Comments") ad = modify(ad, setDXL, "obj.attrDXLName = \"hello\"") ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
AttrDef ad = null
ad = find(current Module, "Comments") ad = modify(ad, setDXL, "obj.attrDXLName = \"hello\"") is it possible to put in dxl file instead of "obj.attrDXLName = \"hello\"" for example! ad = modify(ad, setDXL, "impact.dxl") |
|
![]() |
|
![]() |
|
would it work with importRTF??
cheers Mussie
|
|
![]() |
|
![]() |
|
hello DXLiens,
I still can't find the solution for my problem!
this one works even for several modules of a folder!
AttrDef ad = null
ad = find(m, "LinksAttr")
print ad.name"\n"
ad = modify(ad, setDXL, "obj.attrDXLName = \"hello\"")
But if I want something more then just hello as a value what can I do
how can I get following code converted to one string or value of
obj.attrDXLName like "hello"??
---------------------------------------------------------------------------------------------
Link l
int count = 0
setCacheState_ on
for l in obj->"*" do count++ // count outgoing links
setCacheState_ off
Module m
AttrDef ad
AttrType at
m = module obj
ad = find(m,attrDXLName)
at = ad.type
if (at.type == attrInteger)
obj.attrDXLName = count
if ((at.type == attrString) || (at.type == attrText))
obj.attrDXLName = count ""
---------------------------------------------------------------------------------------------
whereas count is supossed to be the value of LinksAttr!
Best Regards,
Mussie
|
|
![]() |
|
![]() |
|
sorry this one you can read better! I still can't find the solution for my problem! |
|
![]() |
|
![]() |
|
As follows!
Remember to escape double quotes and backslashes in the string. Also, you must remember to insert newlines or semicolons in order to separate the expressions. My preferred method is to build the DXL up in a buffer, one line at a time, but the result is the same. ------------------------- Tony Goodman http://www.smartdxl.com Edited: 19-Jan-2007 at 14:09 by Tony Goodman |
|
![]() |
|
![]() |
|
If your DXL attribute contains an include file, then those folks that don't have access to the include file's location will get lots of rude DXL errors whenever they open the module. Its practically impossible to guarantee everyone can see a file, even on a company shared network. But if you DID, you would do this:
ad = modify(ad, setDXL, "#include <"//Server/File/Impact.dxl") But you really need to plow through all the modules in a folder. Someone somewhere as a 'CopyAtts.dxl' somewhere, I don't think I can share mine. - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
using DXL attributes
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.