Community
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<rphillps> a écrit dans le message de news:I
href="mailto:6098545@discussion.autodesk.com">6098545@discussion.autodesk.com...
need a routine that will allow you to pick a polyline and then tell me the
smallest and the largest segment lengths, or something that will work for the
following. I am working on some master planing and did no do the original
layout not we have some design requirements. I would like to be able to select
a ployline that has multiple segments and the routine tell me what the
shortest length and the longest lengths are. So the I can verify that we do
not have any runs of pipe over a certain length. Do anyone have anything like
that? Thanks
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<rphillps> a écrit dans le message de news:Is
href="mailto:6101341@discussion.autodesk.com">6101341@discussion.autodesk.com...
there any way to make this zoom to the min or max lengths depending upon the
users choice and if no choice the view stays the same?
Thanks
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<rphillps> a écrit dans le message de news:Is
href="mailto:6101341@discussion.autodesk.com">6101341@discussion.autodesk.com...
there any way to make this zoom to the min or max lengths depending upon the
users choice and if no choice the view stays the same?
Thanks
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<rphillps> a écrit dans le message de news:While
href="mailto:6101721@discussion.autodesk.com">6101721@discussion.autodesk.com...
working your magic can you possibly change the command so that if the user
selects the polyline before running the command it will use the selection.
Currently if you select a polyline before running the command it will still
ask for the user to pick the polyline again. Thanks
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<rphillps> a écrit dans le message de news:Can
href="mailto:6101856@discussion.autodesk.com">6101856@discussion.autodesk.com...
you make it only allow one selection?
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<rphillps> a écrit dans le message de news:This
href="mailto:6101901@discussion.autodesk.com">6101901@discussion.autodesk.com...
is absolutely perfect Thanks for all the help.
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<Just
href="mailto:fwilson@wgwarchitects.com">fwilson@wgwarchitects.com> a
écrit dans le message de news:
href="mailto:6102135@discussion.autodesk.com">6102135@discussion.autodesk.com...
for grins (actually, not really, I do kind of want this...) Using your code,
how would you go about finding the segment of the polyline that was selected
(i.e. the segment picked on to select the polyline)? I would like to get the
length of a selected polyline segment and then do some math using the end
point coordinates of that segment (rise, run, slope) ? I have some Lisp code
that does this, but it doesn't use VLisp.
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<Actually,
href="mailto:fwilson@wgwarchitects.com">fwilson@wgwarchitects.com> a
écrit dans le message de news:
href="mailto:6103146@discussion.autodesk.com">6103146@discussion.autodesk.com...
I am not the original poster. I don't need the implied selection. I was
curious about how the code would look if you tried to take the pick point from
selecting the polyline and use VLisp to find the selected segment and get its
start and end points and angle. If you don't have the time or inclination,
don't worry about it. I'm slowly getting around to finding a method to do it.
-fred.
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<Here's
href="mailto:fwilson@wgwarchitects.com">fwilson@wgwarchitects.com> a
écrit dans le message de news:
href="mailto:6103432@discussion.autodesk.com">6103432@discussion.autodesk.com...
what I have now. I don't need the MIN and Max segments in this routine. I have
had this around for years to just give the basics of lines. I added the
polyline stuff that I got from Tony Hotchkiss back in 1998. We do a lot with
slopes of ramps and other things, so the Rise and Run and Slope are the
primary things this routine spits out. Often times the slope is part of a
triangle polyline that makes the objects easier to work with. So, I added the
VL stuff about lines as a learning exercise, and stumbled upon this thread and
have been a little stumped about how to proceed with working with the polyline
in VLisp. FYI - I have commented out some custom (and copyrighted) functions
that are not important to the basics of this routine. It does still require
the DosLib functions from www.McNeel.com (just for the message box that pops
up). The Tony Hotchkiss functions are credited at the bottom of the file. Let
me know if something is still missing. Fred