Jump to content

LISP to check if the polyline is in the centre of 2 polylines/lines


vernonlee

Recommended Posts

Currently my work now involves checking if polylines is in the center between 2 polylines/lines.

 

If there are not, i need to shift/stretch to make it centre. As usual, some changes are very small & visually cannot be picked out unless i meaure them.

 

Currently i am measuring them 1 by 1 which is as you can imagine, pretty tedious.

 

I searched for a couple of days but was not able to find any lisp that can highlight those lines that are not in the center.

 

Would anyone come across such LISPS that does the job, or can someone help me out by attempting to write out a LISP.

 

Thanks

Link to comment
Share on other sites

  • Replies 46
  • Created
  • Last Reply

Top Posters In This Topic

  • vernonlee

    25

  • 7o7

    8

  • pBe

    6

  • hanhphuc

    3

Top Posters In This Topic

Posted Images

Any lisp/macros or quick commands for this?

 

Gave my boss a deadline which is by the end of this week.

 

Struggling now. :cry:

Link to comment
Share on other sites

 

Hi BIGAL, in my case, all the center lines have already been drawn & i just need to check if they are still center as they were some changes throughout the whole drawings.

 

That thread is for creating center lines. right? Unless i am mistaken?

Link to comment
Share on other sites

Not sure just did a bit of a search using words that I thought would produce a match, really need the end user to see if it fits their needs.

 

Hi, confirm not applicable. I ever came across that thread during my search before though.

Link to comment
Share on other sites

Any help on this? Lisp preferably. So that the lines that are not centered between 2 lines can be lighlighted. Save me the trouble of measuring them 1 by 1.

 

Thanks

Link to comment
Share on other sites

Untitled.jpg

 

Above part of the dwg i am working on. The grey colour is the walls.

 

The coloured lines in the center represent different wall materials. As can be seen some are not centre as the layout as been amended. This are the obvious ones.

 

But some although looks center, has too be measured to verified it. See my comments. I have dimension it for easy understanding.

 

This is like about 10% of part of a single drawing. I have total about 30 such drawings.

 

hope you guys understand why i am asking for help.

 

Thanks

Untitled.jpg

Link to comment
Share on other sites

So are you asking for a program that will "fix" the walls for you? or just a routine that will tell [or show] you that its not equal?

Link to comment
Share on other sites

So are you asking for a program that will "fix" the walls for you? or just a routine that will tell [or show] you that its not equal?

 

Just a way to highlight those lines that are not equal/ center between the walls.

Link to comment
Share on other sites

  • 2 weeks later...
Okay, in that case we need a sample drawing as a go-by otherwise we would be guessing what or what not to consider.

 

Attached is a small sample of the plan.

 

The wall line is in layer 0.

The center wall is under different wall types layer. This are the lines that need to be check if ther are center of the wall or not.

Hope to have a script or lisp to help witht eh process instead od manually dimensioning 1 by 1.

 

wall with center line.dwg

 

Hope to get some help on this. Thanks

Link to comment
Share on other sites

did you get an extension on the deadline by your boss or do you want to have it for a future task? :)

 

Extension. I have 2 more storey left from my first batch of dwgs that I spent the reminding last 2 weeks to measure every single poly line & move/stretch it.

 

Will continue next batch of drawings after finishing the last 2 storey, which will be 30 storey meaning 30 drawings.

 

Basically I still need help on this. Appreciate if any kind soul would be able to help me on this.

 

Thanks.

 

P/s this isn't a one off thing. It is a required process for every project.

Link to comment
Share on other sites

Basically I still need help on this. Appreciate if any kind soul would be able to help me on this.

i'm not CAD draftman, if my idea sound silly but

if you just want to highlight, maybe can try this:

Method1:

1. Change all color to grey or darker color save it.

2. open new drawing & XREF it (1)

3. ncopy any center line to check

4. offset object (3) ie:redraw with different lighter color, try OFF2

 

Method2:

Alternative way not so effective but can try?

1. move UCS to centre end point as base

2. just put a dimordinate place whether X-ing or Y-ing (horizontal or vertical)

3. Use osnap "_nea", dynamic move the end dimension along the side the read dimension

 

Method3: using code is the last option.

Link to comment
Share on other sites

Attached is a small sample of the plan.

 

The wall line is in layer 0.

The center wall is under different wall types layer. This are the lines that need to be check if ther are center of the wall or not.

Hope to have a script or lisp to help witht eh process instead od manually dimensioning 1 by 1.

 

Hope to get some help on this. Thanks

 

I'll have a look-see tomorrow dude :)

Link to comment
Share on other sites

Currently my work now involves checking if polylines is in the center between 2 polylines/lines.

 

If there are not, i need to shift/stretch to make it centre. As usual, some changes are very small & visually cannot be picked out unless i meaure them.

 

Currently i am measuring them 1 by 1 which is as you can imagine, pretty tedious.

 

I searched for a couple of days but was not able to find any lisp that can highlight those lines that are not in the center.

 

Would anyone come across such LISPS that does the job, or can someone help me out by attempting to write out a LISP.

 

Thanks

 

 

Attached is a small sample of the plan.

 

The wall line is in layer 0.

The center wall is under different wall types layer. This are the lines that need to be check if ther are center of the wall or not.

Hope to have a script or lisp to help witht eh process instead od manually dimensioning 1 by 1.

 

[ATTACH]50505[/ATTACH]

 

Hope to get some help on this. Thanks

 

Hi vernonlee.

 

Check these two lisps might help you.

 

http://www.surveydrawing.net/free-lisp-export-polyline-length.html

http://www.surveydrawing.net/free-lisp-create-cntre-line.html

Link to comment
Share on other sites

i'm not CAD draftman, if my idea sound silly but

if you just want to highlight, maybe can try this:

Method1:

1. Change all color to grey or darker color save it.

2. open new drawing & XREF it (1)

3. ncopy any center line to check

4. offset object (3) ie:redraw with different lighter color, try OFF2

 

Method2:

Alternative way not so effective but can try?

1. move UCS to centre end point as base

2. just put a dimordinate place whether X-ing or Y-ing (horizontal or vertical)

3. Use osnap "_nea", dynamic move the end dimension along the side the read dimension

 

Method3: using code is the last option.

 

Hi. Thanks for offering alternative solution. Not sure what option 2 means but option 1 is actually close to what I am currently doing ( it is "the" process rather than method)

 

To clarify, the walls is actually an xref in the drawings where the centre poly line is. And I am checking the centre line of this drawings.

Thanks for trying to help though :)

Edited by vernonlee
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...