Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
felix.cortes5K3Y2
2059 Views, 4 Replies

iLogic to Create Rectangular Pattern Of Part Feature

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