Net Core教程

UG二次开发 创建临时直线(C#)

本文主要是介绍UG二次开发 创建临时直线(C#),对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
 1       public void CreatDisplayTemLine(double[] startPoint, double[] endPoint)
 2         {
 3             UFSession theUfSession = UFSession.GetUFSession();
 4             UFObj.DispProps attrib = new UFObj.DispProps();
 5             attrib.layer = 1;
 6             attrib.highlight_status = true;
 7             attrib.line_width = 0;
 8             attrib.color = 6;
 9             attrib.blank_status = 0;
10             attrib.font = 1;
11             theUfSession.Disp.DisplayTemporaryLine(Tag.Null, UFDisp.ViewType.UseActivePlus, startPoint, endPoint, ref attrib);
12         }

 

这篇关于UG二次开发 创建临时直线(C#)的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!