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

Edit an existing Extrusion with Ilogic / vba

Hello,

 

i have an existing Extrusion. I won't to change this from increase to cut out.
The name of the Extrsion is "Bohrungen"

 

SourceSource

Won't change to:

Hole thrue allHole thrue all

 

 

 

 

I have found a code that change the direction but i don't know to change the extrusion to Cut thrue.

 

Here is the code that i have now:

 

SyntaxEditor Code Snippet

Sub Main

 Dim extrude As ExtrudeFeature = TryCast(Feature.InventorFeature("Bohrungen"), ExtrudeFeature)
 Dim extent As DistanceExtent = TryCast(extrude.Extent, DistanceExtent)
 
If Noppen = True Then
 
 extent.Direction = PartFeatureExtentDirectionEnum.kPositiveExtentDirection
 
Else

extent.Direction = PartFeatureExtentDirectionEnum.kNegativeExtentDirection

End If
 
  
 
 
 
End Sub

 

 

I have tested with the kCutOperation, but i don't know how?

 

Sincerely