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: chandra.shekar.g

Thanks again for the assistance.  Whats the line to add a component from the content center and the line for adding an insert constraint?

 

I tried these, to no avail.

 

SyntaxEditor Code Snippet

	Dim componentA As ComponentOccurrence 
	componentA = oNewAssy.ComponentDefinition.Occurrences.Add("C:\Users\Public\2019\PIPES\PIPEC2-40-16.ipt", oMatrix)
	componentA.Name = "Pipe"

	Dim componentB = oNewAssy.ComponentDefinition.Occurrences.AddContentCenterPart("Flange", "Tube & Pipe:Fittings:Flanges", "ASME B16.5 Flange Slip-On Welding - Class", 
	{"ND",oNozSize},position := Nothing, grounded := False,visible := True, appearance := Nothing)
													 

	oNewAssy.ComponentDefinition.Occurrences.Constraints.AddInsert("Insert1", "Pipe", "Flange Face", "Flange", "Flange Face",
    axesOpposed := Axis, distance := InsertDis, lockRotation := True, biasPoint1 := Nothing, biasPoint2 := Nothing)