Get Currently Selected Object(s)

Mon 15. May 2017, 23:11

I have a custom window which I want to use to display extra information about the selected object. I see no obvious way to get the currently selected object, though. I could workaround this by adding a button to the context menu, as GetMenuEntries provides the currently selected objects, but this is clunky. Ideally I would like the user to be able to click an object and have the custom window populate with the new object's data.

I could see maybe a Query returning the list of selected objects, but I don't know what my query would be.

Is there any way to accomplish this?
doday
 
Posts: 29
Joined: Wed 15. Mar 2017, 23:06

Re: Get Currently Selected Object(s)

Tue 23. May 2017, 22:43

Bumping this

I have my workaround, but I would still like a better solution. Anyone have any suggestions?
doday
 
Posts: 29
Joined: Wed 15. Mar 2017, 23:06

Re: Get Currently Selected Object(s)

Thu 2. Nov 2017, 09:39

Have you any progress. Can i get current ObjectProxy ?
andrey_st
 
Posts: 9
Joined: Fri 27. Oct 2017, 14:36

Re: Get Currently Selected Object(s)

Tue 14. Nov 2017, 12:58

Starting with version 1.3 of the ArticyDraft3.MacroDevKit nuget package you can override the method

Code: Select all
public override void SelectionChanged( List<ObjectProxy> aObjects, SelectionContext aContext )


in your plugin (requires articy:draft 3.1.6)

Using this method you get informed each time a selection is changed by user interaction.
User avatar
[Articy] Peter Sabath
Articy Staff
Articy Staff
 
Posts: 89
Joined: Wed 23. Nov 2011, 13:58
Location: Bochum

Return to articy:draft Macro Devkit

Who is online

Users browsing this forum: No registered users and 8 guests

Who We Are
Contact Us
Social Links