Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
please refer the attached image, In the SJF Bay.iam, TD UPRIGHT:1 is a part and pattern not required. The TD UPRIGHT:2 required pattern and I did it, it's working fine. But the SJF Beam:1 and SJF Beam:2 are an assembly and I already patterned in the model, Now I want to pattern the Component Pattern 1:1 again. The first Component pattern 1:1 is must be required because the column height will increase and I will pattern upwards further.
So I need to do another pattern for the Component pattern 1:1. Please suggest.
Below code, I used for the direct model pattern,
Dim oADoc As AssemblyDocument = ThisApplication.ActiveDocument Dim oADef As AssemblyComponentDefinition = oADoc.ComponentDefinition Dim oOccs As ComponentOccurrences = oADef.Occurrences Dim oTO As TransientObjects = ThisApplication.TransientObjects Dim oObjects As ObjectCollection = oTO.CreateObjectCollection oObjects.Add(oOccs.ItemByName("TD UPRIGHT:2")) Dim oRowEntity As Object = oADef.WorkAxes.Item(3) Dim oColumnEntity As Object = oADef.WorkAxes.Item(2) Dim oPatt As RectangularOccurrencePattern oPatt = oADef.OccurrencePatterns.AddRectangularPattern(oObjects, oColumnEntity, True, -200, 3, oRowEntity, True, 0, 1) oPatt.Name = "Pattern 1"
Solved! Go to Solution.