06-07-2019
08:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
06-07-2019
08:28 AM
Hi Forum,
I am trying to write a code to create the a rectangular feature pattern and was wondering if someone could help me out. Here's what I have right now:
Dim oPartDoc As PartDocument = ThisDoc.Document Dim oCompDef As PartComponentDefinition = oPartDoc.ComponentDefinition Dim oRectDef As RectangularPatternFeatureDefinition = oCompDef.Features.RectangularPatternFeatures.CreateDefinition("TOP", "X-Axis", _ True, 2, 10) Dim oPartFeature As PartFeature = oCompDef.Features.RectangularPatternFeatures.AddByDefinition(oRectDef)
Best regards,
Felix
Solved! Go to Solution.