part-mark is not collision with other objects.

part-mark is not collision with other objects.

xuantientutungXUK6E
Advocate Advocate
886 Views
6 Replies
Message 1 of 7

part-mark is not collision with other objects.

xuantientutungXUK6E
Advocate
Advocate

hello everyone,

i try to find away which i can know the part-mark is not collision with the others object.

i want to make a lisp to put part-mark automated, so it can reduce my editting time.

It is very fascinating.

xuantientutungXUK6E_0-1594260168807.png

 

0 Likes
887 Views
6 Replies
Replies (6)
Message 2 of 7

hak_vz
Advisor
Advisor

If you want to receive a solution to your request upload sample drawing with your block, it's much easier to create a code and test. Try to do this in your future requests.

 

If you have some knowledge of autolisp try to write some code, or at least idea how you think it should work. How it has to handle collision with other objects? 

Miljenko Hatlak

EESignature

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
0 Likes
Message 3 of 7

Sea-Haven
Mentor
Mentor

The day some one perfects text collision the world will rejoice, all sorts of attempts with fuzz factors have been presented before. In the Civil world labeling points has been a cad nightmare since cad started.

 

 

 

0 Likes
Message 4 of 7

stevor
Collaborator
Collaborator

Functions SSGET "f" or SSGET "c" may be what you could use

 to sense a 'collision' and move your boxed leader text.

See http://www.lee-mac.com/ssget.html for an explanation

of the SSGETs  that can be comprehended. 

S
0 Likes
Message 5 of 7

Kent1Cooper
Consultant
Consultant

@stevor wrote:

Functions SSGET "f" or SSGET "c" may be what you could use to sense a 'collision' and move your boxed leader text. ....


Finding  collisions is the comparatively easy part.  The real challenge is finding where to Move something to.   You can Move it "somewhere" and check again, but what if you also find some collision(s) there?  Do you go farther in the same direction?  Try a different direction?  How should a routine decide what direction and how far away to try in the first place?  Is there a limit to how far away you're willing to reposition something if there's too much other stuff to collide with nearby?  Etc., etc.  Hence @Sea-Haven's comments -- this is a huge challenge that has been raised before, but I don't recall anyone finding a reliable/foolproof solution.

Kent Cooper, AIA
0 Likes
Message 6 of 7

ronjonp
Advisor
Advisor

@Kent1Cooper  Good points. I wrote some code to cleanup a large project a while back that found the collisions then zoomed to the object so it could be manually moved using GRREAD. Not a perfect solution but worked well for me. 🍻

0 Likes
Message 7 of 7

Sea-Haven
Mentor
Mentor

Every one is right could do say every 20 degrees at a radius do a full circle go next radius do again but how far away is a problem = no solution.

 

I have seen civil point labelling auto un clashed but labels lose there simple association with the point. Which is which. 

0 Likes