iLogic Extrude

iLogic Extrude

Cosmin_V
Advocate Advocate
499 Views
1 Reply
Message 1 of 2

iLogic Extrude

Cosmin_V
Advocate
Advocate

Hi,

I have an extrusion for cutting on a plan, which is moving.

And if I move it to much the extrusion will be "No Effect". 

Is there a code which … If feature "Delete" =No Effect

                                              feature "Delete" = false

 

Many Thanks!

0 Likes
Accepted solutions (1)
500 Views
1 Reply
Reply (1)
Message 2 of 2

Justin.B.
Enthusiast
Enthusiast
Accepted solution

If you know the location where the cut starts leaving no change, the easiest thing to do would be to disable the feature when its position is beyond that value.

If yourPositionParameter >= 5 mm Then
	Feature.IsActive("yourFeature") = False
Else
	Feature.IsActive("yourFeature") = True
End If

If that position is harder to anticipate, you can check the health status of your features and disable them when they're sick like this:

For Each oFeature As PartFeature In ThisDoc.Document.ComponentDefinition.Features
	If oFeature.Name = "yourFeature" Then
		Feature.IsActive("yourFeature") = True
		If oFeature.HealthStatus = HealthStatusEnum.kDriverLostHealth Then
			Feature.IsActive("yourFeature") = False
		End If
	End If
Next

I found more details and more health statuses here:

https://forums.autodesk.com/t5/inventor-forum/checking-constraint-health-in-ilogic/m-p/6396661/highl...

Hope that helps