SketchUcation Premium Membership

 

 

[Plugin] Arc_Offset_True v1.5 20120403

[Plugin] Arc_Offset_True v1.5 20120403

Postby TIG » Tue Apr 03, 2012 10:33 am

TIG (c) 2012
All Rights Reserved.
THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES,INCLUDING,WITHOUT LIMITATION,THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
###
Arc-offset_true.rb
###
Usage:
Adds a new 'Tool' menu item 'Arc_Offset_True'.
Adds a new context-menu item 'Arc_Offset_True' if a single Arc is selected.
Enter the required +ve/-ve offset distance in the dialog.
Enter the required number of copies [if it's -ve and would zero/flip the
copies its curtailed and a closing dialog tells you].
It works on Arcs or Circles.
Unlike the native Offset tool all offset-arcs are always made as 'Arcs' -
whether they are faced/not-faced, or intersect with other geometry.
###
Donations:
By PayPal.com to info @ revitrev.org
###
Version:
1.0 20120403 First issue.
1.1 20120403 Now accommodates trimmed first/last segments properly, also
traps for -ve offsets that would 'zero' or 'flip' the offset-arc, the
selection now passes to the new offset-arc.
1.2 20120403 Now has optional 'Number' in dialog to make arrayed offsets.
Context-menu option added.
1.3 20120403 Multiple offsets will now intersect with other geometry only
AFTER they have ALL been formed.
The native Offset tool's offset-arcs that are intersected become Curves,
but this tool will make them as Arcs [albeit 'split'].
Offset-arcs made from an Arc that bounds a face will become Curves in the
native Offset tool; this tool produces similar results.
1.4 20120403 With the native Offset tool offset-arcs made from an Arc that
bounds a face will become Curves; however, this tool makes them as Arcs.
1.5 20120402 Minor code tweak [you'd probably not notice - I will].
###
Please, register (free) to access all the attachments on the forums.
TIG
User avatar
TIG
Global Moderator
 
Posts: 13919
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Arc_Offset_True v1.1 20120403

Postby TIG » Tue Apr 03, 2012 11:17 am

Version v1.1 viewtopic.php?p=395769#p395769 now correctly mimics the original Arc's start/end segments if they were 'trimmed', it also stops you offsetting with a negative distance to 'zero' or beyond...
TIG
User avatar
TIG
Global Moderator
 
Posts: 13919
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Arc_Offset_True v1.1 20120403

Postby Wo3Dan » Tue Apr 03, 2012 11:20 am

Tried it TIG, :thumb: thanks.
(I won't "complain" that the entered distance isn't the same as reflected by the distance between segments. And Jeff will be pleased)
If I may suggest, maybe an arraynr._inputfield could be added to the dialog box, to do multiple offsets at once?
And is it possible/safe to add the tool to the right click context menu?
User avatar
Wo3Dan
Top SketchUcator
 
Posts: 504
Joined: Sat Dec 01, 2007 10:42 pm
Location: 51º49' 41.13"N / 4º42' 27.60"E / Netherlands
Name: Gerrit Hubers

Re: [Plugin] Arc_Offset_True v1.2 20120403

Postby TIG » Tue Apr 03, 2012 11:57 am

Here's v1.2 viewtopic.php?p=395769#p395769
It now has an optional 'Number' in the dialog [which defaults to 1] to make arrayed offsets.
A context-menu option has been added.
TIG
User avatar
TIG
Global Moderator
 
Posts: 13919
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Arc_Offset_True v1.2 20120403

Postby Wo3Dan » Tue Apr 03, 2012 12:35 pm

TIG wrote:It now has an optional 'Number' in the dialog [which defaults to 1] to make arrayed offsets.
A context-menu option has been added.

Great! I notice that no faces are create from new geometry. Not that it is an issue. But an original face is an obstacle!
From experimenting with/without faces where the original arc is part of the boundary of the face, I notic that whenever a face is involved, the array operation stops at one and splits up the new arc into as many edges as there would be segments. (thus causing the array offset to stop at one, I guess)
User avatar
Wo3Dan
Top SketchUcator
 
Posts: 504
Joined: Sat Dec 01, 2007 10:42 pm
Location: 51º49' 41.13"N / 4º42' 27.60"E / Netherlands
Name: Gerrit Hubers

Re: [Plugin] Arc_Offset_True v1.2 20120403

Postby ZFRPS » Tue Apr 03, 2012 12:53 pm

Great!
Q1.jpg
Q2.jpg
Please, register (free) to access all the attachments on the forums.
sketchup is bim
ZFRPS
 
Posts: 88
Joined: Tue Jul 29, 2008 1:40 am

Re: [Plugin] Arc_Offset_True v1.2 20120403

Postby Trogluddite » Tue Apr 03, 2012 1:27 pm

Works a treat, thanks TIG. :D
Trogluddite
 
Posts: 180
Joined: Wed Sep 07, 2011 8:56 am
Name: Steve
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Intermediate

Re: [Plugin] Arc_Offset_True v1.2 20120403

Postby mitcorb » Tue Apr 03, 2012 1:37 pm

Thank you, TIG:
I estimate that you did this in about 4 hours judging from your last post in the "Inacurrate" thread until you came out with the first version. This is sorta Herculean ;)
I take the slow, deliberate approach in my aimless wandering.
User avatar
mitcorb
Top SketchUcator
 
