Jump to content

Recommended Posts

Posted

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

  • Replies 23
  • Created
  • Last Reply

Top Posters In This Topic

  • Lucay

    12

  • GLAVCVS

    7

  • BIGAL

    2

  • SLW210

    2

Top Posters In This Topic

Posted Images

Posted

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?

Posted

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.

Posted
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

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.

Guest
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...