iLogic importing Content Center Parts with External Rule

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a local rule that successfully imports content center parts. I want to make it an external rule so it can be updated to have more functionality in the future. I have noticed that I cannot directly reference parameters from the external file, so I have replaced all parameters with a function that references the parameters. For example.
NOZSCH
has been replaced with
Parameter("NOZSCH")
Now when I run my corrected code, it is not successfully finding the content center row in the external rule despite working in the local one. Further, the error message that pops up shows no issues with the exact strings being used. See below.
The lines I am using in this case are as follows.
Local Code:
Dim NozzlePath As String = "Tube & Pipe:Fittings:Flanges" Dim NozzleFamily As String = "CL" & CLASS & " " & TYPE & " FLG " & NOZMAT Dim ccDescription As String = "DESCRIPTION" Dim NozzleDescription As String = SIZE & QUOT & " x CLASS " & CLASS & " " & NOZTYPE & " FLG SCH " & NOZSCH Dim Nozzle As String = "N" & CURRENTNOZ
Dim componentA = Components.AddContentCenterPart(Nozzle, NozzlePath, NozzleFamily, {ccDescription,NozzleDescription}, position := Nothing, grounded := False, visible := True, appearance := Nothing)
External Code:
Dim NozzlePath As String = "Tube & Pipe:Fittings:Flanges" Dim NozzleFamily As String = "CL" & Parameter("CLASS") & " " & Parameter("TYPE") & " FLG " & Parameter("NOZMAT") Dim ccDescription As String = "DESCRIPTION" Dim NozzleDescription As String = Parameter("SIZE") & Parameter("QUOT") & " x CLASS " & Parameter("CLASS") & " " & Parameter("NOZTYPE") & " FLG SCH " & Parameter("NOZSCH") Dim Nozzle As String = "N" & CURRENTNOZ
Dim componentA = Components.AddContentCenterPart(Nozzle, NozzlePath, NozzleFamily, {ccDescription,NozzleDescription}, position := Nothing, grounded := False, visible := True, appearance := Nothing)
Is there some sort of reference I need to add to specify the content center when dealing with external code?