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

iLogic To Create Sweep

Hi Forum,

 

I want to create a sweep from two sketches but I do not know how to work it out.

 

So far, here's what I got

 

	Dim oPartDoc As PartDocument = ThisApplication.ActiveDocument
	Dim oSketch1 As Sketch = "Sketch1"
	Dim oSketch2 As Sketch = "Sketch2"
	Dim oCompDef As PartComponentDefinition
	oCompDef = oPartDoc.ComponentDefinition
	oSweep = oCompDef.Features.SweepFeatures.Add.....???

 

I'd like to create the sweep from oSketch1 and oSketch2 but do not know how to follow up the syntax to do so.

 

Best regards,

Felix Cortes