Jump to content

Recommended Posts

Posted

Hi friends.

I 'm trying to write a lisp routine that can show me the total length of a path (include lines and arcs) from start point to point i introduced in path.(ie: it ia possible the total length of path is longer than the length i need and it should be determined to routine that the point i introduced is included in one entity of all path entity)

cause i 'm ew in programming, i confuse a little and can't focus on it.

please guide me.

Thanks a lot.

Posted

Hi alan.

Thanks a lot. I think it would be so useful for me.

But i'm not a member of this site. till I get a membership, I have a question.

Based on your post, it seems that the path should be a polyline. but my all paths are included lines and arcs.

is it possible to select path's entities as entery of your routine?

Posted

It will measure along any selected curve object.

eg. Arc, Circle, Ellipse, Line, LWPolyline, etc.

 

I just used a LWPolyline for demo purposes.

 

However, you you only measure along one object at a time. There's too many variables to consider if one was allowed to measure along 2 separate curves. Hell, what if they don't connect?

Posted

I obviously don't mind if you use/modify code I post. However, if you are going to edit my code, I would appreciate it if you followed common courtesy and noted where you made modifications.

Please alter/note what you have posted.

 

 

I didn't test your modifications, but it seems like you are trying to convert everything selected to a Polyline before hand, then take the distance along it. Am I correct? Do you need help in getting this to work properly?

Posted

yes, you right.

i tested it more and more. it's working propely for me. however, it maybe exists some defects in my modification.

thanks a lot.

Posted
I obviously don't mind if you use/modify code I post. However, if you are going to edit my code, I would appreciate it if you followed common courtesy and noted where you made modifications.

Please alter/note what you have posted.

 

Kasra,

 

Please take note of this if you wish to continue to receive voluntary help.

Posted

I'll try to act based on your admonition dear friends.

Posted
I'll try to act based on your admonition dear friends.

Then note your modifications in the code or remove it entirely. I don't mean to be a jerk, and I apologize to the forum for it, but it's common courtesy and I kindly requested that you follow along.

Posted
Then note your modifications in the code or remove it entirely. I don't mean to be a jerk, and I apologize to the forum for it, but it's common courtesy and I kindly requested that you follow along.

 

I second this notion - please understand Kasra, that any modifications made to the code without proper notation will reflect directly on the original author, and I'm sure you'll agree that this is unfair on the author who has put time and effort into the program to make it function correctly.

Posted

And I quote:

 

Please ensure that you have the right to publish code on a public forum. In most cases, the code you are publishing will be your own and it will be assumed that if no attribution is given, you are the author. However, if you are not the author, you must make this clear and where possible, give credit to the author. Any routines published here must have their header intact, including any title, instructions, author contact details, date and copyright information. If at all possible, please make sure that you have the the authors permission to publish their work.

 

http://www.cadtutor.net/forum/showthread.php?t=9184

Posted

Dear alanjt.

I 'm so ashamed of that post and do apologise with you.

My purpose in modification was just to add one more application to your complete routine. however, I never change the header of the routine. cause i belive that it belongs to you.

I must consult with you get premission for that.

Just I can say sorry for discomfortin you.

Posted

No hard feelings. :) I appreciate your apology.

 

No, you don't remove any headers, you just note any modifications you may have made.

 

Now, are you just attempting to select several line, arc, polyline objects, convert to a polyline and then measure along them? Also, are you just wanting them to remain as a polyline when the routine is over?

Posted

Thanks dear alan.

Yes, i prefer it can explode created polyline after it request me to answer (YES/NO).

There is one question:

when i specify first point and then select the same point for second time, it dosen't alert the distance 0.00 and routine got cancel.

Dosen't it allow to select the same point?

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