admin 发表于 2017-3-7 09:40:16

如何通过选择,获取选择的点??很简单,看这个函数


如何通过选择,获取选择的点??很简单,看这个函数

最后的一个参数就是输出的点,也就是你选取时候的位置。



NXOpen::Selection::Response
SelectTaggedObject (const NXString &message, const NXString &title, NXOpen::Selection::SelectionScope scope, bool includeFeatures, bool keepHighlighted, NXOpen::TaggedObject **object, NXOpen::Point3d *cursor)


Select single tagged object.

NXOpen::Selection::Response
SelectTaggedObject (const char *message, const char *title, NXOpen::Selection::SelectionScope scope, bool includeFeatures, bool keepHighlighted, NXOpen::TaggedObject **object, NXOpen::Point3d *cursor)


Select single tagged object.

NXOpen::Selection::Response
SelectTaggedObject (const NXString &message, const NXString &title, NXOpen::Selection::SelectionScope scope, NXOpen::Selection::SelectionAction action, bool includeFeatures, bool keepHighlighted, const std::vector< NXOpen::Selection::MaskTriple > &maskArray, NXOpen::TaggedObject **object, NXOpen::Point3d *cursor)


Select single tagged object using filter defined by mask triples.

NXOpen::Selection::Response
SelectTaggedObject (const char *message, const char *title, NXOpen::Selection::SelectionScope scope, NXOpen::Selection::SelectionAction action, bool includeFeatures, bool keepHighlighted, const std::vector< NXOpen::Selection::MaskTriple > &maskArray, NXOpen::TaggedObject **object, NXOpen::Point3d *cursor)


Select single tagged object using filter defined by mask triples.

NXOpen::Selection::Response
SelectTaggedObject (const NXString &message, const NXString &title, NXOpen::Selection::SelectionScope scope, bool keepHighlighted, const std::vector< NXOpen::Selection::SelectionType > &typeArray, NXOpen::TaggedObject **object, NXOpen::Point3d *cursor)


Select single tagged object using filter defined by selection type.


页: [1]
查看完整版本: 如何通过选择,获取选择的点??很简单,看这个函数