Place Component As
Scenario/Problem: Save As and place a component in one command.
Manual Process:
1. Open the component to be placed.
2. Save Copy As of the document to a new location and name.
3. Place newly saved part into assembly.
iLogic Code Listing:
Sub Main()
'Check to make sure in an assembly or exit.
If Not ThisDoc.Document.DocumentType = DocumentTypeEnum.kAssemblyDocumentObject _ Then Return
'Get Location of existing component.
Dim compFileName As String = _ …
Read more