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

    Posts

    Recent Best Controversial
    • DC - Making Component Iterations Issue

      Hi There,

      I am making a series of dynamic components for a construction system and have got the base component functioning perfectly.

      Since there are numerous and often complex component attributes I decided that the best option would be to make iterations of the base component and save them as new components which works fine until two or more iterations are added to the same model. Once I do this some of the sub-components of the second DC I add spontaneously switch to referencing the original DC and it is driving me crazy.

      I have given each of the sub-components within each of the DCs unique names using the component attributes and the entity info windows but it it still freaking out every time I load a new DC into the model.

      The one thing that makes me think I have missed something is that when I tried to upload a new iteration to the 3D Warehouse it asked if I wanted to update an existing model. Does this mean there is another piece of metadata that I need to update ? I feel like I have looked everywhere.

      Thanks for any help,

      Brad

      posted in Dynamic Components sketchup
      K
      knewstubb
    • RE: Change Material Based on Component Dimension

      TIG,

      Every suggestion you have made works perfectly; the issue was actually with my system.

      I am running OSX and it turns out that when smart quotes are enabled sketchup does not recognise " as a valid symbol. I discovered this when I copied and pasted code I found online it worked but when I retyped it, symbol for symbol, it did not. Very weird

      In order to fix this I needed to do the following:
      System Preferences -> Keyboard -> Text -> uncheck "Use smart quotes and dashes"

      This is something that I am sure trips up many OSX users and should probably be looked at by Sketchup.

      Thanks again for all your help.

      Brad

      posted in Dynamic Components
      K
      knewstubb
    • RE: Change Material Based on Component Dimension

      Hi TIG,

      I have tried what you suggested however I am still getting the Red #. Below are the variations i have tried so far.

      =IF(LenX=120, '#5E8CD1', '#FF0000')
      =IF(Current!LenX=120, '#5E8CD1', '#FF0000')
      =IF(Current("LenX=120"), '#5E8CD1', '#FF0000')
      =IF(EX_W_165_2.7!LenX=120, '#5E8CD1', '#FF0000') -- This is the component Name.
      =IF(SH_EX_12_2.7!LenX=120, '#5E8CD1', '#FF0000') -- This is a child component with a LenX that always = the parent.

      Any other ideas?

      Brad

      posted in Dynamic Components
      K
      knewstubb
    • Uploading Dynamic Components

      This may be a stupid question but how do you upload a DC to the 3D Warehouse? I have tried uploading multiple times but the result is always a regular component.

      What am I missing here?

      Brad

      posted in Dynamic Components sketchup
      K
      knewstubb
    • RE: Change Material Based on Component Dimension

      Hi TIG,

      Thanks for the reply however it still hasn't solved my issue. I have tried all the following and I still get the red #:

      =IF(LenX=120, '#5E8CD1', '#FF0000')
      =IF(Current!LenX=120, '#5E8CD1', '#FF0000')
      =IF(Current("LenX")=120, '#5E8CD1', '#FF0000')
      =IF(EX_W_165_2.4!LenX=120, '#5E8CD1', '#FF0000') - this is the top level component name
      =IF(SH_EX_12_2.4!LenX=120, '#5E8CD1', '#FF0000') - this is a child that always has the same LenX value

      Any other advice?

      Brad

      posted in Dynamic Components
      K
      knewstubb
    • Change Material Based on Component Dimension

      I am trying to setup a dynamic component to change colour if a dimension is changed.

      The context is that of a construction panel for building houses. If the panel is standard width (1200mm) the panel is blue, however if it is less than 1200mm it needs to be cut and the colour needs to change to red to identify that.

      I have tried setting up the attributes as follows within the component top level:
      Material: =IF(Current("LenX")=120,#5E8CD1,#FF0000)

      This does not seem to work. Do I have my syntax incorrect? Any advice would be most appreciated.

      Brad

      posted in Dynamic Components sketchup
      K
      knewstubb
    • 1 / 1