Message 1 of 6
Inserting parts into an assembly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have come across two methods of inserting components into a Inventor assembly. They both seem to work well but I would like to know which one is the preferred method.
Secondly is there a way to insert the components but disabling the iMate feature. Using any one of the two methods Inventor places the components with iMate functionality on. Can this be disabled?
Thanks.
{code}
'Method1
oApp.CommandManager.PostPrivateEvent(Inventor.PrivateEventTypeEnum.kFileNameEvent, destinationFile1)
oApp.CommandManager.StartCommand(Inventor.CommandIDEnum.kPlaceComponentCommand)
'Method2
oApp.CommandManager.PostPrivateEvent(Inventor.PrivateEventTypeEnum.kFileNameEvent, destinationFile1)
Dim oCtrlDef As ControlDefinition
oCtrlDef = oApp.CommandManager.ControlDefinitions.Item("AssemblyPlaceComponentCmd")
oCtrlDef.Execute()
{code}
I have come across two methods of inserting components into a Inventor assembly. They both seem to work well but I would like to know which one is the preferred method.
Secondly is there a way to insert the components but disabling the iMate feature. Using any one of the two methods Inventor places the components with iMate functionality on. Can this be disabled?
Thanks.
{code}
'Method1
oApp.CommandManager.PostPrivateEvent(Inventor.PrivateEventTypeEnum.kFileNameEvent, destinationFile1)
oApp.CommandManager.StartCommand(Inventor.CommandIDEnum.kPlaceComponentCommand)
'Method2
oApp.CommandManager.PostPrivateEvent(Inventor.PrivateEventTypeEnum.kFileNameEvent, destinationFile1)
Dim oCtrlDef As ControlDefinition
oCtrlDef = oApp.CommandManager.ControlDefinitions.Item("AssemblyPlaceComponentCmd")
oCtrlDef.Execute()
{code}