Which attribute was picked in a Multileader with block?

Which attribute was picked in a Multileader with block?

JamesMaeding
Advisor Advisor
413 Views
3 Replies
Message 1 of 4

Which attribute was picked in a Multileader with block?

JamesMaeding
Advisor
Advisor

I have a routine to modify an attribute in a block.

So the user picks one of several attributes in a block, and it sets the value to say "1234" or whatever.

I can do this because NENTSEL returns the attribute picked, and more info.

However, NENTSEL on an mleader gives me only the parent mleader ename.

 

I am guerssing people may say to use the picked point to analyze what attribute I think was picked, but I am hoping that is not the only way.

Its tricky to detect text bounding boxes that might overlap a bit if the user grip moved the attribute.

 

Any easier ways to know what attribute of the block in the mleader was picked?

thanks


internal protected virtual unsafe Human() : mostlyHarmless
I'm just here for the Shelties

0 Likes
414 Views
3 Replies
Replies (3)
Message 2 of 4

hmsilva
Mentor
Mentor

@Anonymous wrote:

....

Any easier ways to know what attribute of the block in the mleader was picked?

...


I think there is no easier way... 😞

 

Henrique

EESignature

0 Likes
Message 3 of 4

hmsilva
Mentor
Mentor

@Anonymous wrote:

...

Its tricky to detect text bounding boxes that might overlap a bit if the user grip moved the attribute.

...


Another approach that can be used when there are multiple attributes (not the answer to your question), is to ask the user to select the correct attribute string in a dialog box/pup-up/commandline, introduces one more user click in the code, but ensures the selection of the correct attribute...

 

Henrique

EESignature

0 Likes
Message 4 of 4

JamesMaeding
Advisor
Advisor
stuff like this is so annoying. Now I have to tell users "mleaders work great, except....this situation, that situation...." not what I prefer to do. Or I get rather fancy with the tools and fixing them for weeks as every little situation comes up I did not think of. I'm giving mleaders a 6 out of 10 for now.

internal protected virtual unsafe Human() : mostlyHarmless
I'm just here for the Shelties

0 Likes