Help making a dynamic door that resizes from its jambs

BASCULANTE.skp (291.5 KB)

Hello everyone! I’m new to dynamic components and need help with a problem. I’m developing windows and doors models and they all have frames. I’ve made them all customizable by user input dimensions via the component options window. Now, i would like to give the user the option to adjust the window using the scale tool. I already know i have to use the current function and give the user an option like “Input option: Scale Mode/Input Dimensions”. My problem is i need the door to fit in specific places by it’s jambs, not by it’s frames. Is there a way to configure the scale tool to forget about the frames when scalling?

The Sketchup Model is attached somewhere here. First time posting :slight_smile:

1 Like

Hey welcome to the forum! No time to take a look right now but try making the door and jamb a single component, and scale that. Will take a look on Monday if you still haven’t figured it out. Cheers!

1 Like

Greetings and Salutations! I would like the user to be able to control all of the component from the parent component, without the need to open a window or door component to scale the door and jamb component.

I’ve come up with a workaround and would love to know what you think about it. First, I’ve configured an attribute so the user may choose to control the door or window using the scale tool or dimensions provided. This attribute returns either a 0 or 1 depending on the users choice. If the user chooses the scale option, the door frame wide will adapt to align with the door jambs and because of this the bounding box is now exactly what i need for scaling correctly. The door frame also hides with that option. I prefer the user only sees the door jambs when scalling. At that point, i’ve come across another problem. If the user chooses to go back to ‘dimensions provided’ mode, the component returns to the inputted dimensions and looses the sizes of the last time scaled. The workaround i’ve come up with was to provide the lenghts and heights achieved with the scale tool so the user can replace his input dimensions with the exact dimensions he acquired using scale. Does that make sense? Let me know what you think. Cheers!


2 Likes

There is an option to hide the frame. .
If hidden. its position and size can be moved inside jambs

if(Hidden,0, can be added after equals before the existing values, to the position and size attribute values with ) after

The model uploaded has some scaling issues, had to make items that were probably mirrored unique. Closed copies and get as close to original, then “scale definition” each sub before I could get the scale to work.

BASCULANTE.skp (308.7 KB)

@Agnaldo_Timoteo
yes, could be a plan, will give your method ago, but most likely with a cleaner model

2 Likes

method is same,

Move and hide the external trim

Thank you, sir. It’s enough to dive into my other components and get them all to work. I’ve began trying use the scale tool to adjust the whole thing because of one of your solutions to a topic in 2020. Thanks again. Cheers!

any problems you can post it private message

1 Like

Looks like your sorted, Philip with the fix as usual!

1 Like