[Plugin] Exploded Arc Centerpoint Finder UPDATE May 23, 2013

[Plugin] lines2arc.rb

Postby Chris Fullmer » Tue Jul 14, 2009 4:34 am

EarthMover wrote:Could you potentially convert a simple curve to an ArcCurve?


I think that TIG perhaps already created that plugin? Or maybe he created the first part of it and I was thinking I would use it to finish writing it....I don't recall anymore. But I agree, that would be handy. Not easy, maybe not even possible. But definitly handy! :)

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Exploded Arc Centerpoint Finder

Postby TIG » Tue Jul 14, 2009 11:24 am

...TIG wasn't... but... what is you want to do take a Curve and make it into an ArcCurve ? For example you Weld together some Edges into a Curve and want them to become an ArcCurve ? This would only work if the original edges would form an Arc anyway - a Curve isn't necessarily even 2D let alone an Arc... Rather, don't you really want to select some Edges and make them into an Arc if it's possible to do so ?

Wouldn't it be more flexible [and quicker] to use Chris's tool to add a CentrePoint to what could be the Arc [from the Exploded Edge set], then place a Cpoint at a Vertex (or the two ends), Erase the Edges [or Erase them later ?] and simply redo an Arc/Circle using the points etc?

Can you give some better examples of where this might be useful [better/quicker] so I can see if the effort of making it work would be worthwhile...

I have already written a Method for changing Segments in an Arc viewtopic.php?p=158903#p158903
It has an example script too: you select the Arcs to change, in the Ruby Console type changearcsegments 64 and they all have 64 segements [change number as desired]. It is like Entity Info in that you cannot change the Segments of Arcs forming complex 3D Geometry like cylinders...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Exploded Arc Centerpoint Finder

Postby EarthMover » Tue Jul 14, 2009 3:30 pm

TIG,

Thanks for the response. I'm referring to offset arcs. When you offset an Arc, the result is a simple curve, which looses it's ability to increase segments,find center point from or take a radius dimension pull offs. In my work, I design a lot of radius steps, curved walls, curved walkway & Patios. I often will draw out an Arc, which represents a landing, then I will offset that Arc 5 or 6 times for my steps. By the time I get out the last offset, I may want to increase the segments in my arc as it is looking choppy, but it is not possible at that point. I'll also often delete the initial arc to open up my landing, then I'm left with all simple curves and I have no ability to find the center point, unless I explode a curve, use Chris's script, then reweld, but still it is not an Arc. I also tend to have trouble getting the weld ruby to work on certain exploded curves, and instead of welding, it will decimate it into more segments. The other thing is dimensioning. Only with an Arc can you use the dimension tool to get a quick radial dimension. If you try and get a dimension on a offset curve, it will just measure one of the segments and not the whole curve. This is where a conversion tool would be useful.

I noticed also, that when you have an Arc that is part of a face and extruded, it's extruded counterpart maintains it's Arc status, but both the initial Arc and the extruded Arc lose their ability to have to the segments changed, for obvious reasons. This would be important for trying to convert Curves to Arcs in 3D space, as the newly created Arc would have be locked similarly. The gain from converting a curve to an arc in 3D space would be solely the ability to pull radial dimensions and also to find center point. Unless someone wrote a script that would allow for selecting two arc counterparts in an extrusion and simultaneously increasing the segments in 3D after a curve to Arc conversion.

EDIT - I just looked at the link you posted. Sounds like my latter request was addressed in that post and not possible. Oh well then.
0
3D Artist at Clearstory 3D Imaging
Guide Tool at Winning With Sketchup
Content Creator at Skapeup
User avatar
EarthMover 
Premium Member
Premium Member
 

Re: [Plugin] Exploded Arc Centerpoint Finder

Postby RunnerPack » Wed Aug 12, 2009 8:37 am

Hey, EarthMover,

It was my request on this Google Group post that (partially?) inspired Chris F. to make his plugin. Using his idea from that discussion, I made code to find the center-point of two Edges... which I promply discarded when he made his implementation that didn't look like a train-wreck :lol:

So, I took his code (without permission; sorry, Chris! :oops:) and made my own tool with a different interface (context menu) that I think adds (some of) the functionality you want. Since you probably wouldn't find it otherwise, here is the thread where I attached mine.

The readme header in the file also explains how other coders can use the new methods for finding the center of a Curve or of any two Edges. I also wanted to add a radius method and the "convert Curve to ArcCurve" function discussed above, but they're still on the todo list. BTW, my plugin also works on Circles and Polygons.
0
You might have noticed... I'm a bit of a ferpectionist.
User avatar
RunnerPack 
 

Re: [Plugin] Exploded Arc Centerpoint Finder

Postby c.plassais » Mon Sep 28, 2009 7:24 pm

Hi Chris,
Arc Centerpoint Finder translated into French and the attached link http://biblio3d.1fr1.net/plug-in-sketchup-f19/plugin-arc-centerpoint-finder-en-francais-retrouver-le-point-central-d-un-arc-t448.htm#3004

at the next

Christophe
0

c.plassais 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Exploded Arc Centerpoint Finder

