Dynamic component positioning

Hi all, please can someone help with Position of cupboard doors on Cupboards. I have a library with doors that I have made and been using without an issue for a few years now. I have recently added more doors and find when I save out these doors as components, sometimes when I add them to a cupboard, the positioning attributes of the door are all set to zero, but if a apply any one of the position attributes, then it corrects itself and positions properly. Other times one or more or all of the position attributes have been deleted. Regards

First picture is where I drew the cupboard doors and placed them correctly. I then saved them out to a folder. Then when i brought them back in from that folder, the X and Y position are not there, and the LenX formula has not been applied.

Try exposing X,Y,Z in the option dialog of the door.

confirm door and parts are unique.

Fix Dado sizing when adjusting dynamic cabinet - SketchUp / Dynamic Components - SketchUp Community

1 Like

Changed component options to see x,y,z. Door and components are unique, tagged it as a door, but none of these changes are saving?

can you share the DC(s) ? maybe private message if wish?

will do shortly, uninstalled DC, reinstalled, still not saving the changes.

BU Double door.skp (112.5 KB)

Small Shaker door Duco RH.skp (46.8 KB)

Small Shaker door Duco LH.skp (50.5 KB)

https://1drv.ms/f/c/d0a1d37296df3a7e/IgDd-G5APQkGQ7jDAttf89UUAehOzV4ByarrC5bajc2SOM0?e=BSK756

The component needs to be at the same axis position as swap, so create an extra component level to act as holder that accounts for gaps and swap the internal component

Or create a face, that includes door and drawer configuration and swap the whole.

not too sure I understand what you are saying I should do. I have been saving components this way for years and have not had an issue.

I am still looking for some help with regards to saving out dynamic components. Changes that I make to DC’S just don’t seem to save. Even if I just tag an item, save out, reload, the tag is untagged?

Are you tagging inside the component you are saving out?

Hi bmike, am tagging all components inside the main component as well as the main component. But it is not only the tagging, but the disappearing formulas and positions.

This may not be related, but I had similar issues with DC’s not saving and found the folder name I was using was the problem. I had a folder just called “User” and with help from this forum discovered the Dynamic Component extension has code that looks at the name user to be part of a script and starts off a process, eventually ending in your DC not getting saved. So… Double check your folder names and directories to be sure none are named “user”. Hope this helps.

This is an issue with swap via right click menu. Should check out other scripts. (Some can be modified to suit)

I believe swapping a complete assembly with insert point at axis is best, like door set, door and drawer set, sliding door set, roller door…

However, a work around with your DC is use interact to reinstate formulas

BU Double door (1).skp (111.4 KB)

save doors to file, then swap them, then interact.