Jump to content

Recommended Posts

Posted
Tannar, I've fixed it in another way... I've added next mline segment in each loop and added END osnap while creating in between polyline... Then before next loop, I've entdel that next segment, so that final result after all loops are processed is without gaps at point vertices... There is also one trick if you want reducer or wider component - you must draw it as extension of previous segment and in code you must include (if) statement to check for changes of width factor and if changes occur, you must predict not next segment for mlineing, but next of next segment to be able to force hitting end osnaps for in between polyline... Before next loop next of next segment is entdeleted... And that's all... Still maybe I missed something important, but this fix solved this issue posted by OP...
No problem at all Marko. You are a LISP guru so I'm beyond certain that your fix is a better fix. Mine is simply a non-LISP approach to fixing the issue is all. The O.P. can decide what's best for himself from here.

 

:)

  • Replies 29
  • Created
  • Last Reply

Top Posters In This Topic

  • marko_ribar

    9

  • CAD USER

    8

  • ReMark

    5

  • xpr0

    3

Top Posters In This Topic

Posted Images

Posted

If OP want to avoid OVERKILL-ing at all at the end, then combination of my and your solution is the best... And thanks for kind words, I only fixed what was lack in orig. code... All credits to author - I think ASMI... And I am not so lisp skilled that should be called guru... I just try to be better and keep coding not to forget and to fill emptiness in my ALISP library with more useful staff...

  • 4 months later...
Posted (edited)
Well no one downloaded it... It seems that OP don't need it anymore...

Latest version can be found here :

http://www.cadtutor.net/forum/showthread.php?96683-Remove-distance-from-each-joint&p=660639#post660639

 

M.R.

 

hey marko i tested your lisp & it does solve the problem of gap as mentioned earlier in the thread which is great. but there're some problems.

 

1. it creates mlines and polylines & when i explode the plines it converts them in to (1)single line.

2. it also turnsoff the Osnap & dosen't turns it back on.

3. it also changes the System Variable 'Fillmode' to 0.

 

i'm not complaing, just giving the feed back. if u could fix'em it would wonderfull.

 

 

Image 1.jpg

 

 

 

Image 2.jpg

Edited by xpr0
Posted

Yes, I see, thanks for feedback... I hope that now it's fine... New attachment on the post where was my modification posted...

 

M.R.

Posted (edited)
Yes, I see, thanks for feedback... I hope that now it's fine... New attachment on the post where was my modification posted...

 

M.R.

 

thanx marko now its working properly..

 

Latest Modified Lisp by marko_ribar

Edited by xpr0
Posted

Sorry for inconvenience, I've found some small mistakes in 2 places... Routine reattached... My name is Marko Ribar it's in signature with "k" char...

Posted
Sorry for inconvenience, I've found some small mistakes in 2 places... Routine reattached... My name is Marko Ribar it's in signature with "k" char...

 

sorry my bad, i corrected ur name. what were the two mistakes.

Posted
sorry my bad, i corrected ur name. what were the two mistakes.

 

Just small mistakes : They were concerned correct OSNAP functionality... Just search in text editor for word "osmode"... On 1 place after "OSMODE" was set to 1 which is needed, "OSMODE" was set to 0 and should be (nth 3 oldVars)... Then when you continue searching, you'll find that I incorrectly wrote (nth oldVars 3) and should be (nth 3 oldVars)... That's all, but I've reattached file again...

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