几何尺寸与公差论坛

 找回密码
 注册
查看: 676|回复: 0

【转帖】using the oncomponentselectionnotify even

[复制链接]
发表于 2009-4-13 15:12:12 | 显示全部楼层 |阅读模式
using the oncomponentselectionnotify event
i am making an application that uses an edrawingviewer control to display assemblies in visual basic .net. i want to make it so that when the user selects a certain part in that assembly, the application would know what part it was and displays information for that part. how do i do that with the oncomponentselectionnotify even?
unfortunately that is beyond the power of edrawings api, at most you can get the components name.
originally posted by: luke malpass
unfortunately that is beyond the power of edrawings api, at most you can get the components name.
i can work with that. how do you get the components name?
it is passed in as the first variable when you recieve your notification:
status = oncomponentselectionnotify ( componentname, xcoordinate, ycoordinate)
also, you can get the name of a component by index position using:
name = emodelviewcontrol.componentname ( config, index ) (vb get property)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-5-19 12:33 , Processed in 0.034617 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表