(DOORS 9.7) Can you use oleInsert to embed multiple files into the same object?
Hi,
I am currently trying to use DXL to embed all files in a specified directory into the object text attribute of one object. It looks like when I iterate over the files in a directory, the object text gets overwritten each time so only the last file will be embedded in the selected object by the end:
Object o = current
string dir = "C:\Users\TextFiles"
string doc, fileName
bool success
for fileName in directory dir do {
doc = dir + "\" + fileName
success = oleInsert(o, doc)
if(success) {
print "Inserting "doc" into object\n"
}
else {
print "Could not insert "doc" into object\n"
}
}
Is there a way to insert the object after what is already existing in the object text each time? I am using DOORS 9.7