Message 1 of 3
Welds

Not applicable
01-03-2019
09:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to make a rule which will make a user pick a weld. I think it is not possible with this line of code:
SyntaxEditor Code Snippet
a1=ThisApplication.CommandManager.Pick(SelectionFilterEnum.kAssemblyOccurrenceFilter,"Select a weld")
But it is posiible with mouse events like this:
Please only ilogic code........
Sub Main() Dim oInteraction As InteractionEvents oInteraction = ThisApplication.CommandManager.CreateInteractionEvents Dim oMouse As MouseEvents oMouse = oInteraction.MouseEvents AddHandler oMouse.OnMouseDown ,AddressOf oMouse_OnMouseDown oInteraction.Start End Sub Sub oMouse_OnMouseDown(Button As MouseButtonEnum, ShiftKeys As ShiftStateEnum, ModelPosition As Point, ViewPosition As Point2d, view As View) MsgBox (Button) End Sub
The rule only needs to make an user pick somthing from the browser node (in this case weld bead)