如何获取经过两点的所有直线或多段线?
<font face="Verdana">如何获取经过两点的所有直线或多段线?</font> <p>栏选</p><p>Editor.SelectFence Method </p> <p>再请教下版主,这里头涉及多项选择,多段线或直线,还涉及到我有时候只搜索经过一个点的线,所以关系到几个问题:</p>
<p> 1 。对于经过一个点的搜索来说,试过之后好像SelectFence不支持吧?其他的函数Editor里头好像都不太像</p>
<p> 2 对于搜索多项选择来说,我用如下代码视乎返回总是为空,不知道为何</p>
<p><font face="Verdana"> pc.Add(p1)<br/> pc.Add(p2)</font><font face="Verdana"><br/> Dim obc As ObjectId()<br/> Dim acTypValAr(0) As TypedValue<br/> acTypValAr.SetValue(New TypedValue(DxfCode.Start, "LWPolyline,Line"), 0)<br/> Dim acSelFtr As SelectionFilter = New SelectionFilter(acTypValAr)<br/> Dim acSSPrompt As PromptSelectionResult = ed.SelectFence(pc, acSelFtr)<br/> Dim acSSet As SelectionSet = acSSPrompt.Value<br/> If Not acSSet Is Nothing Then<br/> obc = acSSet.GetObjectIds</font></p> 谢谢分享,先学习一下,以后总能看懂的
页:
[1]