Catia VBA 更改点位置

问题描述

i have this task to create a macro,when a point is selected the co ordinate values of the point needs to displayed in the user form like this

enter image description here

x、y 和 z 的值应显示在文本框中 但是有些点在“ONCURVE”或“ONSURFACE”类型中,这些点不会显示 x、y 和 z 值。 这是一张图片供参考

enter image description here

如您所见,第一点是坐标第二点是“ONCurve”定义第三点是“ONSURFACE”定义我如何提取这些点的 xyz 坐标值。 而且我还需要通过更改文本框中的值来更改点位置

我是新手,我对这种类型的任务知之甚少

如何为此编写宏?

谢谢

解决方法

正如 GisMofx 所说,你应该使用基点类,你可以使用 GetCoordinates 方法

查看 API 文档 - 您应该能够找到一些示例,如果没有,请尝试提出一些建议

CATIA API Point Description