12-14-2021
03:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
12-14-2021
03:33 PM
Is there a way to have the user select multiple entities with a lasso in a drawing, similar to commandmanager.pick()?
Solved! Go to Solution.
12-15-2021
12:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
12-15-2021
12:17 AM
Yes, it is possible, but there is not some built-in function. You need to implement full selection using events. VBA sample is here
https://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=GUID-60F44C84-D0A6-445B-ADDB-575E3B420DC2
12-15-2021
02:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
12-15-2021
02:44 AM
Hi,
Not sure if this is exactly what you are looking for but here is an example of what I am using.
The user selects bodies until he presses the ESC key.
The bodies are placed in a collection. I hope this will help you.
Vincent.
Dim oBodies As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection Dim oBody As SurfaceBody Do oBody = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kPartBodyFilter, "Select Bodies. ESC for stop selection") If oBody IsNot Nothing Then oBodies.Add(oBody) End If Loop While Not oBody Is Nothing
12-15-2021
07:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
12-15-2021
07:05 AM
I've thought about doing this, but I have to select 50+ line of like .125" long, so clicking each one is a chore.
Thanks, though!
Thanks, though!
12-15-2021
07:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
12-15-2021
07:20 AM
Thanks! I think this is what I'm looking for. I'm guessing this sample is for part entity selection so I'd have to change the selection filters to make it work on a drawing?
12-16-2021
03:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
12-16-2021
03:19 AM
This example describes general concept of selection using events. It may work on any selectable entities.