Solid Edge Part Type Library
AddFiniteRevolvedProtrusion Method
Specifies the number of profiles that are to be used to create the revolved protrusion.
Specifies the profiles that are to be used to create the revolved protrusion.
Specifies the RefAxis object about which the profiles are to be rotated to create the revolved protrusion.
A member of the FeaturePropertyConstants constant set that specifies if the revolved protrusion is to be created to the positive side, the negative side, or both sides of the profile.
Specifies in radians the sweep of the angle of revolution.
This argument can be used to specify the extent using the key point or tangent face. If a tangent face is used, to specify the distance, you need to specify the KeyPointFlags argument.
Optional if the KeyPoint argument is used to define the extent, but required if the TangentFace argument is used to specify the extent. Specify the KeyPointFlags using the FeaturePropertyConstants value.
Description
Creates a RevolvedProtrusion object.
Syntax
Visual Basic
Public Function AddFiniteRevolvedProtrusion( _
   ByVal NumberOfProfiles As Long, _
   ByRef ProfileArray() As Object, _
   ByVal ReferenceAxis As RefAxis, _
   ByVal ProfilePlaneSide As FeaturePropertyConstants, _
   ByVal AngleofRevolution As Double, _
   Optional ByVal KeyPointOrTangentFace As Variant, _
   Optional ByVal KeyPointFlags As Variant _
) As Model
Parameters
NumberOfProfiles
Specifies the number of profiles that are to be used to create the revolved protrusion.
ProfileArray
Specifies the profiles that are to be used to create the revolved protrusion.
ReferenceAxis
Specifies the RefAxis object about which the profiles are to be rotated to create the revolved protrusion.
ProfilePlaneSide
ValueDescription
igAddRound
igAll
igAlongAnAxis
igAngularDummy
igAsConstruction
igBend
igBendAndFaceCornerRelief
igBendOnlyCornerRelief
igBothFeature Properties - Both
igChainedCornerRelief
igChamfer2Setbacks
igChamfer45degSetback
igChamferAngleSetback
igCircular
igCloseCornerCircleCutout
igCloseCornerClosed
igCloseCornerNone
igCloseCornerOpen
igClosed
igCloseFaces
igConcave
igConstantRadiusArc
igConstRadiusRound
igContinuous
igConvex
igCopy
igCornerRound
igCounterboreHole
igCounterboreProfileIsAtBottom
igCounterboreProfileIsAtTop
igCounterdrillHole
igCountersinkHole
igCurvatureContinuous
igCurvatureContinuousInterior
igCurveSetSeperator
igDeleteFaceHeal
igDelSMFaceBoth
igDelSMFaceNone
igDelSystemRelief
igDelZeroBendRadius
igDevelopableSurface
igEdgeBasedCrossSection
igEdgesByLoop
igEdgesByVertex
igEnd
igEndCaps
igEqualOffset
igEquationType
igExtendFeature Properties - Extend
igExtendBendRelief
igFacesTouchingCurvesOnly
igFilletBendRelief
igFinite
igFlangeCenterOfEdge
igFlangeEndFromEndEdge
igFlangeEndOnEndEdge
igFlangeFromBothEndsOfEdge
igFlangeFromDefinedStartPoint
igFlangeFullEdge
igFlangeMatchFace
igFlangeOffset
igFlangeStartFromEndEdge
igFlangeStartOnEndEdge
igFlatten
igFormedEnd
igFromNonReferenceEnd
igFromReferenceEnd
igFromTo
igFull
igGroove
igHemTypeCenteredLoop
igHemTypeClosed
igHemTypeClosedLoop
igHemTypeCurl
igHemTypeOpen
igHemTypeOpenLoop
igHemTypeSFlange
igIgnoreBlends
igInsideFeature Properties - Remove/Add Material Inside
igInsideDimension
igIntersect
igLancedEnd
igLeftFeature Properties - Project to Left
igLinear
igLinearCurvatureContinuousExtension
igLinearTangentExtension
igLip
igLouverFormedEndType
igLouverLancedEndType
igLouverRound
igLouverRoundNone
igMitreByAngle
igMitreByDist
igMitreManufacturingCut
igMitreNormalToThickness
igMitreParallelToThickness
igMitreRegularCut
igMove
igMultipleEdges
igNatural
igNeutralFactorFromExcel
igNFType
igNoCornerRound
igNoExtendFeature Properties - Do Not Extend
igNone
igNonSymmetric
igNormal
igNormalSideDummyFeature Properties - Normal Side
igNoRound
igNullConstant
igOffset
igOutsideFeature Properties - Remove/Add Material Outside
igOutsideDimension
igOverlapFaces
igParallelDummy
igParallelToPlane
igPartingFromCurve
igPartingFromEdge
igPartingFromPlane
igPartingFromSurface
igPatternAlongCurve
igPatternByTable
igPatternCircular
igPatternFillRegion
igPatternMirror
igPatternMountingBoss
igPatternRectangular
igPatternUserDefined
igPeriodic
igProfileBasedCrossSection
igProjectOptionProject
igProjectOptionWrap
igPunchedEnd
igRadial
igRaisedCounterboreSlot
igRecessedCounterboreSlot
igRecreateBlends
igRectangularBendRelief
igReflective
igRegularHole
igRegularSlot
igRegularThread
igRemoveBoundaries
igRemoveExternalBoundaries
igRemoveInternalBoundaries
igReverseNormal
igReverseNormalSideDummyFeature Properties - Reverse Normal Side
igRightFeature Properties - Project to Right
igRipBendRelief
igRipCornerRelief
igRndCapAcrossSharpEdges
igRndMiterAtCorner
igRndPreserveTopologyOff
igRndPreserveTopologyOn
igRndRollAcrossSharpEdges
igRndRollAcrossTangentEdgesOff
igRndRollAcrossTangentEdgesOn
igRndRollAlongBlendEdgesOff
igRndRollAlongBlendEdgesOn
igRndRollAroundCorner
igRoundAllVertexSetback
igRoundEndVertexEdgeSetback
igRoundSetbackIsAbsolute
igRoundSetbackIsRelative
igRoundSingleVertexSetback
igRoundStartVertexEdgeSetback
igRoundVertexEdgeSetback
igShowBoundaries
igSideInfoSetSeperator
igSingleEdge
igSMClearanceCutout
igSMFaceCutout
igSMMidPlaneCutout
igSplit
igSplitAngle1Left
igSplitAngle1Right
igSplitDraft
igStart
igStepDraft
igStepDraftPerpendicular
igStraightPipeThread
igSubtract
igSweepAlignArcLength
igSweepAlignNormal
igSweepAlignParallel
igSweepAlignParametrically
igSweepC1Continuity
igSweepC2Continuity
igSweepMergeAll
igSweepMergeAlongPath
igSweepMergeNone
igSweepScaleNone
igSweepScaleStartAndEnd
igSweepTwistNone
igSweepTwistStartAndEnd
igSweepTwistTurns
igSweepTwistTurnsPerUnitLength
igSymmetricFeature Properties - Symmetric Extent
igTangent
igTangentInterior
igTaperByAngle
igTaperByRatio
igTaperByRLRatio
igTaperDimAtBottom
igTaperDimAtTop
igTaperedEnd
igTaperedHole
igTaperedPipeThread
igTaperedToPlane
igTappedHole
igThickness
igThkInProfilePlane
igThkNormalToProfilePlane
igThreeHundredAndSixty
igThroughAll
igThroughAxis
igToEndOfEdge
igToggleToConstructionToggle from Design to Construction
igToggleToDesignToggle from Construction to Design
igToKeyPoint
igToNext
igTreatmentCircleCutout
igTreatmentCrown
igTreatmentDraft
igTreatmentFormedFeatureDisplayAsCenterMark
igTreatmentFormedFeatureDisplayAsModeled
igTreatmentFormedFeatureDisplayAsSketch
igTreatmentFormedFeatureDisplayAsSketchAndCenterMark
igTreatmentIntersect
igTreatmentMiterRelief
igTreatmentOff
igTreatmentRectangularCutout
igTreatmentUCutout
igTreatmentVCutout
igUnequalOffset
igUnite
igUShaped
igVarRadiusRound
igVBottomDimToFlat
igVBottomDimToV
igVShaped
igWeldGrooveCapProject
igWeldGrooveCapSameAsTop
igWeldGrooveCapSurface
A member of the FeaturePropertyConstants constant set that specifies if the revolved protrusion is to be created to the positive side, the negative side, or both sides of the profile.
AngleofRevolution
Specifies in radians the sweep of the angle of revolution.
KeyPointOrTangentFace
This argument can be used to specify the extent using the key point or tangent face. If a tangent face is used, to specify the distance, you need to specify the KeyPointFlags argument.
KeyPointFlags
Optional if the KeyPoint argument is used to define the extent, but required if the TangentFace argument is used to specify the extent. Specify the KeyPointFlags using the FeaturePropertyConstants value.
Remarks
Typically, this method is used to create a revolved protrusion that is to be the base feature for a model. Additional revolved protrusions added to the model are created through methods that belonging to the model's RevolvedProtrusions collection object. The AddFiniteRevolvedProtrusion method creates a revolved protrusion feature by extending a wireframe geometric pattern around an axis. Therefore, a profile that contains the revolved feature's wireframe geometry and a reference axis must exist before the AddFiniteRevolvedProtrusion method can be executed. This method fails if called more than one time because only one base feature (or Model) is valid in a Part file.
Example
Private Sub Form_Load()
    Dim objApp As SolidEdgeFramework.Application
    Dim objDoc As SolidEdgePart.PartDocument
    Dim objRPProfile As SolidEdgePart.Profile
    Dim objRPRAxis As SolidEdgePart.RefAxis
    Dim objRPCSection As SolidEdgeFrameworkSupport.Circle2d
    Dim objRPProfArray(1 To 3) As SolidEdgePart.Profile
    Dim objModel As SolidEdgePart.Model
    Dim lngStatus As Long
    ' Report errors
    Const PI = 3.14159265358979
    ' Create/get the application with specific settings
    On Error Resume Next
    Set objApp = GetObject(, "SolidEdge.Application")
    If Err Then
        Err.Clear
        Set objApp = CreateObject("SolidEdge.Application")
        Set objDoc = objApp.Documents.Add("SolidEdge.PartDocument")
        objApp.Visible = True
    Else
        Set objDoc = objApp.ActiveDocument
    End If
    ' *** creating a base revolved protrusion feature using igRight
    ' creating the reference axis and profile and validating it
    Set objRPProfile = objDoc.ProfileSets.Add.Profiles.Add(pRefPlaneDisp:=objDoc.RefPlanes(2))
    Call objRPProfile.Lines2d.AddBy2Points(x1:=0, y1:=-0.05, x2:=0, y2:=0.05)
    Set objRPRAxis = objRPProfile.SetAxisOfRevolution(lineforaxis:=objRPProfile.Lines2d(1))
    Set objRPCSection = objRPProfile.Circles2d.AddByCenterRadius(x:=0.05, y:=0, Radius:=0.025)
    lngStatus = objRPProfile.End(ValidationCriteria:=igProfileNoSelfIntersect)
    If lngStatus <> 0 Then
        MsgBox "Profile for the base feature is self-intersecting)"
    End If
    ' creating the revolved protrusion feature
    Set objRPProfArray(1) = objRPProfile
    Set objModel = objDoc.Models.AddFiniteRevolvedProtrusion(NumberOfProfiles:=1, _
                                                             ProfileArray:=objRPProfArray, ReferenceAxis:=objRPRAxis, _
                                                             ProfilePlaneSide:=igRight, AngleOfRevolution:=3 * PI / 2)
    'Turn off the profile
    objRPProfile.Visible = False
    ' USER DISPLAY
    ' Release objects
    Set objApp = Nothing
    Set objDoc = Nothing
    Set objRPProfile = Nothing
    Set objRPRAxis = Nothing
    Set objRPCSection = Nothing
    Set objRPProfArray(1) = Nothing
    Set objModel = Nothing
End Sub
See Also

Models Collection  | Models Members