- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to delete all parts from an assembly using ilogic. The assembly is for automating a commonly made structure with customizable length, width, and height.
The assembly currently creates parts from the content center and renames and saves them with a uniform style (ex. 99-9999-999-99-001). Only content center parts are used, but the same part may have several occurrences.
I have a form that changes the critical parameters and part name. Each time the name is changed the assembly creates new parts but leaves the old parts.
I would like to clear the assembly upon opening the assembly and/or after it saves the generated assembly as a new document for ease of use. This should make it so only the correct parts make it into the new assembly.
In case needed, here is the method I am using to name new parts:
'for all parts
'store path of this assembly for saving part Dim Path As String = ThisDoc.Path 'store job number from form for naming Dim PartName As String = JN 'part001 'create and store part document name Dim FN1 As String = PartName & "-" & "001" & ".ipt" 'store document location Dim FL1 As String = Path & "\" & FN1 'store part name Dim part1Name As String = PartName & "-" & "001"
Thank you for any replies.
Solved! Go to Solution.