@Rich-O-Brien
With an HtmlDialog SketchUp caches its 'chromium' stuff somewhere like here:
C:\Users\USERNAME\AppData\Roaming\SketchUp\SketchUp 2024\WebCache-112.0.5615.165
I don't know what's in it or how to clear it !
Posts made by TIG
-
RE: Sketchucation Tools 4.4.1
-
RE: [Plugin] ClothWorks v1.8.0 - 28 Apr 2024
The error relates to
File.exists?()
this method was deprecated long ago and replaced with
File.exist?()
which is grammatically incorrect in English, but hey Ruby is international !
The older version had worked for many years 'in tandem', but it's now been removed from the newest Ruby version which ships with v2024.
So this now breaks older scripts that still include it...It's relatively easy to fix - I found 2 instances that needed fixing in the various SketchUcation tools scripts when I was preparing them for this current version !
Another issue that the ClothWorks developer faces is that his code relies on some functions within some .so/.bundle files for different OSs, so he will need to compile new versions of these for compatibility with v2024's Ruby version...
-
RE: Sketchucation Tools 4.4.1
@kenarneson
Thanks for checking.
The 'rbconfig' was a mistype and shouldn't be there, I've edited that list ! -
RE: Sketchucation Tools 4.4.1
@kenarneson
This is weird.
Yours is the only report like this.Your SketchUp is refusing to load the 'ZIP' methods needed to extract and then install the RBZ in AutoInstall mode through the dialog.
The code you tried in the Ruby Console should return => "constant"
So something is adrift.Please can you look in the subfolder:
C:/Users/kenar/AppData/Roaming/SketchUp/SketchUp 2024/SketchUp/Plugins/SketchUcation/Data/Rubyzip
And check that these exist...
zip.rb
zip [folder]
and that folder's contents...
'zip/dos_time'
'zip/ioextras'
'rbconfig'
'zip/entry'
'zip/extra_field'
'zip/entry_set'
'zip/central_directory'
'zip/file'
'zip/input_stream'
'zip/output_stream'
'zip/decompressor'
'zip/compressor'
'zip/null_decompressor'
'zip/null_compressor'
'zip/null_input_stream'
'zip/pass_thru_compressor'
'zip/pass_thru_decompressor'
'zip/inflater'
'zip/deflater'
'zip/streamable_stream'
'zip/streamable_directory'
'zip/constants'
'zip/errors'Also check that the following were available to be loaded by SketchUp from the Tools subfolders
C:\Program Files\SketchUp\SketchUp 2024\Tools\gems\3.2.0\gems\rbs-2.8.2\stdlib\zlib\0\zlib.rbs
and more importantly
C:\Program Files\SketchUp\SketchUp 2024\Tools\RubyStdLib\platform_specific\zlib.soIf they are... check the C:\Program Files\SketchUp\SketchUp 2024\Tools folder and contents have suitable permissions... properties>security>edit, and reset to 'Full control' for ALL those entries listed
Also right-click on the subfolder
C:/Users/kenar/AppData/Roaming/SketchUp/SketchUp 2024/SketchUp/Plugins/SketchUcation
and look at its properties>security>edit, and reset to 'Full control' for ALL those entries listed.
Restart SketchUp and see if that helped -
RE: [Plugin] 2D Tools
@alskaro
What is your actual OS ?
Is there any output in the Ruby Console ?
There are some issues with some of the tools in newer MAC OSs.
A fix has not yet been published. -
RE: Sketchucation Tools 4.4.1
@kenarneson
This is the first report like this.The initial error seems to be unrelated to the SketchUcation toolset - it refers to a load error in ../RubyStdLib/.. loading zlib.so
This then seems to throw the SketchUcation/SCF_loader.rbe off in line 67 where it tries to load the various support rbe files...
The later on when it fails to load some 'zip' methods etc involving zlib...
So it looks to me like the issue is 'yours' - with a failure to get beyond first base...First off - how did you install the SketchUcation toolset RBZ ?
Next, have you installed SketchUp properly ?
If you have not it sometimes doesn't copy files to the right places with suitable permissions etc...
And thereby causes all kinds of weirdness...You can fix this without re-installing, or affecting any customization you might have set up already...
Close SketchUp.
Find the appropriate SketchUp installer's exe file [usually in your Downloads folder, or if you have deleted it download a new copy].
Select the installer's exe file's icon, right-click > context-menu > "Run as administrator"
When prompted choose 'Repair'
When it completes restart your PC and see if it's better.Using a complex app's exe by double-clicking it to 'Run' it is not the same thing - even if you have admin-powers.
Doing a Repair does no harm anyway !FYI: the RBZtool runs this after temporarily loading a ZIP lib.
require('zlib') unless defined?(Zlib) require('zip') unless defined?(Zip)
It requires some ZIP code unless it's been already installed - e.g. by an earlier loading RB from another author...
To check if that's so try this in the Ruby Consoledefined?(Zlib)
then
defined?(Zip)
You should get something like 'constant'.
Please report back...
-
RE: [Plugin][$] JointPushPull Interactive - v4.8a - 30 Mar 24
@Dandelliones
OK I'll try to get someone else to resolve this...
@Rich-O-Brien -
RE: [Plugin][$] JointPushPull Interactive - v4.8a - 30 Mar 24
@Dandelliones
Have you installed the latest versions of the SketchUcation toolset [v4.4.0], LibFredo and the Fredo extension itself ?
These have been updated for the latest SketchUp version etc...
Have you restarted SketchUp afterwards ?
Have you then tried managing your licenses yourself with the menu itemExtensions/SketchUcation/SCFLicense: My Licenses at SketchUcation...
-
RE: Purge is crashing SU2024
You should go to the PluginStore and update to the SketchUcation toolset v4.4.0 which has been specially reworked for v2024 compatibility. If deals with the SCF licensing for many extensions.
If you use any of Fredo's extensions, he has also updated them all for v2024 use and don't forget his latest LibFredo too...
After installing these restart SketchUp to sync everything... -
RE: Purge is crashing SU2024
I don't see this.
I assume you are using Windows ?
When you installed SketchUp did you do it the proper way ?
You can 'Repair' the installation without losing any of your customization.
Do this...
Close SketchUp.
Find the SketchUp installer's exe file - usually in your Downloads folder [download another copy if you haven't kept it]
Select the installer's exe file's icon and right-click > context-menu > 'Run as administrator'
When prompted choose 'Repair'.
When it completes restart your computer and try SketchUp again...
Any improvement ?
Also look at your Preferences and try different Graphics Card / Engine settings... -
RE: Trouble with Fredo scale and push pull
@bsemonsen
You say they "are the latest versions", but most of Fredo's extensions have recently been updated to suit v2024.
Also you will need the latest LibFredo AND the SketchUcation toolset [for the licensing etc].
Download them/install from SketchUcation.com
If you have installed all of these extensions AND restarted SketchUp, but you still have issue report back...Also, when you installed v2024 did you do it properly ?
You can 'repair' a faulty installation as follows...
Close SketchUp.
Find the v2024 installer's exe file - usually in you Downloads folder.
Select its icon, right-click > context-menu > "Run as administrator"
When prompted choose "Repair"
When it completes launch SketchUp and see if there's any improvements...Installing any complex Windows app by double-clicking its installer's icon to "Run" it gives a different result - even if you user-account has admin-powers.
This way can cause unexpected and unpredictable issues - especially around file/folder/preferences being read or saved...Doing a "Repair" will do no harm, and leave anything you've already set up unaffected.
-
RE: Sketchucation Tools 4.4.1
@pjmeli
That's not enough info to go on.
How did you install the update ?
Have you restarted SketchUp afterwards. ?
Is there an Extensions/SketchUcation submenu listing ?
Is the SketchUcation 'ExtensionStore' toolbar available and activated ?
If you run the tools with the Ruby Console open are there any error messages ?
If you click a button and nothing appears, then have you have an additional monitor plugged-in which might confuse where the dialog is trying to appear etc... -
RE: NEW Forum Software Issues
@Dan-Rathbun
Thanks for the info, but we all ready know that, and @Gábor is working on a fix for it...
Currently new posts are unaffected, but any existing posts containing 'code'/'ruby' snippets are FUBAR! -
RE: [Plugin] SketchUcation Tools
@Rich-O-Brien
To add to the firewall whitelisting...
sites with sketchucation.com
and the
IP addresses 178.63.47.155 and 144.76.69.227 -
RE: [Plugin] ClothWorks v1.8.0 - 28 Apr 2024
@sashapepperspray
The method File.exists? has long been deprecated, but worked.
In the latest Ruby version it doesn’t - File.exist? - works in v2024 and older versions as well.
Many developers are working to adjust their code accordingly.Have patience and post any instances in an affected extension's thread - as there are 100s of 1000s of line of code with the tiniest corrections needing to be found and change, then the extension re-encrypted and signed…
Many authors have already fixed their extensions, so look regularly to see if there’s already an update available…
-
RE: [REQ] Export selected groups/comps to separate skp files
@MartinGr
I can't see where that error is arising.
Unfortunately any old 'ruby' formatted text is FUBAR on the new forum - Gábor is working on a fix:
Here's a rewritten version that works for me...mo=Sketchup.active_model pa=mo.path if pa.empty? UI.messagebox("Save 'Untitled' Model Before Exporting...") else d=File.dirname(pa).tr("\\", "/") es=mo.active_entities.to_a ss=mo.selection.to_a mo.selection.clear gs=ss.grep(Sketchup::Group) gis=gs.collect{|e| e.persistent_id } is=ss.grep(Sketchup::ComponentInstance) iis=is.collect{|e| e.persistent_id } unless(gis[0] || iis[0]) UI.messagebox("Select Groups and/or Instances Before Exporting...") else gis.each_with_index{|ii, i| e=nil mo.active_entities.to_a.each{|ee| if ee.persistent_id==ii e=ee break end } next unless e mo.start_operation("Export_group#{i}",true) n=e.name n="Group##{i+1}" if n.empty? p f=File.join(d, n+".skp") xs=es=mo.active_entities.to_a-[e] xs.each{|x| x.erase! if x.valid? } mo.save(f) if File.exist?(File.join(d, n+".skb")) #PC File.delete(File.join(d, n+".skb")) end if File.exist?(File.join(d, n+"~.skp")) #MAC File.delete(File.join(d, n+"~.skp")) end mo.abort_operation #revert model } iis.each_with_index{|ii, i| e=nil mo.active_entities.to_a.each{|ee| if ee.persistent_id==ii e=ee break end } next unless e mo.start_operation("Export_instance#{i}",true) n=e.definition.name n="#{n}##{i+1}" if e.definition.instances[1] p f=File.join(d, n+".skp") xs=es=mo.active_entities.to_a-[e] xs.each{|x| x.erase! if x.valid? } mo.save(f) if File.exist?(File.join(d, n+".skb")) #PC File.delete(File.join(d, n+".skb")) end if File.exist?(File.join(d, n+"~.skp")) #MAC File.delete(File.join(d, n+"~.skp")) end mo.abort_operation # revert model } mo.save(pa) # revert back to original model end end puts "Done."
-
[Plugin] SectionCutFace
Here's an update to v8.0 for future compatibility...
All core functions/settings remain unchanged.
https://sketchucation.com/pluginstore?pln=SectionCutFace -
RE: Making a selection in a ruby script and applying command
@hollymichel
No, it doesn't read a lot better.
You must add the 'code' tag and put your Ruby code inside it.
Then the start and end tags [i.e. three back-quotes each: note I put spaces in front here to prevent the forum thinking it was more code...``` ### ruby code text goes here ```
] they must both be on their own lines.
Which looks like this in the post.### ruby code text goes here
Simplify your process, and make it more complex only when you've got some good results.
Trying to do it all in one go is just too difficult.How do you eat an elephant - take small bites !
-
RE: Making a selection in a ruby script and applying command
@hollymichel
Please format your code properly using the 'Code' option above</>
It's almost impossible to read.
I think you are over complicating it.
mod = Sketchup.active_model sel = mod.selection selected_edges = sel.grep(Sketchup::Edge) ### add the triangle code - where the face is located on the edges is academic, you can draw it on and selected edge. ### Add the face from the desired points. You can get a reference to it after it's added. triangle_face.followme(selected_edges.to_a)
The selected_edges are not guaranteed to be all connected and in order [if they are connected there are somewhat complicated methods to order them].
A simpler way to get an array of those edges is to get the 'base_face' rather than the what you are selecting the edges around, and use that -mod = Sketchup.active_model sel = mod.selection selected_base_face= sel.grep(Sketchup::Face)[0] ### make triangle... triangle_face.followme(selected_base_face.outer_loop.edges) ### automatically an order array ###
-
RE: Making a selection in a ruby script and applying command
@hollymichel
You're not helping us help you.
You have only posted a few lines of code, so we can't see where you're going wrong.
Also a screenshot of the starting setup would be helpful...Also please use the 'Code' formatting for any Ruby code your are posting...
As you seem to be able to do it manually the path and face seem OK - although we haven't seen them !
### something sets a selection of edges up ?? connected_edges_array = selected_edges.to_a ### the face is somehow selected ?? triangle_face.followme(connected_edges_array)
How do you ensure that all of those selected edges which are to be used are connected ?
How do you select the face ?More code please...