Posts: 3396
Joined: Sat Mar 22, 2008 2:32 pm
Location: USA
Name: Tim
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] Arc_Offset_True v1.2 20120403

Postby TIG » Tue Apr 03, 2012 4:35 pm

Wo3Dan wrote:
TIG wrote:It now has an optional 'Number' in the dialog [which defaults to 1] to make arrayed offsets.
A context-menu option has been added.

Great! I notice that no faces are create from new geometry. Not that it is an issue. But an original face is an obstacle!
From experimenting with/without faces where the original arc is part of the boundary of the face, I notic that whenever a face is involved, the array operation stops at one and splits up the new arc into as many edges as there would be segments. (thus causing the array offset to stop at one, I guess)
At the moment it offsets the arc and continues using the last one, if that's intersected you get a split result... I'll look at a fix.
TIG
User avatar
TIG
Global Moderator
 
Posts: 13919
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Arc_Offset_True v1.2 20120403

Postby brookefox » Tue Apr 03, 2012 5:55 pm

Thank you, TIG.

Your attention to 'right' wrongs not right, even if right, if not without a fight, make no one uptight, and we appreciate it, a lot.
~ Brooke
User avatar
brookefox
 
Posts: 832
Joined: Thu Jun 26, 2008 4:17 pm
Location: Pacific northwest, USA
Name: Brooke
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] Arc_Offset_True v1.2 20120403

Postby Jim Smith » Tue Apr 03, 2012 5:57 pm

thanks TIG. I haven't tried it yet but have confidence it will be the answer to one of my SU-wish list items :D
"Out of clutter find simplicity,
from discord find harmony,
In the middle of difficulty lies opportunity"
Albert Einstein
User avatar
Jim Smith
Premium Member
Premium Member
 
Posts: 418
Joined: Mon Nov 12, 2007 2:25 pm
Location: Crown Point, Indiana, USA , home and office)
Name: Jim Smith
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Arc_Offset_True v1.2 20120403

Postby Pilou » Tue Apr 03, 2012 6:19 pm

Tig's plug don't give the same result than the Multiple Offests of Sdmitch
Each plug has it's own utility ;)
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10027
Joined: Wed Jan 23, 2008 10:33 pm
Operating system: Windows
SketchUp version: 6
License type: Free
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin] Arc_Offset_True v1.3 20120403

Postby TIG » Tue Apr 03, 2012 8:10 pm

Here's v1.3 viewtopic.php?p=395769#p395769
Multiple offsets will now intersect with other geometry only AFTER they have ALL been formed.
The native Offset tool's offset-arcs that are intersected become Curves, but this tool will make them as Arcs [albeit 'split'].
Offset-arcs made from an Arc that bounds a face will become Curves in the native Offset tool; this tool produces similar results.
I think that now addresses the various issues...
TIG
User avatar
TIG
Global Moderator
 
