Insert component with user interaction.

Insert component with user interaction.

Anonymous
Not applicable
342 Views
0 Replies
Message 1 of 1

Insert component with user interaction.

Anonymous
Not applicable

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:

  1. Insert a component in an assembly with interaction user.
  2. Get the added occurrence  and  add custom properties to the part
  3. Adding material to the part
  4. 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

0 Likes
343 Views
0 Replies
Replies (0)