Place content Center Bug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I believe I'm facing a bug when placing or replacing content center parts using iLogic. Because of the size of my custom Content Center Library I can't share the zipped Pack & Go here on the forums but I'll try my best to explain the issue anyway.
So, like I said, I created a custom Content Center Library. I also created an external rule with classes to place certain categories or families into an assembly, in the zipped Pack & Go this is an internal rule but this doesn't change anything. This is the class I'm using:
Public Class Rubber
Public Property Category As String = "Reynaers_Dichtingen"
Public Property Name As String
Public Property Number As String
Public Property Length As Integer
Public Property Visible As Boolean
Public Property Components As IManagedComponents
Public Property Component As ICadComponent
Public Sub New(Components As IManagedComponents, Component As ICadComponent)
Me.Components = Components
Me.Component = Component
End Sub
Public Sub Place()
Components.AddContentCenterPart(Name, Category, Number, {"Lengte", Length }, , False, , )
Component.Visible(Name) = Visible
End Sub
End Class
Then, in my assembly, I created an internal rule that uses this class to place or replace a Content Center part:
AddVbRule "SDK"
Sub Main
' Place/Replace Content Center Member Rubber
Dim oRubber As New Rubber(Components, Component)
oRubber.Name = "Rubber"
oRubber.Number = Nr_Rubber
oRubber.Length = Lengte_Rubber
oRubber.Visible = Rubber
oRubber.Place
End Sub
Also in the assembly, I have a True/False parameter "Rubber", a multivalue Text parameter "Nr_Rubber" and a Numeric parameter "Lengte_Rubber" to set the visibility, the family name and the length of my Content Center part.
The class and the rule initially work like intended, placing and updating the Content Center part when changing the parameters.
However, when the visibility is set to False (and the component is correctly hidden) and I then change the parameter "Nr_Rubber" the part is suddenly visible even though it shouldn't be. The browser icon still indicates that it is invisible. When right clicking the component, Visibility is checked and can not be manually changed.
This doesn't seem right to me and is posing a great challenge in building my configurators.
Could you take a look at this @MjDeck ? I sent you the zipped Pack & Go via e-mail.
Thanks