Postby Chris Fullmer » Mon Sep 28, 2009 7:44 pm

Great, thanks Christophe! I've updated the first post to also include a link to the French version.

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Exploded Arc Centerpoint Finder

Postby jeff hammond » Wed Sep 30, 2009 1:06 am

Chris Fullmer wrote:Name: Arc Centerpoint Finder
Version: v1.0


wow! nice one.
perfect little timesaver.
thank you
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

Re: [Plugin] Exploded Arc Centerpoint Finder

Postby thomthom » Tue Oct 27, 2009 11:18 am

There's a wee bug. It adds the CPoint in model.entities instead of model.active_entities - so if you use this inside a group/component it's not added to the correct context.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Exploded Arc Centerpoint Finder

Postby Panga » Tue Oct 27, 2009 1:14 pm

Chris, you're a mind reader...I was looking for this function for a long time. Thanks for your help in our sketchup's lives !!
0

Panga 
Premium Member
Premium Member
 

Re: [Plugin] Exploded Arc Centerpoint Finder

Postby Chris Fullmer » Tue Oct 27, 2009 4:33 pm

thomthom wrote:There's a wee bug. It adds the CPoint in model.entities instead of model.active_entities - so if you use this inside a group/component it's not added to the correct context.


Oh darn, there was a little while there where I think I forgot about .active_entities and just added everything to the .entities collection. I'll fix it and get it uploaded later today,

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Exploded Arc Centerpoint Finder UPDATE Oct 27, 2009

Postby Chris Fullmer » Tue Oct 27, 2009 9:46 pm

ok, now updated so that when it is used in group/component edit mode, it will add the construction point inside the group that is being edited. Thanks for pointing that out Thom.

So re-download it from the first post in the thread.

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Exploded Arc Centerpoint Finder UPDATE Oct 27, 2009

Postby thomthom » Tue Oct 27, 2009 10:21 pm

:thumb:
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Exploded Arc Centerpoint Finder UPDATE Oct 27,

Postby August » Fri Apr 30, 2010 11:03 pm

Thanks Chris,

I found this to be a very readable script for learning a little more Ruby. It's pretty clear from context what it's doing as far as finding a perpendicular direction, creating a temporary "z" from the original two edges, etc. I assume the ".cross" function is the Cross-product from vector algebra, which I vaguely remember, but I'll have to look up what that actually is and why it's called "cross".

Thanks again,
August
0
“An idea, like a ghost, must be spoken to a little before it will explain itself.”
-- Charles Dickens

August 
 

Re: [Plugin] Exploded Arc Centerpoint Finder UPDATE Oct 27,

Postby kostas_designer » Wed May 05, 2010 2:18 pm

i know it may seem stupid, but why can't i see the context "point at center" menu when i right-click on an arc? :oops:
0

kostas_designer 
 

Re: [Plugin] Exploded Arc Centerpoint Finder UPDATE Oct 27,

Postby Chris Fullmer » Wed May 05, 2010 3:42 pm

You have to first enable the sketchup ruby script examples from Window > Preferences > Extensions > Ruyb Script Examples (or might be the one called Utilities tools). Enable them both, then you should get the point at center option.

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Exploded Arc Centerpoint Finder UPDATE Oct 27,

Postby jeff hammond » Wed May 05, 2010 3:57 pm

Chris Fullmer wrote:You have to first enable the sketchup ruby script examples from Window > Preferences > Extensions > Ruyb Script Examples (or might be the one called Utilities tools). Enable them both, then you should get the point at center option.

Chris


ha!
i never knew this function came with SU.. i've been using jim f's arc_centerpoint.rb for a couple of years now.
:enlight:
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

Re: [Plugin] Exploded Arc Centerpoint Finder UPDATE Oct 27,

Postby Jim » Wed May 05, 2010 4:05 pm

Hehe, and I wrote that before I realized Point at Center came with SketchUp!
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] Exploded Arc Centerpoint Finder UPDATE Oct 27,

Postby kostas_designer » Wed May 05, 2010 4:12 pm

Jeff Hammond wrote:
Chris Fullmer wrote:You have to first enable the sketchup ruby script examples from Window > Preferences > Extensions > Ruyb Script Examples (or might be the one called Utilities tools). Enable them both, then you should get the point at center option.

Chris


ha!
i never knew this function came with SU.. i've been using jim f's arc_centerpoint.rb for a couple of years now.
:enlight:


Me too, seems that the ways of SU are infinite! :D

Thanks for the tip, Chris.
0

kostas_designer 
 

Re: [Plugin] Exploded Arc Centerpoint Finder UPDATE Oct 27,

Postby boofredlay » Sat Sep 18, 2010 4:53 pm

I just wanted to thank you again for this Chris. It is a very useful tool. :thumb:
0
User avatar
boofredlay 
Global Moderator
 

Re: [Plugin] Exploded Arc Centerpoint Finder UPDATE Oct 27,

Postby Chris Fullmer » Sat Sep 18, 2010 5:29 pm

Oh good, glad its helpful!

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Exploded Arc Centerpoint Finder UPDATE Oct 27,