Posts: 13919
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Arc_Offset_True v1.3 20120403

Postby jorge2011 » Tue Apr 03, 2012 9:45 pm

excellent plugin.
a query.
is possible to make the plugin more interactive? not to use dialog. Use vcv Viewer?

thank you very much
jorge2011
 
Posts: 154
Joined: Thu Jun 02, 2011 5:01 pm
Name: jorge2011
Operating system: Windows
SketchUp version: 7
License type: Pro
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] Arc_Offset_True v1.4 20120403

Postby TIG » Tue Apr 03, 2012 10:27 pm

Here's v1.4 viewtopic.php?p=395769#p395769
The final pieces of the jigsaw are hopefully in place...

Unlike the native Offset tool, all offset-arcs are now always made as 'Arcs' - whether they are faced/not-faced, or intersect with other geometry.
TIG
User avatar
TIG
Global Moderator
 
Posts: 13919
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Arc_Offset_True v1.5 20120403

Postby TIG » Tue Apr 03, 2012 11:14 pm

Here's v1.5 viewtopic.php?p=395769#p395769
Includes a needed a minor code tweak... you'd probably not notice, but I will :?
TIG
User avatar
TIG
Global Moderator
 
Posts: 13919
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Arc_Offset_True v1.5 20120403

Postby Jeff Hammond » Wed Apr 04, 2012 1:33 am

ha! awesome.. this one immediately went to a shortcut assignment ;)


the next challenge, if it's even possible, would be to allow us to select a string(?) of lines/curves/arcs then offset them.. say i had a straight line, then a tangent arc, then another straight line.. select all three and you could offset them at once.. only since there's an arc in there, your offset_true will recognize it and deal with it accordingly
(as this is a scenario where vanilla offset will really flounder)
dotdotdot
User avatar
Jeff Hammond
Global Moderator
 
Posts: 4308
Joined: Thu Jan 24, 2008 11:16 pm
Location: newyorkcity
Operating system: Mac
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Arc_Offset_True v1.3 20120403

Postby Wo3Dan » Wed Apr 04, 2012 8:30 pm

TIG wrote:..Multiple offsets will now intersect with other geometry only AFTER they have ALL been formed....

Thanks TIG, for all the changes you made with the speed of lightning.
I used "isolate the problematic arc in a group" before multiple offsets. Then explode the result again.
Out of curiosity, is this how you work around the intersect problem in the newest version?
Thanks again.
User avatar
Wo3Dan
Top SketchUcator
 
Posts: 504
Joined: Sat Dec 01, 2007 10:42 pm
Location: 51º49' 41.13"N / 4º42' 27.60"E / Netherlands
Name: Gerrit Hubers

Re: [Plugin] Arc_Offset_True v1.3 20120403

Postby TIG » Wed Apr 04, 2012 8:52 pm

Wo3Dan wrote:
TIG wrote:..Multiple offsets will now intersect with other geometry only AFTER they have ALL been formed....

Thanks TIG, for all the changes you made with the speed of lightning.
I used "isolate the problematic arc in a group" before multiple offsets. Then explode the result again.
Out of curiosity, is this how you work around the intersect problem in the newest version?
Thanks again.
I now group the original arc [as a copy] and then scale it multiple times about its origin, then explode all of them when I'm done; that way, they only 'intersect' with everything else when it's all done...
The way it gets around the issue of offsetting an arc that is bounding a face [that manifests itself as a new curve with the native tool] is to group the original arc AND all of its connected faces, then erase all of the edges in the group that are not part of the original arc. Then we have a grouped arc that can be scaled/exploded etc...
Thus all 'true' offsets of an arc now always result in new arcs [unless of course it's a -ve offset, when some will not get made at all, if the inwards offset is <= arc.radius]
:geek:
TIG
User avatar
TIG
Global Moderator
 
Posts: 13919
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Are you a Premium Member? Get your freebies here. Are you not a Premium Member yet? Upgrade your account to grab these freebies instantly.

Ad Machine
Robot
 
Posts: 2012


Return to Plugins

Who is online

Users browsing this forum: jeffgo, mra, OSN58 and 4 guests