Distance Parameter

Distance Parameter

Anonymous
Not applicable
336 Views
2 Replies
Message 1 of 3

Distance Parameter

Anonymous
Not applicable
How to set the parameter expression for extrude feature's distance
like we set for taper angle oExtrude.TaperAngle.Expression=TAPER_ANGLE
0 Likes
337 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
If the extrude feature has been created using the distance extent, you can
get the parameter corrresponding to this from the ExtrudeFeature.Extent
property:

Public Sub ExtrudeFeat()

Dim ActivePartDoc As PartDocument
Set ActivePartDoc = ThisApplication.ActiveDocument

Dim ExtrudeFeat As ExtrudeFeature
Set ExtrudeFeat =
ActivePartDoc.ComponentDefinition.Features.ExtrudeFeatures(1)

If ExtrudeFeat.ExtentType = kDistanceExtent Then

Dim ExtrudeFeatDistExtent As DistanceExtent
Set ExtrudeFeatDistExtent = ExtrudeFeat.Extent

ExtrudeFeatDistExtent.Distance.Expression = "2.0 in"
End If

End Sub

If you need to change the extrude feature from another extent type to
distance extent, you can use the ExtrudeFeature.SetDistanceExtent method.

-Venkatesh Thiyagarajan.

wrote in message news:5644482@discussion.autodesk.com...
How to set the parameter expression for extrude feature's distance
like we set for taper angle oExtrude.TaperAngle.Expression=TAPER_ANGLE
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks Venkatesh
0 Likes