PDA

View Full Version : Drawing Manager 13.20A and thumbnail


alexniccoli
10-07-2005, 09:10 AM
Hi all
I think that Drawing Manager 13.20A don't save thumbnail (preview) into OSManager Database.
What do you think?
thanks a lot
Alessandro Niccoli

alexniccoli
10-12-2005, 02:17 AM
In think that i have found a bug.
in class OSMCSLXferDataNode there is a method getRelatedFiles
that cycles into info tables searching files to store
into columns with name beginning with RelatedFile.
This method think that all RelatedFile column have a progessive index
(RelatedFile0,RelatedFile1,ecc..)
but not (RelatedFile0,RelatedFile2,RelatedFile3,...)
Happens that method addRelatedFile into class DrawingSaveDataModel create
a column named RelatedFile6 but previous table is named RelatedFile2.
Follow a patch to getRelatedFile() of OSMCSLXferDataNode class:

public List getRelatedFiles() throws WMException {
int i = 0;
List list = new ArrayList();

while (i <= (info.numColumns() + 1)) {
try {
String value = info.readAsString(index, ("RelatedFile" + i));

if (value != null) {
File f = new File(getDir(), value);
list.add(f);

if (f.exists()) {
list.add(f);
}
}

i = i + 1;
} catch (WMException wme) {
i++;
//break;
continue;
}
}

return list;
}

dszostak
10-12-2005, 02:45 PM
On this topic specifically... I would recommend calling CoCreate Customer Support.

What is... CoCreate Customer Support (http://www.cocreate.com/cust_support.cfm)
How to contact... CoCreate Customer Support (http://www.cocreate.com/contact_support.cfm)

Calling CoCreate Customer Support will help us understand if this is a defect in Model Manager. Thank you for your help.