Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Cut Feature Depth in sheet metal

jzarczynski
Advocate

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
Reply
Accepted solutions (1)
210 Views
2 Replies
Replies (2)

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

jzarczynski
Advocate
Advocate
0 Likes