08-24-2018
09:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
08-24-2018
09:45 AM
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)