GLAVCVS Posted 19 hours ago Posted 19 hours ago You might think that there is a drawback that, in concentric hatches, there will be more than 1 hatch perimeter containing the same buildings. SOLUTION: -sort the hatches in a list by area, from smallest to largest -start the selection sets from the smallest hatches. Make two sets for each hatch: one with the "F" filter to select the intersecting buildings and another with "WP" for the fully included ones. -if buildings already selected in previous sets appear, exclude those selected with "WP" in the previous set. As Lee Mac said, the objects to be treated must be completely visible on the screen. To do this, you can make a call to the zoom command at the beginning of the code Quote
Lucay Posted 18 hours ago Author Posted 18 hours ago Thank you for your quick response! 8 hours ago, GLAVCVS said: I think your approach should be the other way around: get the lists of points from the hatches and make selection sets of the building perimeters and their centroid texts. I'm sorry I'm quite new to lisp but I'm not sure I understand your suggestion. Would it be to select points rather than polylines? If that's the case, I don't see how you can use the points to obtain the texts associated with the buildings? And why would it be different from current method? And in relation to Lee's comment, do you think that's why some buildings (often the smaller ones) are not taken into account? I did the test previously and it didn't make any difference. Do you have an explanation as to why in "Test AUTOCAD 2" only a few buildings are selected, whereas all are hatched in blue? Quote
GLAVCVS Posted 16 hours ago Posted 16 hours ago I mean selecting the polylines of the buildings that are fully or partially within the different hatches. To identify the buildings (assuming they are made up of a single polyline) you can add a small code that creates a small extended data record, with an ordinal, on each polyline. This way you would no longer have to create a text label for each building. Quote
Lucay Posted 16 hours ago Author Posted 16 hours ago 37 minutes ago, GLAVCVS said: To identify the buildings (assuming they are made up of a single polyline) you can add a small code that creates a small extended data record, with an ordinal, on each polyline. This way you would no longer have to create a text label for each building. I didn't know that you could create extended data record on polylines. Do you have any function names or documentation so that I can find out more? Thanks 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.