ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • Resolve [Ruby help] Script for create window sills

    3
    0 Votes
    3 Posts
    8k Views
    B
    hello , Thank you SDMITCH for help cordially Benj
  • Transform to local axis question

    6
    0 Votes
    6 Posts
    6k Views
    fredo6F
    If the vector is given in world coordinates, then you need the total transformation from the top model to the component. This is not something you can derive from the component itself. Usually it comes from a picking process in an interactive tool or the knowledge of the chain of containers from the top model down to the component
  • Always face camera with View Observer - Would this work?

    5
    0 Votes
    5 Posts
    10k Views
    Dan RathbunD
    A major drawback is that you'd be modifying the model entities with every change of the camera. Currently changing the camera position or even the active scene does not set the modified? flag.
  • Assigning DC attributes to nested components & groups

    2
    0 Votes
    2 Posts
    6k Views
    Dan RathbunD
    DC attributes are set directly upon nested DC group instances. BUT, ... for component instances they are defined upon the definition along with a default value. If there are to be more than 1 instance of the DC and they differ, then the differing values are then set on the instance. (However the "smarts" of each DC attribute, ie, access, formula, label are only in the definition's DC dictionary.) If changing an instance's attribute(s) causes the definition's entities collection to change, then the DC engine will unique-ify the DC, by cloning the definition and making the instance the first instance of this new DC definition. (An example is when changing the DC so that more or less copies of a sub-component, like a stile are generated. This changes the DC definition's entities collection, so if there are more than 1 instance, the one needing a different number of stiles would need a new definition.)
  • Download RBZ file

    30
    0 Votes
    30 Posts
    39k Views
    Dave RD
    What plugins did you download? Plugins won't download as .skp files. That would indicate you've downloaded SketchUp models/components.
  • Angle_between issue

    2
    0 Votes
    2 Posts
    7k Views
    fredo6F
    @rinse04 said: I am trying to differentiate the difference between an internal corner and an external corner to get two different angles as shown in the below image. angle_between() returns the angle between 0 and 180 degrees. If you wish the oriented angle, you need to set a reference of some sort to distinguish between concave and convex angles. Look at your model, and make abstraction of the walls, keeping only the vectors, and you'll see that none can make a difference between inside and outside. Usually, if you have vectors v1 and v2, say in the horizontal plane, then (v1 * v2) % Z_AXIS is either positive or negative. Now, up to you, based on conventions to consider this is an internal or external angle. Fredo
  • Connecting touching lines or points...

    10
    0 Votes
    10 Posts
    11k Views
    mariochaM
    Yea TT Select Curve is great. But I have come across a modeling request where I need it to continue selecting past an intersection. similar to a ring select. Searching .... [image: kKV2_ringselecting.png]
  • Component Axes

    3
    0 Votes
    3 Posts
    8k Views
    H
    Boom! That worked! Thank you sir! --J
  • Using Shoes (ruby UI) in sketchup plugin

    2
    0 Votes
    2 Posts
    7k Views
    Dan RathbunD
    @sminky said: Hi, Is there any way to use Shoes to make UI for a sketchup plugin? No. sorry. A special fork and compilation of the Shoes code would be required, afaik. I believe that no one has attempted it.
  • How do I check if component name starts with a certain word?

    4
    0 Votes
    4 Posts
    8k Views
    Dan RathbunD
    . Ruby 2.x+ (SketchUp 2014+) [String#start_with?](https://ruby-doc.org/core-2.0.0/String.html#method-i-start_with-3F) ie ... if e.definition.name.start_with?("MyComp") ... or ... if e.definition.name.start_with?("Door","Window")
  • Component definition has TWO names ???

    5
    0 Votes
    5 Posts
    7k Views
    Dan RathbunD
    @didier bur said: Sketchup.active_model.name is NOT (always) the same as the SKP file name... Sketchup.active_model.name and Sketchup.active_model.description are used to set the name and description when you will be using the entire file as a component. Secondly, these 2 fields are used to set the name and description that will be displayed when using the file as a template. So it seems that someone who saved the file, renamed it using francais and resaved it under the old english filename. There are cases when the filename (minus extension) are used to set the component name. Importing an image is one case.
  • Problems with ShadowTime/Time conversion

    7
    0 Votes
    7 Posts
    10k Views
    T
    Hi Careca, Thanks for the extension - looked great - but I'm having trouble with getting it off "summer" in the drop down so it will work with "winter" instead and with a bit different times. Also, how do we output the nice shaded shadows combination, let's say from 9AM thru 4PM on Dec 21, 2019 for our customer? Maybe I've installed it incorrectly? No instructions have shown up either. I'm on a Windows 10 with SU 18. Thanks ! tab1
  • How to use animation (nextFrame) when key pressed?

    3
    0 Votes
    3 Posts
    8k Views
    PixeroP
    Thanks. Ill try that.
  • How to reload a extension loader file?

    5
    0 Votes
    5 Posts
    10k Views
    rami_lpmR
    I use this. def self.reload() Sketchup.send_action(CMD_RUBY_CONSOLE) load __FILE__ puts "reloaded #{__FILE__.to_s}\n" end
  • Order in Extensions menu

    3
    0 Votes
    3 Posts
    6k Views
    PixeroP
    Thanks for clarifying it. I had a hard time finding my own plugin in the menu and thought something was wrong with the code.
  • Import script to import 300 dae into 1 project

    27
    0 Votes
    27 Posts
    20k Views
    S
    Hi mate, maybe operator error the first couple of times I tried. Confirmed working in SU2019 Pro both with Collada DAE meshes created in Meshlab and from batch triangulated Collada export from Blender.
  • The component information inside the group extract

    6
    0 Votes
    6 Posts
    8k Views
    T
    Thank you for your help. It works perfectly. Thank you again.
  • Collecting groups and components with certain material

    6
    0 Votes
    6 Posts
    7k Views
    TIGT
    'Containers' are groups or component-definitions, which 'contain' entities - they are usually referred to as 'entities-collections' - but 'containers' is synonymous...
  • Help with dialog

    6
    0 Votes
    6 Posts
    7k Views
    PixeroP
    Thanks. That worked.
  • "Cannot convert argument to Geom::Vector3d" error

    2
    0 Votes
    2 Posts
    7k Views
    TIGT
    Before the line starting angle... Add in these to see what the arguments you pass are out the possible obj_axis permutations and retest... ` p e p tr p a_vector p obj_axis p a_vector.to_a p obj_axis.to_a` If one or both of them are NOT vectors, then we've got somewhere...

Advertisement