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

Create Sketch From Extrude Feature

While create the Extrude feature from Sketch entities, some of the closed area does not convert as Solid during the Extrude process.So i need to identify all the entities are converted as solid or not.

For this case, i need to create the sketch from Extrude feature. Since i need to compare the two sketch entities.

So kindly guide me how to create Sketch using Extrude feature?

Otherwise how to create the profile shape by projecting a solid?

WCrihfield
in reply to: Anonymous

Have you tried playing around with the Sketch.Profiles.AddForSolid() function's optional settings?

For example:

Dim oPDoc As PartDocument = ThisApplication.ActiveDocument
Dim oPDef As PartComponentDefinition = oPDoc.ComponentDefinition
Dim oSketch As PlanarSketch = oPDef.Sketches.Item(1)
Dim oProfilePathSegments As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection
For Each oProfileOption As Profile In oSketch.Profiles
	If oProfileOption.RegionProperties.Area = 56 Then
		oProfilePathSegments.Add(oProfileOption)
	End If
Next
Dim oProfile As Profile = oSketch.Profiles.AddForSolid(False,oProfilePathSegments)
Dim oExtFeats As ExtrudeFeatures = oPDef.Features.ExtrudeFeatures
Dim oExtDef As ExtrudeDefinition = oExtFeats.CreateExtrudeDefinition(oProfile,PartFeatureOperationEnum.kNewBodyOperation)
Dim oExtFeat As ExtrudeFeature = oPDef.Features.ExtrudeFeatures.Add(oExtDef)

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Anonymous
in reply to: WCrihfield

Thanks for the reply.

But i need to create sketch from Part or Extrude feature. 

(since i need to confirm whether all closed skecth profiles are converted as Part)

Is it possible?