wimal Posted October 10, 2019 Share Posted October 10, 2019 ((-1 . <Entity name: 7ff419404c90>) (0 . "MLINE") (330 . <Entity name: 7ff4194039f0>) (5 . "259") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "0") (100 . "AcDbMline") (2 . "STANDARD") (340 . <Entity name: 7ff419403980>) (40 . 20.0) (70 . 0) (71 . 1) (72 . 2) (73 . 2) (10 2254.89 1547.14 0.0) (210 0.0 0.0 1.0) (11 2254.89 1547.14 0.0) (12 0.968639 0.248474 0.0) (13 -0.248474 0.968639 0.0) (74 . 2) (41 . 0.0) (41 . 0.0) (75 . 0) (74 . 2) (41 . -20.0) (41 . 0.0) (75 . 0) (11 3490.73 1864.16 0.0) (12 0.968639 0.248474 0.0) (13 -0.248474 0.968639 0.0) (74 . 2) (41 . 0.0) (41 . 0.0) (75 . 0) (74 . 2) (41 . -20.0) (41 . 0.0) (75 . 0)) above code is displaying the association list of a multyline. I need to find out the start and end coordinates of the mline .I can get the first point (association no 10) But how can get the Other end; there are association no 11 two times. I need the get value of second association no 11 _$ Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted October 10, 2019 Share Posted October 10, 2019 Per the documentation, there is a DXF group 11 entry for every vertex of the MLINE, as such, you can use a 'massoc' function to retrieve the coordinates of all vertices, e.g.: (massoc 11 <dxf data>) 1 Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted October 10, 2019 Share Posted October 10, 2019 Duplicate post here Quote Link to comment Share on other sites More sharing options...
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.