Insert component with user interaction.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello.
I have an assembly file ,I want the user to move and position the part and my programm ( vb.net ) can get the added occurrence for other processes.
The functionality of my program is:
- Insert a component in an assembly with interaction user.
- Get the added occurrence and add custom properties to the part
- Adding material to the part
- Save the file to a new path.
Can anyone help me with step 1 and 2? I want to insert the component with the coordinates where the user clicks on the camera, similar to the functionality of the command "AssemblyPlaceComponentCmd" and then add the properties the last added occurrence.
Public Sub PlacePartInteractive(ByVal filename As String)
Dim cmdMgr As CommandManager
cmdMgr = m_invApp.CommandManager
Call cmdMgr.PostPrivateEvent(PrivateEventTypeEnum.kFileNameEvent, filename)
' Execute the "Place Component" command.
cmdMgr.ControlDefinitions.Item("AssemblyPlaceComponentCmd").Execute()
cmdMgr.StopActiveCommand()
End Sub
Excuse me for my poor English
Thanks.
Angélica