Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Yoooyoyoyoyoyooyoyoyyyyooyoyooyo
friends,
i need help creating a rectangular / linear pattern along a helical curve with a solution in iLogic.
I attached an .ipt file and two pictures for easier understanding
Simply put, i created a hole on a cylinder, and now i want to create a pattern of this hole along a helical curve (which was created via a 3D-Sketch).
im no VBA expert, but i found some code snippets online which work towards the goal.
The following code works in creating patterns, but only along an Axis, not a helical curve
Dim oPartDoc As PartDocument = ThisDoc.Document
Dim oPartComp As PartComponentDefinition = oPartDoc.ComponentDefinition
Dim oHole As HoleFeature = oPartComp.Features.HoleFeatures.Item("Bohrung1")
Dim oBjCol As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection
Call oBjCol.Add(oHole)
Dim oAxis As WorkAxis = oPartComp.WorkAxes.Item(1)
oRectFeat = oPartComp.Features.RectangularPatternFeatures.Add(oBjCol, oAxis, False, 3, 5, PatternSpacingTypeEnum.kDefault)
this thread had a similar problem:
Help would be very appreciated.
Regards
Solved! Go to Solution.