is there a way to use vb to add closed sketch loops to an existing feature?
I am trying to create a parametric template for a fan guard assembly, complete with drawings.
I am using an arrangement of circles defined using some linear sketch patterns as the cross-section of a revolved feature. Using ilogic/vb, I want to automate the number and spacing of items in the linear pattern, and then update the loops selected for the revolved feature.
I have found code on this forum (courtesy of Curtis Waguespack) that I can use to select all closed loops and create a feature. I can apply this code to create a NEW revolved feature, but I haven't been able to figure out how to use it to UPDATE an existing feature.
I need the feature to UPDATE rather than create new to maintain links in my assemblies and drawings.
Any help is appreciated.
Set oRevolve = oCompDef.Features.RevolveFeatures.Item("revFaceWir
Set oSketch = oRevolve.Profile.Parent 'get the sketch
oRevolve.Profile.Parent.Edit 'edit the sketch
Set oProfile = oSketch.Profiles.AddForSolid 'get the profile loops and save to oProfile
oRevolve.Profile = oProfile 'update the profile definition for oRevolve
oPartDoc.Update 'update the doc
part updates, drawing doesn't break. YAY!
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register