Jump to content

Updating two parallel at the same time when one is amended


CFORD

Recommended Posts

This should do it

  • select two polylines obj1 obj2
  • offset obj1 in 2 feet
  • checks if offset only created 1 polyline
  • gets the geocenter of offset polyline p1
  • uses boundary command with new point to create a boundary (offset + boundary = area you want)
  • gets bulg information from boundary poly p2
  • deletes 2 ft offset poly p1
  • updates polyline obj2 with boundary cords of poly p2
  • deletes boundary polyline p2
  • updates bulg info to obj2

 

-Edit

You might have to isolate the two layers for the boundary to work correctly tho it is set to ignore islands.

Also since im using BricsCAD  the boundary command might be diffrent in AutoCAD.

 

(command "_.Boundary" "_A" "_I" "_N" "" "_non" cen "")

use "-boundary" to Enter the choices at the command prompt

 

-Edit

layiso update

 

UFP-iso.lsp

Edited by mhupp
  • Thanks 1
Link to comment
Share on other sites

That works brilliantly thank you very much. I removed the "_non" from the boundary command and then it worked perfectly.
      (command "_.boundary" "_a" "_i" "_n" "" "" cen "")

Thank you so much you are a hero 
 

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

Hello Again Sorry that I keep coming back. You were right when you said it would be best to layiso the lines first I was wondering if there is a command that we can add into the lisp to, in a sense layiso the two lines selected and then turn on all the layers that were previously on. I understand that I could do LayOn but I was wondering if there was a way of doing it without turning everything back on and just having the layers that were turned on before? Many thanks in advance 

Link to comment
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
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...