Need to EDIT radius of a fillet using API/iLogic

Need to EDIT radius of a fillet using API/iLogic

llorden4
Collaborator Collaborator
407 Views
2 Replies
Message 1 of 3

Need to EDIT radius of a fillet using API/iLogic

llorden4
Collaborator
Collaborator

I can't seem to run down the features of a Fillet feature to edit the Radius value I created using a Simple Fillet.

oFillet = oCompDef.Features.FilletFeatures.AddSimple(oEdges, EdgeDist * 2.54, False, False)

I'm attempting to edit the feature vs deleting it and re-creating it.  Can anyone point me in the right direction here, the API and Help isn't being very helpful on this issue and I'm not getting any hits on my searches.

 

I can find my value, but it's read only.

oFillet = oCompDef.Features.Item("Edge Fillet")
MsgBox(oFillet.FeatureDimensions.Item(1).Parameter.Value)

'also works
MsgBox(oFillet.Parameters.Item(1).Value)
Autodesk Inventor Certified Professional
0 Likes
Accepted solutions (1)
408 Views
2 Replies
Replies (2)
Message 2 of 3

JelteDeJong
Mentor
Mentor
Accepted solution

I could not find a neat solution. But I found something that might help. If you're creating a very simple fillet with only 1 radius. Then you will probably also have only 1 parameter.  Then you can try this:

Dim parameter = oFillet.Parameters.Item(1)
parameter.Expression = "20 mm"

 

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

Message 3 of 3

llorden4
Collaborator
Collaborator

Well that was just no where near intuitive, you can't edit the value directly but you can make a variable to a read only value and then edit the variable which can edit the read only value.

 

I made a small modification to use a variable in that rendition which also succeeded.

oParam = oCompDef.Features.Item("Edge Fillet").Parameters.Item(1)
oParam.Value = EdgeDist * 2.54

 

Thanks for the pointer!

Autodesk Inventor Certified Professional
0 Likes