Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
DFitting
in reply to: MjDeck

I'm having a similar issue with the new 

Components.AddContentCenterPart

 Ive got it to place the pipe in, but I am only able to place in the content centers default length, ie. 50" long

 

as we know, Inventor default content center has the PL parameter set to an expression of [0.001;;;50] which I know is where the 50 is coming from. I feel like I'm missing a step, or maybe it's not possible at the time to place an expressional part such as a pipe. 

 

This is some test code, it is placing the 1st component but when I uncomment the 2nd one @ 20" it won't place it. 

 

SyntaxEditor Code Snippet

Dim componentA = Components.AddContentCenterPart("occNameA", "Tube & Pipe:Conduits:Pipes", "ASME B36.10M Pipe", 
	                                        {"Size_Designation","3 - Schedule 40" ,"PL",50}, 
	                                        position := Nothing, grounded := False, 
	                                        visible := True, appearance := Nothing)
											
'Dim componentB = Components.AddContentCenterPart("occNameB", "Tube & Pipe:Conduits:Pipes", "ASME B36.10M Pipe", 
'	                                        {"Size_Designation","3 - Schedule 40" ,"PL",20}, 
'	                                        position := Nothing, grounded := False, 
'	                                        visible := True, appearance := Nothing)