Message 1 of 20

Not applicable
06-01-2017
03:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi!
i want to insert a ifeatures with ilogic, my test code
' Get the part document and component definition of the active document. Dim oPartDoc As PartDocument oPartDoc = ThisApplication.ActiveDocument Dim oPartDef As PartComponentDefinition oPartDef = oPartDoc.ComponentDefinition ' Get the selected face to use as input for the iFeature. Dim oFace As Face oFace = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kPartFaceFilter,"SELECTIONNE Ta face" ) Dim oFeatures As PartFeatures oFeatures = oPartDef.Features ' Create an iFeatureDefinition object. Dim oiFeatureDef As iFeatureDefinition oiFeatureDef = oFeatures.iFeatures.CreateiFeatureDefinition( _ "C:\IPSO2016\tab\PASSE_FILS.ide") ' Set the input. Dim oInput As iFeatureInput For Each oInput In oiFeatureDef.iFeatureInputs Dim oParamInput As iFeatureParameterInput Select Case oInput.Name Case "Sketch Position Plane1" Dim oPlaneInput As iFeatureSketchPlaneInput oPlaneInput = oInput oPlaneInput.PlaneInput = oFace Case "XA" oParamInput = oInput oParamInput.Expression = "1 in" Case "YA" oParamInput = oInput oParamInput.Expression = "0.5 in" End Select Next ' Create the iFeature. Dim oiFeature As iFeature oiFeature = oFeatures.iFeatures.Add(oiFeatureDef)
but dont work, anybody can help me?
thanks for your help!
Solved! Go to Solution.