• Login
sketchucation logo sketchucation
  • Login
ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

Dynamic component edit

Scheduled Pinned Locked Moved Newbie Forum
sketchup
6 Posts 3 Posters 407 Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    Robpar
    last edited by 13 Dec 2014, 13:19

    Downloaded some good dynamic components for windows from Marvin windows for a residential project. The only problem I'm having is that now, I'd like to have grilles only on the top sash but the component options only allow to modify number of grilles for both, top AND bottom sash; So, is there way to edit the formula to only have grilles on the top sash?
    So far I've been removing the bottom grilles in photoshop but it's a pain to do it every time I print…
    Thoughts?

    1 Reply Last reply Reply Quote 0
    • J Offline
      Jim
      last edited by 13 Dec 2014, 13:26

      Not sure if you wanted to add an option to the DC Options window, but you could just edit the component and hide them. Use the Outliner to find the parts you want to hide, then right-click them in the Outliner and hide them.

      Hi

      1 Reply Last reply Reply Quote 0
      • D Offline
        driven
        last edited by 13 Dec 2014, 13:34

        providing a link to the window may help people advise...

        john

        learn from the mistakes of others, you may not live long enough to make them all yourself...

        1 Reply Last reply Reply Quote 0
        • R Offline
          Robpar
          last edited by 13 Dec 2014, 15:30

          @driven said:

          providing a link to the window may help people advise...

          john

          I'd like to add Options to edit…
          here is the link:

          Link Preview Image
          3D Warehouse

          3D Warehouse is a website of searchable, pre-made 3D models that works seamlessly with SketchUp.

          favicon

          (3dwarehouse.sketchup.com)

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jim
            last edited by 13 Dec 2014, 22:28

            I didn't bother with the "bottom only" option, but this should work.

            General methodology

            Add an attribute to allow the user to select which grilles are visible. I added an options list to the top-most component named zShowGrilles with the values:

            ["both", "top", "bottom "]
            

            2014-12_164.png

            The grilles already have a formula to control their visibility:

            HIDDEN; =or(SB!Grille_Int,SB!Lites_HIgh<2)
            
            

            We do not want to interfere with the original formula, but we do want to add another condition for visibility. So I moved the original formula into an attribute named hid1. Then added another attribute named hid2 which is based on the option list.

            
            hid1; =or(SB!Grille_Int,SB!Lites_HIgh<2)
            hid2; =if(Parent!showGrilles = "top", 1, 0)
            
            

            Then changed the built-in HIDDEN attribute to logically OR the 2 hid attributes.

            
            HIDDEN; =OR(hid1, hid2)
            
            

            2014-12_165.png

            Note you need to pass the showGrilles attribute down to each sub-component where it is needed. Attributes can only be "seen" by direct parents or children components.

            Hope this helps.


            modified-marvin.skp

            Hi

            1 Reply Last reply Reply Quote 0
            • R Offline
              Robpar
              last edited by 14 Dec 2014, 13:24

              @jim said:

              I didn't bother with the "bottom only" option, but this should work….

              Hope this helps.

              Awesome!! Thanks!!!!!
              DC's are little more involved than what I can handle at this time. I am trying to get my component collection so I can spend more time designing and less time in "busy stuff". Doors, and Millwork are my next try…

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                1/6
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement