Menu Help

i am trying out Bricscad in lieu of upgrading from Acad 2002. The following menu items work in Acad 2002 but not in BC:

[->$(if,$(!=,$(getvar,DIMSCALE),16),~)3/4" Details ]  This grays out the menu item if Dimscale is not 16. I cannot get it to work at all. Does BC allow greyed out menu items?

^C^C^C^P_.HPNAME ANSI32 _.HPANG 0 _.HPSCALE (* 0.375 (getvar "DIMSCALE")) ._BHATCH    This stops with an error at .HPSCALE: Unable to recognize entry.  Please try again.  It appears that calculations cannot be done in menus. Is that correct?

Are there work-arounds for these items?

 

Comments

  • 1.
    First check out the "greyed out" effect for the Bricscad menu.
    Go to the settings menu and play with the snap setting:
    ON: a frame is drawn around the image (if there is no image a framed check mark is displayed)
    OFF: no frame appears around the image (if there is no image nothing is displayed)
    Note that the text is never greyed out.

    To get this effect with your dimscale setting use this diesel expression:
    $(if,$(=,$(getvar,DIMSCALE),16),!.,)

     

    2.
    Switch the TEXTEVAL variable to 1 (=on). For information on this setting use the SETTINGS command and type in TEXTEVAL in the input box at the top

  • Following Diesel string should gray-out the menu item if Dimscale is not 16

    $(if,$(!=,$(fix,$(getvar,DIMSCALE)),16),~,)

  • @ Ferdinand: why fix?

  • To switch between greyed out text (I didn't know that was possible) and normal text plus check mark use this:
    $(if,$(=,$(getvar,DIMSCALE),16),!.,~)

  • Setting TEXTEVAL to 1 clears up the hatch error.

    However, neither suggestion gets the menu items greyed out for me. Is the Diesel expression evaluated before or after the menu flyout? I am using BC 10.3.12 and there is notrhing that I can find that explains the differences in Diesel used in BC menus.

  • OK, I did some testing with an old mns-file and what you are experiencing is really an import problem. Your diesel expression is in fact OK!

    If I import an mns-file with the menu item from your first post I have two problems:
    1.
    Strangely enough this text appears in the menu:
    $(if,$(!=,$(getvar,DIMSCALE),16),~)3/4" Details
    2.
    The menu item isn't greyed out

    Solutions:
    1.
    Start the customize command and go to the menu item. In the lower panel (caption: Sub Menu) every seems OK... but do the following anyway! Using CTRL+X remove the diesel expression. Important: click once in the title input box. Now paste the diesel expression back in the correct input box. Click Apply and OK. The text in the menu is now correct. An alternative for this strange solution is to remove all diesel expressions from the menu before importing, and add them later using the customize command.
    2.
    And now for the greyed out effect. It seems that the double quote is the problem here! If I replace the double quote with two single quotes the menu item greys out correctly (I have tried editing the cui-file and using " instead of a double quote but that doesn't work).

     

  • That works, thank you. I texted out several drawings and the menus greyed out properly.

This discussion has been closed.