// Create the CAd Document item
var docItem = MyInnovator.newItem("CAD", "add");
docItem.setProperty("item_number", "CADDoc 004");
// Create the relationship between the CAd Document and File
var relItem = MyInnovator.newItem("CADFiles", "add");
relItem.setFileProperty("attached_file", @"C:\Temp\Test.txt");
docItem.addRelationship(relItem);
var results = docItem.apply();
If you are using a version of Innovator before 11.0 SP9, you will need to rewrite this sample to use the attachPhysicalFile function that you were using initially.
Chris
______________________________________
Christopher Gillis
Aras Labs Software Engineer
Hi Chris,
Pls help me to how can I create CAD Document Item with file is attached to native File. (I using Aras 11.0 SP15)
Thanks so much.
Hi Chris,
Pls help me to how can I create CAD Document Item with file is attached to native File. (I using Aras 11.0 SP15)
Thanks so much.