Postby baz » Sun Sep 19, 2010 12:42 am

Great tool, thanks Chris.
baz
0
I am both an early bird and a night owl, I am some form of permanently energized dragon.
User avatar
baz 
 

Re: [Plugin] Exploded Arc Centerpoint Finder UPDATE Oct 27,

Postby watkins » Thu Mar 31, 2011 8:56 pm

Dear Chris,

I made a request a little time ago for an icon to go with this script. I use your centrepoint finder so often that an icon would be very useful (and yes, TIG, I know I could assign a shortcut...)

Many thanks,

Bob
0

watkins 
 

Re: [Plugin] Exploded Arc Centerpoint Finder UPDATE Oct 27,

Postby jamalito » Tue Jan 03, 2012 12:26 pm

hello Chris thank for this Plugin but after I updated my SU8 to SU8m2 it was not work when I run in form plugin menu show to me this window I don't know what is meaning ?
note I removed it and instal it again but same problem :cry:
0
User avatar
jamalito 
 

Re: [Plugin] Exploded Arc Centerpoint Finder UPDATE Oct 27,

Postby mitcorb » Tue Jan 03, 2012 2:02 pm

Hi, jamalito:
It appears you have preselected a non exploded arc. Chris's plugin is for calculating a centerpoint of 2 or more unconnected or nonwelded segments. Use Sketchup's native Point at Center or Jim's Autocenterpoint.
0
User avatar
mitcorb 
Top SketchUcator
 

Re: [Plugin] Exploded Arc Centerpoint Finder UPDATE May 23,

Postby GM2013 » Wed Dec 04, 2013 5:02 am

Had this very handy plugin installed previouslyu but I had to reintall Sketchup today.
I tried installing via the Sketchucation plugin store but it didn't work so I manually placed it in the plugin folder and but doesn't appear in the plugins menu.

Am I doing something wrong?
0

GM2013 
 

Re: [Plugin] Exploded Arc Centerpoint Finder UPDATE May 23,

Postby Dave R » Wed Dec 04, 2013 11:15 am

GM2013 wrote:Had this very handy plugin installed previouslyu but I had to reintall Sketchup today.
I tried installing via the Sketchucation plugin store but it didn't work so I manually placed it in the plugin folder and but doesn't appear in the plugins menu.

Am I doing something wrong?


Yes.

You didn't actually install the plugin. files with the .rbz extension are intended to be installed via Install Extensions under Preferences>Extensions. Put the file back into your Downloads folder, or wherever it was downloaded to. Open Preferences and go to Extensions. Click on the Install Extension button, navigate to the file, choose it and open it. Most plugins will work after this install but it won't hurt to close SketchUp and reopen it.

BTW, could you please complete your profile? Which version of SketchUp are you using?
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Exploded Arc Centerpoint Finder UPDATE May 23,

Postby TIG » Wed Dec 04, 2013 11:20 am

GM2013 wrote:Had this very handy plugin installed previouslyu but I had to reintall Sketchup today.
I tried installing via the Sketchucation plugin store but it didn't work so I manually placed it in the plugin folder and but doesn't appear in the plugins menu.

Am I doing something wrong?
Dave just beat me to it...
BUT since I had typed this here's my equivalent text...


You must be doing something wrong :roll:
Installs fine for me ???
I assume you are on v8 or v2013 your User-Profile is incomplete...
If it's v8 you need the latest version to be able to AutoInstall RBZ archives.
If you have manually put the tool's RB file into the Plugins folder and restarted SketchUp then the tool should appear in the submenu Plugins > Chris Fullmers Tools...

If it's not in there you haven't actually installed it right... :?
If it is, then it has loaded.

Some common reasons:
- You left it inside the RBZ - SketchUp only auto-loads RB/RBS files it finds within the Plugins folder as it starts...
- You don't have Properties > Security permissions set to FULL, which allows you to add files to the Plugins folder.
If so it might look like you added it but a 'Compatibility Files...' link/button in the top-bars of the Windows Explorer window for Plugins is a give-away that its actually in a VirtualStore - from where it won't load when SketchUp starts !
Fix your permissions.
Also set SketchUp.exe to always run as administrator in Properties > Compatibility...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Exploded Arc Centerpoint Finder UPDATE May 23,

Postby ncas » Sat Dec 06, 2014 2:11 am

Is there a version for SU 8?
Thanks
0

ncas 
 

Re: [Plugin] Exploded Arc Centerpoint Finder UPDATE May 23,

Postby TIG » Sat Dec 06, 2014 12:10 pm

What makes you think it's not v8 compatible ?
The previous post explained how to install it in v8 - but you do need the latest v8 version with the Preferences > Extensions > Install... button.
If you don't have that, then get the latest v8 installer from here:
http://help.sketchup.com/en/article/60107
Note how version 8 will no longer be supported after 20 May 2015, so keep a copy of the downloaded installer !
0
TIG
User avatar
TIG 
Global Moderator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Previous


 

Return to Plugins

Who is online

Users browsing this forum: danarnaud, esteban2018, Google Bot, gromk13, TMTYD and 14 guests

Visit our sponsors: