.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I want to know what the entity result is after each select by ed.getselection()

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
swaywood
300 Views, 4 Replies

I want to know what the entity result is after each select by ed.getselection()

Hello everyone

I am currently using the ed. getselection() method

I selected three times during the operation process

Two box selections (PT1+PT2&PT3+PT4), one pick selection (PT5)

 

I want to know what the entity result is after selecting PT1 and PT2 in the box

I know what kind of event may be needed,

but I really don't know where to start

Please help me, thank you

 

25bf4f0b8347c246d7801caa4c23db8c.png

4 REPLIES 4
Message 2 of 5
ActivistInvestor
in reply to: swaywood

You can use the Editor's SelectionAdded event for that.

 

Have a look at these posts for some examples. 

Message 3 of 5
swaywood
in reply to: ActivistInvestor

Thank you for your reply

I want to know the entities selected each time, whether they are duplicated or not.

For example, I chose twice,

Once selected text 123 in block reference A,

Another time, I selected the text 456 in the same block reference A

 

I hope to get the points I make each selection

and the objectid of the selected block reference,

even if there are duplicate block references

 

I found that Ed-SelectionAdded filtered out duplicate block references

So I didn't receive any feedback on my second choice

 

could you help me for this?

Message 4 of 5
ActivistInvestor
in reply to: swaywood

You have to set the PromptSelectionOptions to allow subselections and allow duplicates.

 

If you need further help please post your code. 

Message 5 of 5
swaywood
in reply to: swaywood

allow duplicates is ok!

thanks!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Autodesk Design & Make Report