Autodesk平台服务支持多个发明家版本,版本支持情况取决于每个服务。以下是一些主要服务及其支持的发明家版本列表:
// create an Inventor document object
var doc = new Autodesk.inventor.Document();
// open an existing Inventor document
var filePath = "C:/Documents/Part1.ipt";
doc.Open(filePath);
// modify the document
doc.UpdateProperty("Description", "This is a modified part.");
// save the modified document
doc.Save();
// create a BIM 360 project
var project = new Autodesk.bim360.Project();
project.Create("MyProject");
// upload an Inventor file to the project
var filePath = "C:/Documents/Part1.ipt";
var file = new Autodesk.bim360.File(filePath);
project.Upload(file);
// import an Inventor file into Fusion 360
var filePath = "C:/Documents/Part1.ipt";
var design = new Autodesk.fusion360.Design();
design.ImportInventorModel(filePath);
// create a robot based on the Inventor model
var robot = new Autodesk.fusion360.Robot();
robot.CreateFromDesign(design);
// 3D-print the robot
robot.Print();
以上是Autodesk平台服务支持的Inventor版本列表及其示例代码。开发人员可以根据所需的功能和服务来选择适合自己的版本和API。