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

    DC Losing Formulas When Imported

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    5 Posts 3 Posters 1.2k 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.
    • T Offline
      twdant
      last edited by

      Hey all,

      I've got a problem with a DC I'm working on. I'd like to import a child DC into parent DC and have it automatically sized and placed based on user-defined attributes in the parent component. I designed the child component inside the parent component and tested the formulas, everything was peachy. I saved the child and reimported into a resized parent component to see if it would automatically size and place, but it did not. I looked at the attributes in the child component, and several attributes have lost their formulas, and other attributes have been completely removed.

      I've tried to remodel both components several times in several ways to fix it, but nothing works. I also can't make any of the problems replicate in any predictable way. Sketchup removes different formulas and attributes each time I remodel it.

      The only hopeful I've seen is that once, after importing the broken child, I resized the parent (now containing the child) and the first copy of the child component was sized and placed properly, with all formulas intact. I tried saving that copy as a new child component and reimporting, but it still didn't work.

      Also, it looks like importing the child breaks all but one copy. The copy 001 consistently contains the correct formulas after importing.

      Any suggestions? Files attached.


      Parent.skp


      Child.skp

      1 Reply Last reply Reply Quote 0
      • T Offline
        twdant
        last edited by

        I may have a lead. It seems any DC I create that contains subcomponents has this issue, parts of the component attribute set are missing when I save the component. Maybe this has something to do with instance/name/definition?

        1 Reply Last reply Reply Quote 0
        • J Offline
          Jim
          last edited by

          I don't have the answer, but one alternative to replace a sub-component in a DC is to right-click it and select "reload." Then choose a file from disc to replace the selected component. The current attribute set will be applied to the loaded component.

          Hi

          1 Reply Last reply Reply Quote 0
          • P Offline
            pcmoor
            last edited by

            Hi Tanner,

            I made a simple DC to test out the problem you are experiencing, yes its true the imported DC position formulas are over written. To stop this I wrapped the DC required to import in a DC (wrapper)and passed the required copy values through. This works and protects the contents

            I attached the simple DC to illustrate this

            Cheers
            Philip


            the parent


            the child (contained within a DC wrapper)

            1 Reply Last reply Reply Quote 0
            • T Offline
              twdant
              last edited by

              pcmoor, it's a little clunky, but it works. I'm trying to implement a drag and drop parent component, so I have to drag the wrapped child component into the open parent component, and explode the wrapper on the child and it works.

              Is this a bug or are the DC's designed to overwrite formulas?

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

              Advertisement