[Plugin] TIG-export_SKP_by_layer.rb
-
That's life - ungrateful bunch !
-
@tig said:
That's life - ungrateful bunch !
could be we're just a bunch of slackers when it comes to testing and haven't yet checked it out
-
Sounds useful but I don't have a use for it at the moment. Thanks for thinking of useful things even before there is a use for them.
Regards.
-
I think it will be useful when a model will need to be used by another application .... provided "meaningful" layer naming has been used.
-
Nice one.
-
thanks a lot TIG .... thanks
best for exporting to 3Ds maxdo you have a plan to make it more ? .. a menu .. a toolbar ..
do you let me creat a Icon for it ?
-
Thanks
-
Hi TIG,
Using this script, can you export SKP layers as .pdf files?
Thank you.
-
@halftonejones said:
Hi TIG,
Using this script, can you export SKP layers as .pdf files?
Thank you.
If you want a PDF there's the built in Print to a 2d vector PDF tools, or use a 2d raster PDF system printer like PDF995 ? The built in version only does edges/faces etc and no shadow info is retained.
You would need to re-construe the code to get a desired layer/view and then NOT use 'export' but rather 'write_image'.@model.active_view.refresh keys={ ;filename => imgpath, ;width => vpw, ;height => vph, ;antialias => false, ;compression => 0.9 } @model.active_view.write_image(keys)
This code snippet taken from Slicer5's export_to_png code is for a PNG file, where 'imgpath' tells us where to save it. The equivalent for a PDF would be similar...
-
Thanks TIG! layers to 3DS! yes.
-
TIG,
I am having trouble finding out where to locate and how to actually use the plugin...
any help would be much appreciated!
thank you,
Stephen
-
Stephen, does this answer your question?
Example 1. The location where the ruby script needs to be copied to.
Example 2. How to execute the ruby script (ignore the short-keys for the "Window" menu
as these are my custom shortcut key assignments).
-
I was going to say much the same... but thanks to John !
His explanation is better than mine anyway -
Thank you TIG! I didn't knew i need this one until i read the description! Life saver, really
-
Originally I did that approach and it was not recognizing it... now on a monday morning it works... Figures! haha
The program must have checked out for the week/weekend Friday...
Thank you for the timely response,
Stephen
-
Thanks TIG!
-
Tig,
Just a quick question regarding your Layers to SKP plugin:
I have been searching for some ways to get SKP into Revit, and have a couple workflows that I am able to use well currently, however I am trying to just find some quick optimizations and found your old plugin! I am currently using SKP Pro 2015, and just tried your script and this is what the ruby console spat back at me:
TIG.export_SKP_by_layer
Exporting from...
//Mac/Home/Desktop/SKP2RVT/RVT2SKP.skp
as//Mac/Home/Desktop/SKP2RVT/RVT2SKP-Layer0.skp
Error: #<TypeError: reference to deleted Layers>
C:/Users//AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/TIG-export_SKP_by_layer.rb:43:inpurge_unused' C:/Users/*****/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/TIG-export_SKP_by_layer.rb:43:in
block in export_SKP_by_layer'
C:/Users//AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/TIG-export_SKP_by_layer.rb:40:ineach' C:/Users/*****/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/TIG-export_SKP_by_layer.rb:40:in
export_SKP_by_layer'
<main>:in<main>' SketchUp:1:in
eval'I am using a Mac Laptop with Windows 10 on Parallels if that info helps at all? Anyway, it just creates the first "RVT2SKP-Layer0.skp" file and then stops... I am wondering what is going wrong?
If we can get past this hurdle, one feature I have been looking for in this whole deal is to make sure that whatever files are saved, are saved in SKP8 format
Let me know if you can see where I am erring...
Thanks! -
Updated v2.0 now available.
See first post full full chanage-log: http://sketchucation.com/forums/viewtopic.php?p=422953#p422953@unknownuser said:
v2.0 20171105
Now compatible with newer versions of SketchUp.
Exported SKPs are put into a 'SKP_by_layer' subfolder with the model.
Optional SKP version argument added to the command*.
Unused Components, Layers & Materials are properly purged from the SKPs.https://sketchucation.com/pluginstore?pln=TIG_export_SKP_by_layer
-
So, everything is working beautifully on the simpler SKP2RVT file, but something is happening where the more complex SKP2RVT2 file is crashing Sketchup and aborting the process after the Layer0 begins to save. I am attaching both files below.
-
Thanks for the feedback.
At first I thought it was because in the more complex SKP Layer0 is the current layer, BUT it contains NO 'raw' entities using that layer...
You can always try and save an entirely empty SKP... but is not valid and messes up !
However, I trapped for this by adding a single guide-point at the origin, if the SKP has no entities.
BUT this still doesn't work !
I added extra 'Garbage-Collection' but it hasn't helped.I also noted that 'OFF' layers export, but they are not visible - so I fixed that side-issue !
I also saw that your Styles varied - material by material v. none ... but that makes no difference.
So at the moment I am at a loss to see what's up...
I'll publish v2.1.
Watch out for it...Please install that.
I expect it'll still BugSplat on some of your files...
Can you submit the BugSplat to Trimble, add an email and also email your full details and the problem SKP and my latest RBZ [with my email-address too] so they have all of the details - they might have some ideas... V2017 is full of new issues that developers are not always aware of...
Advertisement