4

我在一个块中有一个 Solid3D 对象,需要选择它的边缘。

我试过了:

viewport.SelectionFilterMode = selectionFilterType.Edge; 
viewport.ActionMode = actionType.SelectByPick;

由于块被视为单个对象,这样做会选择整个 Solid3D 对象。

你能建议我一个可以用来解决这个问题的解决方案吗?

4

2 回答 2

4

您应该将 viewportLayout.AssemblySelectionMode 设置为 assemblySelectionType.Leaf:

viewportLayout.AssemblySelectionMode = ViewportLayout.assemblySelectionType.Leaf;

和 viewportLayout.SelectionFilterMode 到 selectionFilterType.Edge:

viewportLayout.SelectionFilterMode = selectionFilterType.Edge;
于 2018-05-17T03:38:55.617 回答
0

您可以将 BlockReference 设置为当前。

viewportLayout.Entities.SetCurrent(myBlockRef)
于 2018-05-16T19:35:42.720 回答