Jump to content
j_spawn_h

Lines that touch

Recommended Posts

j_spawn_h

I was looking for a way to change a line type or any thing on the line by just swiping all the lines.

Lets say you have 3 lines.

line 1 is on a layer L1

line 2 is on layer L2

line 3 is on layer L10

both 1&2 touch line 3 some where some how. i would like to select all three and if 1 & 2 touch 3 change the layer of 3 to L3.

Share this post


Link to post
Share on other sites
Jonathan Handojo

Well, how would you select all three? Would you entsel line1 and line2 and check for a line that touches both? Or entsel line3 and check for corresponding lines that touches line3?

 

There needs to be a criterion to it.

Share this post


Link to post
Share on other sites
j_spawn_h

i am hoping just to select all of them with a window. I mainly wondering can the point where they all touch be recognized and can distinguished between the three, so i can use some type of if statement. Like if 1 & 2 touch 3 then do this to 3.

Share this post


Link to post
Share on other sites
ronjonp

You should post a sample drawing. If the ends are touching THIS may work for you.

Share this post


Link to post
Share on other sites
ronjonp

Try fastsel on the purple line.

Share this post


Link to post
Share on other sites
Jonathan Handojo
(if
  (and
    (safearray-value (variant-value (vla-IntersectWith vla_line1 vla_line3 acExtendNone)))
    (safearray-value (variant-value (vla-IntersectWith vla_line2 vla_line3 acExtendNone)))
    )
  ; then do your thing here
  )

Thanks,

Jonathan Handojo

Share this post


Link to post
Share on other sites
j_spawn_h

Thanks Jonathan ill try this.

Share this post


Link to post
Share on other sites

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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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