C# NX二次开发:反向控件和组控件详解
大家好,今天介绍ug二次开发过程中的两个叫反向和组的控件,这个控件在块UI编辑器中可以使用。
1、direction这个控件的属性和方法如下所示:
//
// 摘要:
// Represents Reverse Direction block
//
// 备注:
// Created in NX8.5.0
public class ReverseDirection : UIBlock
{
protected internal ReverseDirection();
//
// 摘要:
// Returns or sets the Direction.
//
// 备注:
// It specifies the orientation of direction handle.
// Created in NX8.5.0
// License requirements to get this property: None.
// License requirements to set this property: None.
public Vector3d Direction { get; set; }
//
// 摘要:
// Returns or sets the Flip.
//
// 备注:
// If true, the handle is flipped opposite of the direction.
// Created in NX8.5.0
// License requirements to get this property: None.
// License requirements to set this property: None.
public bool Flip { get; set; }
//
// 摘要:
// Returns or sets the Origin.
//
// 备注:
// It specifies the origin of direction handle.
// Created in NX8.5.0
// License requirements to get this property: None.
// License requirements to set this property: None.
public Point3d Origin { get; set; }
}
2、Group这个控件的属性和方法如下所示:
public class Group : UIBlock
{
protected internal Group();
public int Column { get; set; }
public bool Localize { get; set; }
public PropertyList Members { get; }
}
今天要介绍的就是这么多,我们下篇文章再见。