本帖最后由 qq25469005 于 2023-2-28 13:30 编辑
这个要使用ifoxcad开发
- /// <summary>
- /// 改变被包围的图元颜色为黄色
- /// </summary>
- [CommandMethod("wk")]
- public void WaiKuang()
- {
- using DBTrans tr = new();
- var ents = Env.Editor.SSGet().Value.GetEntities<Curve>().ToList();
- //ents.ForEach(t=>t.ForWrite(e => e.CloseCurve(tr)));
- for(var i = 0; i < ents.Count-1; i++)
- {
- for(var j = i+1;j<ents.Count;j++)
- {
- Q_EntityEx.IsPolygonInsideAnotherPolygon(ents[i], ents[j]);
- }
- }
- }
|