Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
I'm trying to build a skeleton modeling tool, but i'm kinda stuck. I have a 'Master' part that creates sketches when required. After this i would like to create a new part (which is working) & then create a derived part (which is also working). But now i want to select not all sketches to derive but only a few based on the sketch name.
For now i have this: Create part, Set the derived component, Create the derived component.
Dim oProjectMgr As DesignProjectManager = oInvApp.DesignProjectManager Dim oProject As DesignProject = oProjectMgr.ActiveDesignProject Dim oTemplatesPath As String = oProject.TemplatesPath Dim oNewDoc As PartDocument = oInvApp.Documents.Add(DocumentTypeEnum.kPartDocumentObject, oTemplatesPath & "\Standard.ipt", True) Dim oDerivedPartDef As DerivedPartUniformScaleDef oDerivedPartDef = oNewDoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents.CreateUniformScaleDef(oMasterLoc) oDerivedPartDef.ScaleFactor = 1 oDerivedPartDef.ExcludeAll() oDerivedPartDef.UseColorOverridesFromSource = False Call oNewDoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents.Add(oDerivedPartDef)
So for my settings i chose .ExcludeAll to eliminate all unwanted sketches.
But now it needs to add Sketch1 & Sketch2 for example and also Param_A & Param_B
But i think if i know howto derive the sketches i can also figure out the parameters.
Any ideas?
Please kudo if this post was helpfull
Please accept as solution if your problem was solved
Inventor 2014 SP2
Solved! Go to Solution.