Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
2965 Views, 8 Replies

iLogic AddContentCenterPart

Good evening everyone!! 

 

I was in the process of writing a bit of code where I can automate placement of content center parts. The code works on an internal rule but when I copy the exact rule to an external one it says it can't find the content center family

 

Untitled.jpg

 

SyntaxEditor Code Snippet

Dim NozzlePath As String = "Tube & Pipe:Fittings:Couplings"
Dim NozzleFamily s String = "ASME B16.11 Half Coupling Threaded - Class 3000"

Dim componentB = Components.AddContentCenterPart("Nozzle1", NozzlePath, NozzleFamily, {"ND", "3" }, position := Nothing, grounded := False, visible := True, appearance := Nothing)