My dynamic component is not showing any options

Part of your problem is that you’ve applied the black (code zwart metal) to the faces in the component. Face materials override materials applied to the component’s container. In the case of DC’s you need the material applied to the container not the faces. Look at the way the cafe table in the Dynamic Components Training to see how the materials are set up so they can be changed.

You need to use the Material behavior to make that work, too. Not your custom “Color”.

As far as the materials showing in Component Options, the lists are there in the drop down.

You should correct the reversed faces in the model, too.

There is an old bug in the DCs. Open the Ruby Console and see if there are errors that show when you open the dialog.

Extensions > Developer > Ruby Console

Take a look at the following. I removed the face materials, exploded the groups for the screw heads because they weren’t helpful, and corrected the Attributes. I also fixed the name of the white material in the Materials list changing ‘whit’ to ‘white’.
DC

Hey DaveR.
I am trying to fix this as you explaines, but It seems I am still getting it wrong.
Can you send me the fixed file back, so I can see what you did to the subcomponents please.
Where do I find the dynamic components training with the coffeetable.
Thanks for your efforts, but I am totally new in dynamic components.
J.

Here you go.
Trizio 21 CODE FIXTURE.skp (456.7 KB)

Thanks man.
Your file does work indeed.
I am struggeling to figure out what is to be changed in my model.
Can you tell me where I can find the exercise with the table.
Kind regards,
J.

Look at the change in the Behaviors section for the Base and screws.

As for the cafe table, go to the Components panel and in the dropdown list, choose Dynamic Component Training.

Hello Dan,
I made a second lightfixture and was trying to get it dynamic.
I opened the ruby console and yes there is an error in the sript.
In attachment I send you the file. What do I have to do to fix this.
Do I have to install SU 2021 update or is this not fixable.Trizio 21 CODE FIXTURE.skp (294.9 KB)

Hello DaveR.
I made the changes in my Code fixture and I made the Code 2 fixture dynamic as well.
Just like you did. But still the options in the dialogbox do not show.
I had the ruby console open and there is an error in the script.

Trizio 21 CODE FIXTURE.skp (294.9 KB)

The Ruby interpreter used by SketchUp plugins (Dynamic Components is a plugin) fails when a filename or path name starts with a lowercase “u”. You seem to have used “users” instead of the more common “Users” as the Windows home folder name.

No Anssi, that is the result of Sketchup::require downcasing path strings before pushing them into the $LOADED_FEATURES array. This is normal and fine as long as forward slashes are used in the path string (as shown in the Console output above.)

His error (NoMethodError) is the old calling #deleted? upon the model object which does not have that method because Model is not a subclass of Entity.

@Dart I explain the bug (which has been broken for years!) and show a quick fix here …

Components don't appear in "Component Option" Window - #22 by DanRathbun


@Colin It will be 7 YEARS this December at the least that this bug has been reported but not fixed !

1 Like

Bah, and I thought I was so smart! But the file @Dart posted works quite OK for me. Why doesn’t it work for him?

There is a certain error mode that the DC extension gets into where the bug manifests.
@Colin explains it in the linked topic thread.

Then perhaps you have pasted the “quick fix” into your “Plugins” folder already ?

You can easily test at the Console via:

Sketchup.active_model.respond_to?(:deleted?)

If you get true then you’ve applied the “quick fix”.

I get “false”. I am quite certain that I haven’t done any manual fixes to the plugins folder. My DC extension version number is 1.8.1
I am not sure about @Dart 's error but I can confirm that the lowercase “u” thing still kills the DC extension by just adding it at the start of the model file name.

I imagine you know that this isn’t a record by any means.

@ChrisFullmer Who should know about this?

Hi guys,
It seems you are all more clever than me, that’s sure.
I am using Sketchup to model, I am not a programmer.
I just want to know how I can make sure my dynamic components work.
That is what’s importend to me.

Is there no one out there from tthe technical staff from Sketchup that can straighten this out?

Hello Colin,
looks like you are a member of the Sketchup Team.
I am a loyal paying customer for a very long time.
It would be nice if I can use dynamic components.
So please help me out.

See if what Mike wrote here helps:

Hi everyone,
for now it seems to be fixed.
Don’t ask me what I did, but this dynamic component works.
I am working on a new DC.
It is a DC in wich I can change the color of te frame (outside), color of the interior and
the color for the outer spotring and ledspot itself.
Also I want to build in the possibility to rotate the outer ring together with the spot and then seperate rotate the ledspot .
I can’t see the spot itself in the components attributes.
Is it possible to determine the sequence of the components in the attributes window?
Can some one help me out? If wanted I can upload the file.

Last I asked one of the Extensibility Team members, I was told it was not their team’s responsibility.
This was (I believe) also a reason why my idea for a public DC issue tracker at GitHub fell flat.

So this and the fact you are already up on the several known DC bugs is why I pinged you.