NX Open显示符号(UF_DISP_display_temporary_point)
UF_DISP_display_temporary_point
使用方法:
1 Dim x As Double = 0, y As Double = 0, z As Double = 0
2
3 Dim theUfSession = UFSession.GetUFSession()
4 theUfSession.Disp.Refresh()
5
6 Dim view_tag As NXOpen.Tag = NXOpen.Tag.Null
7 theUfSession.View.AskWorkView(view_tag)
8
9 Dim which_views = NXOpen.UF.UFDisp.ViewType.UseWorkView
10
11 Dim layer_number As Integer = 0
12 theUfSession.Layer.AskWorkLayer(layer_number)
13 Dim color As NXOpen.UF.UFObj.DispProps
14 With color
15 .layer = layer_number
16 .color = 216 ' 114
17 .blank_status = UFConstants.UF_OBJ_NOT_BLANKED
18 .line_width = UFConstants.UF_OBJ_WIDTH_NORMAL
19 .highlight_status = True
20 End With
21
22 For Each marker_type In [Enum].GetValues(GetType(NXOpen.UF.UFDisp.PolyMarker))
23 Try
24 Dim makerpos() As Double = {x, y, z}
25 theUfSession.Disp.DisplayTemporaryPoint(view_tag, which_views, makerpos, color, marker_type)
26 Catch ex As Exception
27 End Try
28 Dim ref_point As UFDisp.TextRef = NXOpen.UF.UFDisp.TextRef.Middleleft
29 Dim text as String = marker_type
30 Dim text_coord() As Double = {x + 2, y, z}
31 theUfSession.Disp.DisplayTemporaryText(view_tag, which_views, text, text_coord, ref_point, color, 3, 1)
32 text = [Enum].GetName(marker_type.GetType, marker_type)
33 text_coord = {x + 5, y, z}
34 theUfSession.Disp.DisplayTemporaryText(view_tag, which_views, text, text_coord, ref_point, color, 3, 1)
35 y -= 2
36 Next
效果图、序号、名称如下所示:






NX Open显示符号(UF_DISP_display_temporary_point)的更多相关文章
- .PRT extension and multiple NX versions
http://nxway.blogspot.ca/2007/10/prt-extension-and-multiple-nx-versions.html To open prt files with ...
- 安装 NoMachine(NX) client and server
(1)Windows上直接安装nxclient-3.5.0-9.exe即可 (2)Linux上 准备linux rpms nxclient-3.5.0-7.x86_64.rpmnxnode-3.5.0 ...
- linux 远程桌面工具NX
1.在linux服务器上需要安装3个文件,下载地址为: http://www.nomachine.com/download-package.php?Prod_Id=1977 nxclient-3.4. ...
- Linux_x86下NX与ASLR绕过技术
本文介绍Linux_x86下NX与ASLR绕过技术,并对GCC的Stack Canaries保护技术进行原理分析. 本文使用存在漏洞代码如下: /* filename : sof.c */ #incl ...
- UG/NX 8.0安装方法(图文详解)
UG8.0,自从被西门子收购后改名为NX,也称NX8.0,作为一款非常优秀三维模具设计软件.他可以针对用户的虚拟产品设计和工艺设计的需求,提供经过实践验证的解决方案.其以全面的设计概念.良好的界面受到 ...
- NX 栈不可执行的绕过方式--ROP链
目标程序下载 提取码:5o0a 环境:Ubuntu linux 工具 pwn-gdb pwntools python库 ROPgadget ( 这些工具可以到github官网找) 1.检查程序开了哪些 ...
- 将NX模型导入Process Designer的方法
如何把一个有焊点的零件从nx中输入到process designer 中? 用户在NX中做了一个prt文件, 想把它输入到process designer中, 并且包括焊点信息, 该如何做? 解决 ...
- [Angular] Improve Server Communication in Ngrx Effects with NX Data Persistence in Angular
Communicating with a remote server via HTTP presents an extra level of complexity as there is an inc ...
- 【转】linux 远程桌面工具NX
1.在linux服务器上需要安装3个文件,下载地址为: http://www.nomachine.com/download-package.php?Prod_Id=1977 nxclient-3.4. ...
随机推荐
- Linux系统的内核编译
<1>给虚拟机分配2048M内存 <2>配置高可用yum源 <3>下载软件 <1>安装内核源码包 根据依赖性提示,安装对应的包 下载并安装软件包(3个) ...
- for循环练习之打印三角形
public class TestDemo01 { /** * 打印三角形 * 1.打印空格 * 2.打印三角形 */ public static void main(String[] args) { ...
- blender skin modifier 太好玩了
https://docs.blender.org/manual/en/latest/modeling/modifiers/generate/skin.html 只需要像画火柴人一样把点连起来,skin ...
- 【CSS】按钮
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...
- Appium自动化(12) - 详解 HardwareActions 类里的方法和源码分析
如果你还想从头学起Appium,可以看看这个系列的文章哦! https://www.cnblogs.com/poloyy/category/1693896.html 前言 HardwareAction ...
- Nginx:多项目开发配置跨域代理
简述Nginx应用场景(前后端) 当我们开发 vue 项目中可以通过 proxyTable 进行跨域,但如果是原生的 html+css+js ,或者其他没有跨域插件的项目中,想要跨域就要引入配置许多的 ...
- 页面调用系统window打印
一. 打印:直接页面调用window.print(),当前页面就会转换成打印页面 当前页面是使用HTML拼接成A4纸表格样式的展示: doPrint:function(type) { // this. ...
- 在EXCEL中批量添加超链接
在单元格中输入函数 =HYPERLINK(链接位置,[显示文本])
- PTA面向对象程序设计6-3 面积计算器(函数重载)
实现一个面积计算器,它能够计算矩形或长方体的面积. 函数接口定义: int area(int x, int y); int area(int x, int y, int z); 第一个函数计算长方形的 ...
- DEDEcms手机网站添加详情内页上一页/下一页的翻页功能
修改文件include/arc.archives.class.php文件. 1.搜索 function GetPreNext($gtype='') 2.将这个函数的所有内容替换为 function G ...