Cut Feature Depth in sheet metal

Cut Feature Depth in sheet metal

jzarczynski
Advocate Advocate
261 Views
2 Replies
Message 1 of 3

Cut Feature Depth in sheet metal

jzarczynski
Advocate
Advocate

Hello,

There is no property like Depth for CutFeature Object. 

In holes i colect the depth by:
Dim holeDepth As Double = hole.Depth

How to check the depth of Cutfeature ? Could you please present the approach?

jzarczynski_0-1713777442221.png

 

My goal is to identify all blind holes in sheet metal, including the ones made by "cut" function,


0 Likes
Accepted solutions (1)
262 Views
2 Replies
Replies (2)
Message 2 of 3

BM_Ashraf
Advocate
Advocate
Accepted solution

Hi,

Hope this script helps you in moving forward!

	Dim oDoc As PartDocument = ThisDoc.Document
	
	Dim oCutFeature As CutFeature
	Try
		oCutFeature = ThisApplication.CommandManager.Pick(kPartFeatureFilter, "Please select The Cut feature")
	Catch 
		Exit Sub
	End Try
	If oCutFeature.Definition.ExtentType = kDistanceExtent Then
	
	  Dim oExtent As DistanceExtent = oCutFeature.Definition.Extent
	  
	  Dim oDistance As ModelParameter = oExtent.Distance
	  
	    MsgBox (oDistance.Value * 10)
	    
	End If
If this solved your problem, or answered your question, please click ACCEPT SOLUTION.

Blue Mech

Add-ins for Inventor!

0 Likes
Message 3 of 3

jzarczynski
Advocate
Advocate
0 Likes