Pinned topic Custom Export Numbering
adevicq 2700021155154 Posts
llandale 270001QM9N3035 Posts
Re: Custom Export Numbering2012-04-11T17:58:31ZThis is the accepted answer. This is the accepted answer.
I think this a bad idea since the numbering will change between exports. That will be like talking to the "5th person in line" when the line keeps changing. Readers of the report are far better off seeing a paragraph and being able to tell which DOORS Object it is.
Anyway, if you put the code below into an "int" AttrDXL and then display it, the objects should be numbered from zero on down based on the current display set. Be sure to Tools menu >>Refresh DXL Attributes before you export.
int iResult Object oPrev = previous(obj) if (null oPrev) // then iResult = -1 else iResult = oPrev.attrDXLName obj.attrDXLName = iResult+1 //print iResult "\t" (identifier(obj)) "\t" //if (null oPrev)// //then print "top\n" //else print identifier(oPrev) "\n"
-LouieUpdated on 2014-01-06T19:46:36Z at 2014-01-06T19:46:36Z by iron-man
ChristiFore 2700042HMD6 Posts
Re: Custom Export Numbering2012-04-11T21:12:21ZThis is the accepted answer. This is the accepted answer.
- llandale 270001QM9N