DC Losing Formulas When Imported
-
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.
-
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?
-
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 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
-
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?
Advertisement