I would like to use Ilogic to insert a part into an assembly I have found the basic rule but what changes do i need to make to get it to put the selected part into an assembly.
DimoFileDlgAsinventor.FileDialog=NothingInventorVb.Application.CreateFileDialog(oFileDlg)'oFileDlg.Filter = "Inventor Files (*.iam;*.ipt)|*.iam;*.ipt|All Files (*.*)|*.*"
'oFileDlg.Filter = "XML Files (*.xml)|*.xml"
'oFileDlg.Filter = "Excel Files (*.xls;*.xlsx)|*.xls;*.xlsx"
'oFileDlg.Filter = "Text Files (*.txt;*.csv)|*.txt;*.csv"
'oFileDlg.Filter = "SAT Files (*.sat)|*.sat"
'oFileDlg.Filter = "IGES Files (*.igs)|*.igs"oFileDlg.Filter="Step Files (*.stp)|*.stp"'oFileDlg.DialogTitle = "Select a File"oFileDlg.InitialDirectory=ThisDoc.PathoFileDlg.CancelError=TrueOnErrorResumeNextoFileDlg.ShowOpen()IfErr.Number<>0ThenMessageBox.Show("File not chosen.", "Dialog Cancellation")ElseIfoFileDlg.FileName<>""Thenselectedfile=oFileDlg.FileNameMessageBox.Show("File "&selectedfile&" was selected.", "Dialog Selection Made")EndIf
Any ideas would be appreciated
There is an example zip file showing the use of iLogic to place and replace components in an assembly at this link:
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.
Thanks for the reply,
The link is helpful and is helping me to understand ilogic more.
But for my situation it would be better if you could select a file in the file selection dialogue (in this case a surface in iges format) and be placed in the part file. This surface is then used to reference features to build the part, which I am aiming to do in Ilogic as well.
Is this possible