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

abstract class issue

veldew
Super Contributor

Hi,

 

I would like to make a menu item(metacommand) available on several metaclasses.

Therefore i thought of making an abstract class, add the metacommand to it, and connect this abstract class to the objecttypes.

This works perfect with metaattributes, however not with metacommands.

 

Anyone has an idea what might be wrong ?

 

kind regards,

Wvdv

6 Replies

I thought you were talking about the image you can display in front of your menu 😉

Well, in your case, I'm not sure if it is possible to define a metapicture on an abstract metaclass 😞

If anyone can confirm...

veldew
Super Contributor

Lionel,

 

I tried to post the pictures, but was unable to do (that's another issue)   🙂

So, my colleague did...

 

So, i created a abstract class, with 1 metapicture that shows a red cross icon if there is a keyword "tag for deletion"

if i connect the metapicture to the metaclass, it works fine

however, when using the abstract class instead, nothing happens.

i put the other metapictures for the metaclass on order 10-20-30, and the one in abstract class on 1 

 

but nothing happens....

 

kind regards,

Wim

ColruytTeam
Honored Contributor

Hi Linoel,

Please find the pictures.

 1.png2.png

Colruyt Team

Hi Wim 🙂

 

can you show me what you've done and that does not work for your metapicture ?

 

Lionel

veldew
Super Contributor

Hi Lionel,

 

Thanks, now it shows the command items !

 

Brings me to a second and related question :

What about metapictures ?

I want to include a metapicture with a condition (if a keyword is connected then display this picture) with the highest priority, so it has to overrule the standard metapictures from the other metaclasses.

Doing the conditional metapicture i know, but it doesn't work with an abstract class...

 

any idea about this ?

 

thanks !

 

Kind regards,

Wim Van de Velde

lionel
MEGA
MEGA

Hello Wwdv (tell me how you pronouce this... 😉

 

If you add a metaCommand on an abstract metaClass, you need to set the "Inheritability" attribute on the link between your metaclass and your metaCommand to "1" :

 

Inheritability.jpg

 

Regards,

 

Lionel