sketchucation logo sketchucation
    • Login
    1. Home
    2. fredo6
    3. Topics
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    Offline
    • Profile
    • Following 0
    • Followers 48
    • Topics 173
    • Posts 5,271
    • Groups 3

    Topics

    • fredo6F

      [Plugin] FredoTools::ReportLabelArea - v3.2a - 05 Feb 20

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      54
      0 Votes
      54 Posts
      111k Views
      fredo6F
      @rohean said: I have Sketchup 2022 and this plugin doesn't seem to work for the area calculations in this version. Is there any chance it will be updated? It would be super helpful for my workflow. Could you be more precise on what does not work?
    • fredo6F

      [Bug] Images not showing up in Web Dialog under Safari 5

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      2
      0 Votes
      2 Posts
      308 Views
      D
      some research info, type of file, and method of setting appears to be less critical then the headers that the request comes from. Because .set_html produces an about:blank.html it is headless, which on > Saf5.0.6 appears to restrict local file access. .set_file and .set_url have less issues. there also appears to have been changes to SU's NSURL settings and recent server-side header changes that affects even v7 with Saf 5.0.3 in some load cases. but debugging is muddied by the combination of changes. (see attached)some testing SU's own WebDialogs all appear to be functioning, although the Lion/3D WareHouse login issue may be caused by the same thing. Knowing what people use Web Dialogs for, I would like the 'SU Team' to give some clear guidance on how all the variables can be made to work together. an example question I would have, can a client side 'whitelist' (local and external) be set for a WebDialog? john
    • fredo6F

      [Plugin] !AdditionalPluginFolders - v5.4a - 27 Sep 20

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      156
      0 Votes
      156 Posts
      223k Views
      fredo6F
      The native Sketchup Extension Manager forces all plugins to install in the standard Plugin directory. So, it won't try to find plugins anywhere else. However, the Sketchucation ExtensionStore is capable to manage various plugin directories. I recommend you install it and manage your plugins with it.
    • fredo6F

      OnCancelEvent - Differentiating Undo from Redo

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      6
      0 Votes
      6 Posts
      421 Views
      thomthomT
      @unknownuser said: You are right again. I found that you have to remove the observer (in the deactivate). Otherwise, in new instances of the Tool class, you will get the observer notifications of the ones previously created! I've begun to make my observers into Singletons. So I can use a factory method to get the singleton instance at any time when I need to add / remove the observer.
    • fredo6F

      [Plugin] FredoTools:RemoveLonelyVertices 1.2a - 20 Jul 11

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      18
      0 Votes
      18 Posts
      41k Views
      S
      Glad to be one of the visitors on this awe inspiring web site. Facboook
    • fredo6F

      [Plugin] FredoTools::ConstructFaceNormal - v1.3a - 20 Jul 11

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      3
      0 Votes
      3 Posts
      21k Views
      pilouP
      I believe there is somewhere a plug who convert Construction lines in real lines for some fun exploration OK this is Lines Converter by Rick Wilson Conctruction Lines <--> Lines Projection by Didier Bur, Random Painter By Chris Fullmer [image: pwS9_LINES.jpg]
    • fredo6F

      [Plugin] FredoTools::MarkVertices - 1.2a - 20 Jul 11

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      16
      0 Votes
      16 Posts
      26k Views
      3
      @tig said: Does not 'match' what ?? Sorry for my English, Google translate does not translate always correctly! 2D lines is in 2D space, I need a full 3D space. All lines should be viewed from all angles! I try to show problems from stereometry in full 3D space, interactive. SketchUp is a great tool for working in 3D but for use in mathematics there is no option for point, line width, line styl and color. [image: sU6n_p4.gif]
    • fredo6F

      Bug with TAB character in menu (SU8)

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      10
      0 Votes
      10 Posts
      490 Views
      A
      @unknownuser said: ... Did you log a bug to the SU Site or should I do it? Fredo You can do it, because I don't know how to do it.
    • fredo6F

      [Code] Executing a cmd without the black screen (Windows)

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      17
      0 Votes
      17 Posts
      7k Views
      Dan RathbunD
      One issue is there is what I consider a bug in the Ruby Win32 source. If you try to set ENV["RUBYSHELL"] to "Wscript" it will not work because the source always wants to inject a " -c" switch into the command. Problem is, Microsoft wrote Wscript.exe and Cscript.exe to poop out if any unknown switches are in the command. (I think cmd.exe just ignores unknown switches.) So any way, the normal Ruby means of changing the shell that %x and ` Kernel.`` use, will actually not work on Windows.
    • fredo6F

      JointPushPull 1.6 a un bug

      Watching Ignoring Scheduled Pinned Locked Moved Français
      9
      0 Votes
      9 Posts
      593 Views
      fredo6F
      Je viens de publier la version 1.8, toujours au sujet du respect plus exact de la distance d'offset. Fredo
    • fredo6F

      [Code] Parsing arithmetic formulas

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      6
      0 Votes
      6 Posts
      2k Views
      K
      I used this code in my joint tools and found it very useful as the user could enter equation if they do not know the actual value. However I could not make it work if the user entered the " for inches as sketch-up does. Keith
    • fredo6F

      About Checking Plugins for Update

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      8k Views
      C
      Is there a way to pre-configure "Check Fredo6 Plugins for Update" to "Never show this dialog again"? Basically, I never want this feature to pop up for users and check for updates. If I choose "Never show..." in that pop up where does that get stored? We run a managed environment across all our computers. We deploy SketchUp plugins to C:\ProgramData\SketchUp\SketchUp 2018\SketchUp\Plugins\ so that all the plugins are available to any user of a given computer. When a plugin has been updated by a developer we deploy it to all computers to keep everyone on the same version. I would like to preset the parameter to never check for Fredo6 plugin updates. Thanks!
    • fredo6F

      [Plugin] SUClock - v3.1a - 02 Apr 24 - Tracking time in SU

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      138
      4
      0 Votes
      138 Posts
      136k Views
      K
      Would be great to add a setting allowing to auto open SU Configuration settings at the start of a new Sketchup project. This way we could make sure we don't forget to turn the timer on. The plugin is great, thank you.
    • fredo6F

      Alternate directory for Plugins

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      9
      0 Votes
      9 Posts
      2k Views
      Dan RathbunD
      For users, I think putting the option under the Windows menu, may be confusing. Sketchup should have a "Settings" or "Options" menu, but well... my 2nd choice would be under a "Options" submenu of the "Plugins" menu. Is it useful ?? Well yes... I am putting 3 folder open buttons on my Console Toolbar ("Shared", "User" and "Custom",) that can be configured to open certain folders much the same way you have done for specifying them. But the UI.inputbox just cannot do the job. See image: http://forums.sketchucation.com/download/file.php?id=65052
    • fredo6F

      [Debug] RoundCorner slow performance

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      11
      0 Votes
      11 Posts
      2k Views
      fredo6F
      Headroom Here is an updated version with complementary traces Just drop the two attached files into ROUNDCORNER_Dir_22. Thanks to post back the trace file Fredo Note: please do NOT install these files if you are not concerned by slow perfromance on Mac To drop into subfolder ROUNDCORNER_Dir_22 To drop into subfolder ROUNDCORNER_Dir_22
    • fredo6F

      Webdialog position not preserved across session on MAC

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      18
      0 Votes
      18 Posts
      3k Views
      OricAtmosO
      @thomthom said: Haven't checked it out, but on PC the position is stored between sessions, but not within sessions. If you make a webdialog, close it, then open it again it doesn't remember the last position - only the last position from last session. Hi, I know this is an old thread, but I think I found out what makes WebDialogs remember their position during one session on Windows. It seems the position is only ever saved when the WebDialog object is destroyed, not when the dialog is closed while the object still lives. That's it, I think.
    • fredo6F

      Unzipping archive from Ruby (Mac and Windows)

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      55
      0 Votes
      55 Posts
      9k Views
      tt_suT
      @eneroth3 said: What do you think is the best implementation? What about showing a web dialog or UI.messagebox when the plugin loads and the gem isn't installed telling the user that the gem is required? The user can choose to do it later (next time plugin is loaded) and the extension wont load or choose to download it now and there's a message saying it may take some time. The user would also be informed that this only has to be done once (per user and computer). Of course the extension warehouse info page would say that the extension will ask the user to install the gem and then automatically do it. There is no need for user interaction. You simply call Gem.install("nameOfGem") and it's done automatically for you. Look at the Gem module in the StdLib: http://ruby-doc.org/stdlib-2.0.0/libdoc/rubygems/rdoc/Gem.html However, you might want to call that only right before you need to use the gem - otherwise, if you call that in the head of the RB file with all the other require's it'll lock up SketchUp until the gem has been downloaded and installed. Not a big deal perhaps in the normal cases - but imagine if a user copied a few extensions that did this, then there's be a potential large lag during startup. But only once.
    • fredo6F

      [Plugin] FredoTools::CountFacesBySides 1.5a - 19 Dec 11

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      8
      0 Votes
      8 Posts
      15k Views
      ken28875K
      Awesome! Merci Fredo. Bonne journee. _KN
    • fredo6F

      BezierSpline for SU8

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Discussions sketchup
      2
      0 Votes
      2 Posts
      373 Views
      J
      Blimey, you're quick off the mark! Thanks very much for continually supplying & supporting such a range of useful tools.
    • fredo6F

      Bug in Vector angle_between

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      6
      0 Votes
      6 Posts
      421 Views
      Dan RathbunD
      @dan rathbun said: @unknownuser said: Note that the result is correct is the vector length is.. The cutoff appears to be (works at or above): vec.length = 0.03162316231623162**...** inches Actually, I think the cutoff is more like the rounded value, of the square root of Sketchup's internal tolerance (0.001) ie: (0.001)**(1/2.0) >> 0.0316227766016838 [table=bg1 table1:34jvzu3e][thead:34jvzu3e][tr=:34jvzu3e][th=1:34jvzu3e]So the general rule is:[/th:34jvzu3e][/tr:34jvzu3e][/thead:34jvzu3e][tbody:34jvzu3e][tr=bg2:34jvzu3e][td=1,:34jvzu3e]If the product of the lengths of the two vectors, is less than that of Sketchup's internal tolerance (0.001"), the angle returned by angle_between is Math::PI/2 [ (Math::PI/2).radians.round= 90 deg,] instead of Math::PI [ (Math::PI).radians.round**= 180 degrees.]**[/td:34jvzu3e][/tr:34jvzu3e][/tbody:34jvzu3e][/table:34jvzu3e] viz: v1.length = 0.03162278 v2.length = 0.03162278 v1.angle_between(v2) >> 3.14159265358979 v1.angle_between(v2).radians >> 180 %(#000000)[# degrees] @unknownuser said: I would imagine that SU would normalize the vectors first before computing the angle, so that it's independent of the size. AGREED !! At first i could not imagine why the length would have anything to do with it, but then seeing how a square root is involved, they are likely using pythagorean trigonometry. @unknownuser said: And why return PI / 2 and not 0? That's funny also, PI/2 radians is 90 degrees. Perhaps they choose a known 'reference' vector (say the X-axis) and find the angle between it an v1. Then choose another 'reference' vector 90 degrees from the first (the Y-axis), and compute the angle between it and v2. If there's a bug in there (say half of the algorithm craps out,) that may be why you wind up with 90. now your inline fix, in code is: v1.normalize.angle_between(v2.normalize) or v1.normalize.angle_between([array].normalize)
    • 1 / 1