Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Discussions > Ruby API > OFFSET A LINE
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Smoothmover  
View profile  
 More options Oct 2 2008, 8:14 am
From: Smoothmover <moree...@internode.on.net>
Date: Thu, 2 Oct 2008 05:14:24 -0700 (PDT)
Local: Thurs, Oct 2 2008 8:14 am
Subject: OFFSET A LINE
I want to offset a line parallel at a given distance, any ideas?
Thank you

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Todd Burch - Katy, Texas  
View profile  
 More options Oct 2 2008, 9:43 am
From: "Todd Burch - Katy, Texas" <mr.todd.bu...@gmail.com>
Date: Thu, 2 Oct 2008 06:43:11 -0700 (PDT)
Local: Thurs, Oct 2 2008 9:43 am
Subject: Re: OFFSET A LINE
Do you want to draw a new line or move it?

If you want to move it, figure out the direction you want to move it
(AKA, figure out the vector) and then create a transformation with
that vector, and then apply that transformation to the line.

Todd

On Oct 2, 7:14 am, Smoothmover <moree...@internode.on.net> wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Smoothmover  
View profile  
 More options Oct 4 2008, 7:26 am
From: Smoothmover <moree...@internode.on.net>
Date: Sat, 4 Oct 2008 04:26:02 -0700 (PDT)
Local: Sat, Oct 4 2008 7:26 am
Subject: Re: OFFSET A LINE
no, I want to draw a line parallell to another at a required offset.
Also is there a plugin to trim/extend a line.
Thanks Todd

On Oct 2, 11:43 pm, "Todd Burch - Katy, Texas"


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Todd Burch - Katy, Texas  
View profile  
 More options Oct 4 2008, 9:07 am
From: "Todd Burch - Katy, Texas" <mr.todd.bu...@gmail.com>
Date: Sat, 4 Oct 2008 06:07:09 -0700 (PDT)
Local: Sat, Oct 4 2008 9:07 am
Subject: Re: OFFSET A LINE
To draw a new line, the procedure is similar.   (There is more than
one way to do it, but this one is simple.)

Determine which end of the line you want to work with.  It doesn't
matter if you want to work with edge.start.position or
edge.end.position.

From that point, calculate the vector from your existing end point to
the associated new line's same end point.

Then, using the same vector, do the same thing with the starting
edge's other endpoint.   Now, you have your two points, so draw the
line.

If might get a little more complicated if the edge you are offsetting
is part of a group or component.  In that case, you may have to
extract the group or components current transformation and apply it as
well.

Todd

On Oct 4, 6:26 am, Smoothmover <moree...@internode.on.net> wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven Monrad  
View profile  
 More options Oct 4 2008, 2:22 pm
From: "Steven Monrad" <stevenmon...@gmail.com>
Date: Sat, 4 Oct 2008 11:22:57 -0700
Local: Sat, Oct 4 2008 2:22 pm
Subject: Re: OFFSET A LINE

Use the Tape Measure tool, select the line, drag the resulting Construction
Guide (dashed) away from the original line in the desired plane, then enter
the desired offset distance in the control box and the guide line will be
fixed there.  Draw your new line on it, then erase the guide line. Pretty
basic frequent operation for fast drawing.  Same tool does the same with a
point also.

On Sat, Oct 4, 2008 at 4:26 AM, Smoothmover <moree...@internode.on.net>wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Smoothmover  
View profile  
 More options Oct 6 2008, 7:41 am
From: Smoothmover <moree...@internode.on.net>
Date: Mon, 6 Oct 2008 04:41:35 -0700 (PDT)
Local: Mon, Oct 6 2008 7:41 am
Subject: Re: OFFSET A LINE
thanks steven
yes this will work, but I was thinking that there should be a simple
procedure that draws a line parallel after selecting the parent line
and being prompterd (in the control box) for the offset.I haven't
looked into ruby programming yet but someone may have done this .
Also I don't understand why SU hasn't made a simple parallel line
command.Seems strange that the whole SU program depends on ruby
scripts (hundreds) to make it better when the SU people could use
ideas to write stand alone commands in a revised program.
smustard has a ruby offset but I can't seem to get it into the
program. I have sent ideas to SU but no reply. Is there going to be a
new version with procedures form the best rubies included as standard
operations?

cheers

On Oct 5, 5:22 am, "Steven Monrad" <stevenmon...@gmail.com> wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Todd Burch - Katy, Texas  
View profile  
 More options Oct 6 2008, 8:26 am
From: "Todd Burch - Katy, Texas" <mr.todd.bu...@gmail.com>
Date: Mon, 6 Oct 2008 05:26:21 -0700 (PDT)
Local: Mon, Oct 6 2008 8:26 am
Subject: Re: OFFSET A LINE
If you didn't want a Ruby solution, why did you post this in the Ruby
forum?

On Oct 6, 6:41 am, Smoothmover <moree...@internode.on.net> wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google