ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • Proximity Trigger for Dynamic Components

    sketchup
    2
    0 Votes
    2 Posts
    6k Views
    P
    Also interested in this!! Thanks in advance!
  • Performancies issue

    sketchup
    7
    0 Votes
    7 Posts
    9k Views
    P
    Not quite sure what is the problem, you could private message some examples; however some points Breaking a bond is done by making the copied components unique. for groups, sometimes make unique (right click menu) is available. If groups are the problem then running this script should help http://ruby.sketchup.com/Sketchup/Group.html#make_unique-instance_method [image: 1KMU_Capture.jpg] If the copied groups or components have the same parent, same header then double click the title box to change its name before changing the attributes
  • Indexing Shelf Copies

    sketchup
    7
    0 Votes
    7 Posts
    10k Views
    J
    Been busy and just saw your reply. Thanks for the help pcmoor!
  • When changing a DC attribute, the DC name is added with #1

    sketchup
    14
    0 Votes
    14 Posts
    12k Views
    R
    More than one year after the last reply. I am assuming no one found a solution? I just started using dynamic components and I was starting to be happy of the possibilities they allow, but now I came across the same problem you guys have (it's what lead me to this thread). It is very frustrating that I cannot seem to identify a rule as to why and when SketchUp decides to make a unique component. For example I have a pipe and users can input the lenght. The component works perfect, no renaming no unique copies, no problems.. no matter what kind of copy/move operation I do. Now I designed a component a bit more complex. It includes 3 groups and one sub-component. The position of that sub-component plus the size of the groups change according to what the user chooses (drop-down list) If I just insert the component and move it/copy it NO new instances are created. But If I go to attributes and select the second configuration, right after I press APPLY, a new instance is created #1. Now, copying this new component does not create a #2, BUT if I dare to change one of these copies back to the first configuration, it creates a new instance. This really ruins the whole purpose of having dynamic components.... At least if we had control over the renaming, for example appending at the end of the initial name, the label of the attribute changed.
  • Define the value of an attribute from another attribute

    sketchup
    3
    0 Votes
    3 Posts
    7k Views
    VLADIMIRZMV
    it's just what I was looking for! thank you!
  • Copied Components do not change dynamically

    sketchup
    2
    0 Votes
    2 Posts
    8k Views
    B
    Your main issue here is that you have the wheels changing direction by "mirroring" the cluster/row (of 3 wheels) across it's origin by using a negative length and sliding it over (offsetting). While clever, the wheels' positions aren't fixed, so they seem like they're getting it when they really don't know where to be. There may be a way to effectively use negative length for a component (I avoid it), but I'd suggest keeping it simple while you better your grasp the nuances of DCs. Simplest solution: Add your position to each wheel (or set 1 with 2 copies) and add RotZ=parent!divert_direction. For the wheel group, add a Divert_Direction attribute (=parent!Divert_Direction) so you now have a pass-through attribute from the model to the wheels. You'll probably also have to modify your position X if/then statement to account for the removed negative length formula
  • Global attributes

    sketchup
    10
    0 Votes
    10 Posts
    9k Views
    O
    @pbacot said: I don't know if this works in your setup or dynamic components for that matter. And I suspect it is no good if you are outputing the chosen material (color) in some bill of materials... But I use "Material Replacer" to globally change a material in a model. Thanks for the hint; I'm sure it is very usefull, but at the moment I suspect to have a serious performancies issue, for which I will post right now in a new topic. Giacomo
  • Redraw all dynamic components

    sketchup
    2
    0 Votes
    2 Posts
    8k Views
    B
    I set mine to shortcut to the "`" key (above Tab)
  • Whats wrong with this DC?

    sketchup
    5
    0 Votes
    5 Posts
    8k Views
    PixeroP
    Thanks!
  • Excel to Sketchup

    sketchup
    3
    0 Votes
    3 Posts
    9k Views
    M
    Thank you tig i ll take a look at this and come back to you when i find the solution.
  • Dynamic mattress/bed Questions

    sketchup
    3
    0 Votes
    3 Posts
    8k Views
    jujuJ
    If I recall correctly, SketchUp Pro has a dynamic component of a bed that comes with it (crafted by SketchUp), maybe see if you can find this and poke around there a little.
  • Attribute "FACEAREA" 1.550003 off?

    sketchup
    3
    0 Votes
    3 Posts
    8k Views
    M
    Ah, I see! Thank you for explaining! Cheers Mikar
  • Create a network of components

    sketchup
    4
    0 Votes
    4 Posts
    8k Views
    M
    Thank you SJS66 i'll take a look at it. Oui pilou j'ai vu ca c'est a l'étude
  • Dynamic component rotation

    sketchup
    2
    0 Votes
    2 Posts
    7k Views
    P
    open the component, select the raw geometry and make another component, set its axis in the direction you require, close the nested component that holds the geometry is the one you will rotate. If you want to rotate in another direction as well, then you would nest it again so that the rotations are independent
  • Simple DC error

    sketchup
    2
    0 Votes
    2 Posts
    6k Views
    PixeroP
    I think I figured it out. Seems to be working now.
  • Dynamic Components and animations + LIGHTUP

    sketchup
    4
    0 Votes
    4 Posts
    7k Views
    cedricbenquetC
    Oups sorry, I didn't check your references ... Thanks.
  • Mother child

    sketchup
    9
    0 Votes
    9 Posts
    10k Views
    P
    @unknownuser said: I try to reason how this works but it doesn't come easy to me. It isn't easy. there are a few bugs to get your head around. Perhaps it's helpful to understand that the dynamic part is a ruby script add on, it's not hard wired and as such has to work within the limitations of the ruby language and the developer's understanding when it was conceived. There are disconnections between what an attribute reports and the updated SU view, for example changing the rotation attribute will cancel out a previous input in any one of the others. Rotations involving groups can affect the size, the change seems to follow the changing boundary box. Components seem to be more stable, but again misbehave when more than one axis is considered, Despite the updates in Ruby there seems to be little done to fix these bugs, however there are workarounds to achieve the results you require. The first important point, I would like you accept is that all onclicks need to be on the same level of nesting, there's no point placing an onclick event in a lower nesting than the other. I generally use nested groups only for parts of an object, like an "I beam" made of top flange, web and bottom flange. Then the object (I beam), the sum of its parts, is then a component. Collections of components may be then held in a group. So the second is that using dynamic groups can be more problematic, unless they are simple So any animated object(s) should be a component and it is better to nest animated component(s) within another component, otherwise the rotation formula can be overridden when swapped or inserted. At this point you may need to understand why attributes can be overridden, if they were not, then swapping a mouse with a elephant would mean their sizes would always match, etc. However you can match them, if the values are passed one level down and "current" is used in the parent if you want to, say have beam lengths to always match after a swap. I am still trying to rationalise DCs intricacies myself. so most times I plug in data / methods until it works Anyway, feel free to add any more problems, then can add some more observations
  • Letter A with onClick material colours

    sketchup
    4
    0 Votes
    4 Posts
    7k Views
    P
    a bit of junk, sorry can be deleted, can't recall why I started it.....sign of age?
  • Nested IF in a SET Function - what am I doing wrong?

    sketchup
    11
    0 Votes
    11 Posts
    9k Views
    SJS66S
    @chris fullmer said: I went ahead and made a DC that does what you want. The user can choose one of 4 colors from a list. Then upon OnClick'ing on the component, it changes between dark, medium, and light of that color. I'll attach the DC and you can check it out. Chris Not only is he a fellow surfer with a cool hat, he's a sketchup legend. Love ya work mate! Been searching for how to change materials by onclick all day. Doin' my head in. Keep on paddling
  • Multiple Set() attributes for onClick behavior

    sketchup
    4
    0 Votes
    4 Posts
    9k Views
    B
    Are there any similar uses for the ";" that we may not know?

Advertisement