Message 1 sur 3

Non applicable
01-04-2020
10:31 AM
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Lien permanent
- Imprimer
- Signaler
Hi,
In the code attached below, the pattern follows an axis.
I would like to have the pattern run along one edge of the body
How does it work? Is that possible? Does anyone have a code snippet for me? I am thankful for every hint. Please share your knowledge with me. Thank you very much.
Sub RPF() Dim oPCD As PartComponentDefinition Set oPCD = ThisApplication.ActiveDocument.ComponentDefinition Dim oXAxis As WorkAxis Set oXAxis = oPCD.WorkAxes.Item(1) Dim oOC As ObjectCollection Set oOC = ThisApplication.TransientObjects.CreateObjectCollection Call oOC.Add(oPCD.Features.Item(1)) Dim oRPFD As RectangularPatternFeatureDefinition Set oRPFD = oPCD.Features.RectangularPatternFeatures.CreateDefinition(oOC, oXAxis, True, 3, 10) Dim oRPF As RectangularPatternFeature Set oRPF = oPCD.Features.RectangularPatternFeatures.AddByDefinition(oRPFD) End Sub
Résolu ! Accéder à la solution.