Pinned topic Custom Export Numbering
adevicq 2700021155154 Posts
llandale 270001QM9N2943 PostsACCEPTED ANSWER
Re: Custom Export Numbering2012-04-11T17:58:31Z in response to ChristiFore
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 PostsACCEPTED ANSWER
Re: Custom Export Numbering2012-04-11T21:12:21Z in response to llandaleI understand your concern however the sections in each document are static so once the format is set it won't change very often. It will however be different for each document type but we really only use 2 type. One is the standard numbering and the other is a subset of the standard. I'll give your code a try.