Jump to content

Recommended Posts

Posted
...and others may suspect me of being the worst LISP coder ever. :geek:

 

More likely suspect me of focussing too much on the finer details...

 

Anyway, consider this alternative:

 

'(
   (-4 . "<OR")
       (-4 . "<AND")
           (0 . "LWPOLYLINE")
           (-4 . "&=")
           (70 . 1)
       (-4 . "AND>")
       (-4 . "<AND")
           (0 . "POLYLINE")
           (-4 . "&=")
           (70 . 9)
       (-4 . "AND>")
   (-4 . "OR>")
)

  • Replies 31
  • Created
  • Last Reply

Top Posters In This Topic

  • BlackBox

    9

  • Lee Mac

    8

  • ClareSelley

    6

  • MSasu

    3

Top Posters In This Topic

Posted

No worries; only being jovial.

 

I originally used 1 & 9, but this excluded my "L" shaped polyline... further investigation revealed this entity (the "L") was 129. This prompted me to make the quick change to 'not' 0.

Posted

Refer to this reply

I tested the three solutions

LEE

RenderMan

Msasu

But find three deference output

Attached dwg and csv files

Posted
But find three deference output

That's true, but is easy for OP, as long he/she had the desired information in electronic form, to edit it to the right format.

Posted

Hmmm... I thought Lee's was working perfectly - except it's not listing the centroid for the polyline that the handle belongs to! Handle X is next to the centroid for polyline Y....

Posted

Renderman: Thanks for yours - that's actually better & works perfectly. :)

Posted
Renderman: Thanks for yours - that's actually better & works perfectly. :)

 

That is kind of you to say, but if you're wanting to use my code, I must insist on revising it to utilize the Centroid Property coordinate value of a region, rather than using the Centroid of the BoundingBox (the bottom left, and upper right). My original code was left intact (originally) for others to learn from my mistake. I will revise the code momentarily.

Posted
Hmmm... I thought Lee's was working perfectly - except it's not listing the centroid for the polyline that the handle belongs to! Handle X is next to the centroid for polyline Y....

 

Looking back at my code, I can't see anything that would cause this to happen; furthermore, after a quick test, the code appears to function correctly for me.

Posted

Lee: It may well me me messing up somehow. It just didn't run right for me for some reason! Thanks for your help! :)

  • 10 months later...
Posted

HI,

 

please help me to mark circles in error layer from selected handles in .csv file

Posted

Can you post an excerpt from that CSV file? Also, what do you understand by marking them?

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