sketchucation logo sketchucation
    • Login
    1. Home
    2. Omarian
    3. Topics
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download
    O
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 13
    • Groups 1

    Topics

    • O

      Adding Dynamic Component Function to calculate lineal feet

      Watching Ignoring Scheduled Pinned Locked Moved Dynamic Components sketchup
      7
      0 Votes
      7 Posts
      6k Views
      B
      Sketchup Nube here. I am not using sketchup for 3D modeling, only slab footprint. Where would I need to input the code that TIG posted to allow for lineal footage addition? Please and thank you. Brandon Irby
    • O

      DC function to measure running/lineal feet of non rectangles

      Watching Ignoring Scheduled Pinned Locked Moved Newbie Forum sketchup
      1
      0 Votes
      1 Posts
      109 Views
      No one has replied
    • O

      Adding Solid Volume to Attributes

      Watching Ignoring Scheduled Pinned Locked Moved Dynamic Components sketchup
      18
      0 Votes
      18 Posts
      17k Views
      simjoubertS
      Hello Thank you for this code which opens up nice perspectives for me, especially if I manage to debug the following situation! Sketchup does not offer the function to count the number of occurrences of a text string in a text. I have checked in the ruby window the following code and I get the expected result string = 'hello world' string.count('l') # This returns the integer 3 I want to implement a new function but I have the following error [wrong number of arguments (given 1, expected 2)] Here is my code that I added after the one from TIG # add_DC_function.rb # extends DCs functions require('sketchup') require('su_dynamiccomponents.rb') if defined?($dc_observers) # Open SketchUp's Dynamic Component Functions (V1) class. # BUT only if DC extension is active... class DCFunctionsV1 protected # DC Function Usage; =volume() # returns the instance's volume [cu"] if not DCFunctionsV1.method_defined?(;volume) def volume(a) return @source_entity.volume end end # DC Function Usage; =occurence(texte,texte recherche) # returns the number of the occurency of the string if not DCFunctionsV1.method_defined?(;occurence) def occurence(a, b) return a.count(b) end end end#class end#if Thank you for your help Simon
    • 1 / 1