if(setBlockInvisible)
{
var block = newComp.RootNode.Features.FirstOrDefault(f => f.Type == FeatureType.Block);
if (block != null)
block.IsVisible = false;
}
The problem is, that once I set one block.IsVisible = false, all the other blocks of the other components are also IsVisible = false, but I choose to make the components unique. It also says IsSharedClone = false in the components.
Am I missing something?
Support told me it’s a bug from VisualComponents, that Geometries won’t get Unique.
They gave me a workaround, written in Python, where the Geometries are cloned, before modifying them:
I tried to apply it in .NET, but could not get it working.
I then did it in Python, but there was no ned to apply the above workaround.
It just worked: Modifying the Property, without changing the same properties from the cloned components.
Hy @juergenb,
what Version of VC are you using?
On VC 4.10.2 this worked for me and Schiegetor is a cloned by same stuff you do, the only difference there was that second param was true…