在NX1934中,有直接导出png图像的功能,采用二次开发,如下所示:
public static void ExportImage(string imageFile, NXOpen.Gateway.ImageExportBuilder.FileFormats fileFormats , NXOpen.Gateway.ImageExportBuilder.BackgroundOptions backgroundOption)
{
NXOpen.Session theSession = NXOpen.Session.GetSession();
NXOpen.Part workPart = theSession.Parts.Work;
NXOpen.Part displayPart = theSession.Parts.Display;
NXOpen.Session.UndoMarkId markId1;
markId1 = theSession.SetUndoMark(NXOpen.Session.MarkVisibility.Visible, "起点");
NXOpen.UI theUI = NXOpen.UI.GetUI();
NXOpen.Gateway.ImageExportBuilder imageExportBuilder1;
imageExportBuilder1 = theUI.CreateImageExportBuilder();
imageExportBuilder1.RegionMode = false;
int[] regiontopleftpoint1 = new int[2];
regiontopleftpoint1[0] &
最后
以上就是仁爱水蜜桃最近收集整理的关于NX二次开发--导出png格式的图像的全部内容,更多相关NX二次开发--导出png格式内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复