确认确保计算机上已安装Autodesk Inventor 2024的最新版本。如果没有,请安装并重新启动计算机。
必须启用Inventor Design Automation功能启用。确保将Inventor Design Automation功能包安装在Autodesk Inventor 2024中。请注意,此功能和功能包需要购买和/或授权才能使用。
输入以下代码来启用Inventor Design Automation:
options = DesignAutomationData(operatingParams);
InventorServer inventorApplication = options.InventorApplication;
PartDocument partDocument = inventorApplication.Documents.Open(partFilePath) as PartDocument;
PartComponentDefinition partComponentDefinition = partDocument.ComponentDefinition;
double width = partComponentDefinition.WorkPoints[1].X; double height = partComponentDefinition.WorkPoints[2].Y;
如果问题仍然存在,请联系Autodesk支持团队以获得更多帮助。
上一篇:AutodeskIntegration-Searchinfolderswithout3-leggedtoken
下一篇:AutodeskLargeModelViewer-ViewpointcloudinrecapfilefromACC