ajithkumar.t Posted March 6 Posted March 6 Hi, 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. Sample.dxf Quote
Danielm103 Posted March 6 Posted March 6 (edited) Hi, This is in AutoCAD's ARX, and .NET's API Here's a sample in Python def PyRxCmd_doit() -> None: try: 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]: print("Nope") return seg : Ge.LineSeg3d = overlapResults[1] print("Overlaps from point {}, to point {}".format( seg.getStartPoint(), seg.getEndPoint())) except Exception as err: traceback.print_exception(err) and the result Quote Command: DOIT Overlaps from point (2.00000000000000,0.00000000000000,0.00000000000000), to point (5.00000000000000,0.00000000000000,0.00000000000000) Edited March 6 by Danielm103 Quote
Danielm103 Posted March 6 Posted March 6 For other objects, you might be able to check entity bounding boxes Quote
Recommended Posts
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.