Flatten and Rename/renumber scenes Plugin for Sketchup 2015
-
Hi everyone,
Back in version 8, I have 2 plugins that successfully worked well.
- Flatten- Just one command and it flattens the newly imported CAD plan.
- Rename/Renumber scene- (scene_rename.rb) Very useful in keeping scenes in order, it sorts the numbering of scenes.
Unfortunately, I didn't find one that works with Sketchup 2015, Any suggestions?
Thanks! -
Why not PM Todd Burch and see if he'll update the Smustard 2007 version?
-
Thanks! will do..
-
@onzki said:
Hi everyone,
Back in version 8, I have 2 plugins that successfully worked well.
- Flatten- Just one command and it flattens the newly imported CAD plan.
- Rename/Renumber scene- (scene_rename.rb) Very useful in keeping scenes in order, it sorts the numbering of scenes.
Unfortunately, I didn't find one that works with Sketchup 2015, Any suggestions?
Thanks!Just a guess but test this on a sample model to see if satisfies both needs.
You can execute it by copying and pasting in the Ruby Console.
mod = Sketchup.active_model ent = mod.active_entities sel = mod.selection #Flatten to XY plane vers = [];vecs = [] ent.grep(Sketchup;;Edge).each{|e|vers<<e.vertices} vers.flatten!;vers.uniq! vers.each{|v|vecs<<Geom;;Vector3d.new(0,0,-v.position.z)} ent.transform_by_vectors(vers,vecs) #Rename Scenes pages = mod.pages new_name = 'Scene 0' for page in pages new_name = new_name.next page.name = new_name end
-
both working flawless. on flatten, need to explode any curves if present, but amazing lean code!
would be fantastic if only the visible lines from a top view were flattened - basically making 2d shapes for cad drawings!
-
@cadfather said:
both working flawless. on flatten, need to explode any curves if present, but amazing lean code!
would be fantastic if only the visible lines from a top view were flattened - basically making 2d shapes for cad drawings!
"lean" is my middle name!
"only the visible lines from a top view"?
-
...my own middle name has been 'chabbo' for quite sometime now!
yes, only the lines visible from above.
-
@cadfather said:
yes, only the lines visible from above.
What about lines that are partially visible?
I assume any vertical line would not be visible.
-
yes, no vertical lines. i'm thinking of a chair, one needs the profile lines and the main visible ones, as long as they're not vertical.
(though now you make me think it'd be fab having it flatten on the red or green plane too (!), for which case verticals are ok but not horizontals)
-
@cadfather said:
yes, no vertical lines. i'm thinking of a chair, one needs the profile lines and the main visible ones, as long as they're not vertical.
(though now you make me think it'd be fab having it flatten on the red or green plane too (!), for which case verticals are ok but not horizontals)
THE PLOT THICKENS!!!!!!!!!!!!!!
So simple. All we need is an option for Top, Front, or Right view.
Some horizontals would be OK if they are perpendicular to the axis of choice.
-
@sdmitch said:
Some horizontals would be OK if they are perpendicular to the axis of choice.
the plot is as thick as it gets!!!
-
I will not slow your enthusiasm, but I think TIG has a plugin for it: CADup V1.2a. Whether it is suitable for the newer versions of SketchUp, don't know ...
-
@faust07 said:
I will not slow your enthusiasm, but I think TIG has a plugin for it: CADup V1.2a. Whether it is suitable for the newer versions of SketchUp, don't know ...
You are correct. http://sketchucation.com/forums/viewtopic.php?f=323%26amp;t=31895%26amp;hilit=Flatten
-
ok thanks, i'll check it out, (had to be TIG! )
EDIT. actually i do know that script and it is very good, though it only works if you have workplane installed.
-
@cadfather said:
ok thanks, i'll check it out, (had to be TIG! )
EDIT. actually i do know that script and it is very good, though it only works if you have workplane installed.
The WorkPlane plugin is really not required. All you need is a group named WorkPlane which contains a single face that defines the desired plane. Then you can comment out or delete line 51 "require WorkPlane.rb".
-
great, that's what i'll do then. makes it for a slightly faster job as well.
just as i was getting chaffed about the all new flatten plugin...the idea of the visible lines was a good one though!
-
@cadfather said:
great, that's what i'll do then. makes it for a slightly faster job as well.
just as i was getting chaffed about the all new flatten plugin...the idea of the visible lines was a good one though!
Maybe I have an old version of Flatten To Plane but it seems to have a problem with embedded components.
Post a model,v2014, with a sample or two what you would want the plugin to flatten to visible lines only.
-
i was thinking of these situations (attached file). of course to view with hidden geometry on.
for a human figure, from 3000 edges we go up to 20000 when flat.
Advertisement