Jump to content

To find overlapping entities


Recommended Posts


I try to find a dxf files only which is overlapped in multiple dxf files using API. Assist me on this. See the sample dxf.



Link to comment
Share on other sites


This is in AutoCAD's ARX, and .NET's API

Here's a sample in Python


def PyRxCmd_doit() -> None:
        line1 = Ge.LineSeg3d(Ge.Point3d(2, 0, 0), Ge.Point3d(5, 0, 0))
        line3 = Ge.LineSeg3d(Ge.Point3d(0, 0, 0), Ge.Point3d(10, 0, 0))
        overlapResults = line1.overlap(line3)
        if not overlapResults[0]:
        seg :  Ge.LineSeg3d = overlapResults[1]
        print("Overlaps from point {}, to point {}".format(
            seg.getStartPoint(), seg.getEndPoint()))
    except Exception as err:


and the result


Command: DOIT
Overlaps from point (2.00000000000000,0.00000000000000,0.00000000000000), to point (5.00000000000000,0.00000000000000,0.00000000000000)


Edited by Danielm103
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...