I have just started to learn dynamic components but running into massive issues. I am following Welcome to Dynamic Components - Skill Builder on YouTube step by step. I have had issues on each video with elements not working, units changing for no reason. Could anyone shed light on if there are known bugs around using dynamic components in metric, i donāt use inches, so really want to be able to model and adjust in cm or mm. I am new to coding, but by following step by step on the video i havenāt done anything different, apart from not being in inches. Any help would be greatly appreciated. Thanks
Check the upper left of the nested Objects in the Component Attribute Panel. All should be set to CM (centimeter)
When you click on an attributeās blue detail icon, set the the units to Centimeter, as well.
Bear in mind that formerly text is converted to an integer, so it might be an unexpected value.
āCurrent lengthā formula is not converted right, you need to divide by 2.54. (Inch in cm)
The implementation of metric in DCs in patchy, incomplete, and sometimes just buggy.
Make sure you are using the latest version of the Dynamic Components plugin, too.
Try to think in inches internally and use them in in calculations in the DC, and use CM only in user input and output fields. If you limit your use of metric units to the interface, and have your Model Info Units set to metric, most things will work.
That helped me, but isnāt always a complete solution either.
The DC code has a known bug (it has been there since they were introduced) where the metric units are recognized only when the ādisplay units formatā checkbox is enabled in the Window menu>Model info>Units dialog. Otherwise everything reverts to inches.
Hi thanks for this, i have followed all of the points but still canāt get it to work, not sure if there have become further bugs with 2020 release? I will plug away at it and hopefully be able to shed some light on it if I am able to find a fix/work around. Currently I canāt even get basic functions to work on it, so it isnāt looking promising for me to learn DC, seems like maybe I am better to focus on another area of SketchUp and once they hopefully release an update with the bug fixes iāll jump back into it. Thanks again for replying
Try uploading where youāve got to, (as a SU/.skp file) and Iāll have a look. Canāt promise to fix it, and Iām by no means an expert on DCs, but I have made several.
And if you can, provide a direct link to the video(s) you have been following.
At least I might be able to identify some places to look to see why yours isnāt working.
Hi John, thanks for this, it really seems to have gone odd. You will see in my model that i have changed the text unit to CM, on the video it was set to ātextā but as per some of the other comments on the thread i tried changing this. Currently it wonāt even give me options in the attribute options box
I have tried to upload the model, first time doing this also, so just let me know if i havenāt done it correctly.
thanks DC - Model Bug.skp (166.3 KB)
Hi John, this has fixed this issue, in the video it is slightly different but going over the steps just now it has worked, and unlike earlier today i am not getting random decimal values, but nice CM measurements
I will push on with learning DC and hopefully you and the other can come to my rescue when i come up against issues again!
thanks everyone
It is a bug that has been there since the DC feature was introduced. Everything reverts to inches when the ādisplay units formatā box is unchecked in the units dialog. It is easier to circumvent now when we can dimension in LayOut. Our standard uses dimensions in millimeters without any units text.
The original SketchUp developers have been surprisingly ignorant of the way the world works. They chose a derived unit as the basis of the application while the base unit for all measurements, the millimeter, was ignored (the inch, too, is not defined as the width of an emperorās thumb but as consisting of 25.4 millimeters).
Having searched a bit, I have come across this as still being an issue. Itās hilarious actually. If I set a DCās āheightā it always, no matter how I try to work around it, reverts to the inch value. I would have thought some basic programming here would have been refreshed - its been a ābugā or āglitchā for a few years nowā¦
ho hum. I have to stick to fixing it all by dividing by 2.54.
nice.