sketch11 Posted February 10, 2021 Posted February 10, 2021 (edited) If a menu file contains more entries than the screen can accommodate, there is an option to scroll up or down. Is there a way to have the menu items show over multiple columns as shown in the image. Sample code is shown below. ***MENUGROUP=STRUCTURAL_STEEL_SAMPLE ***POP17 **CTOPopSTRUCTURAL_STEEL_SAMPLE [Structural Steel (Sample)] [->Sample group] [400x300x16.0RHS]^C^C(BlockInsert "RectangularHollowSection_400x300x16.0RHS");scale;1; [400x300x12.5RHS]^C^C(BlockInsert "RectangularHollowSection_400x300x12.5RHS");scale;1; [400x300x10.0RHS]^C^C(BlockInsert "RectangularHollowSection_400x300x10.0RHS");scale;1; [400x300x8.0RHS]^C^C(BlockInsert "RectangularHollowSection_400x300x8.0RHS");scale;1; [--] Edited February 10, 2021 by sketch11 Quote
BIGAL Posted February 10, 2021 Posted February 10, 2021 (edited) You may have to look at sub sub menu's say groups ->150->250 ->300->400 etc Edited February 11, 2021 by BIGAL Quote
sketch11 Posted February 11, 2021 Author Posted February 11, 2021 OK thank you for confirming. Incidentally, do you know how to insert special characters into the menu, such as "φ". Quote
BIGAL Posted February 11, 2021 Posted February 11, 2021 Be careful I totally crashed my Autocad to it showed FILE EDIT and that was it and could not get the menu's back, I did in end but took a while it was caused by a MNU file being loaded that was not right and Autocad spat the dummy in a big way. So I would make sure you have a workspace saved like your name before trying extended characters. Have workspace save auto set to NO. If it works save workspace. If you know the alt+xxx key number give that a try. Also try Mtext then copy and paste into your text editor. a≠a not equal. Quote
sketch11 Posted February 11, 2021 Author Posted February 11, 2021 OK thanks for advising. Do you know what form it's in though? Eg. "(chr #)" Quote
BIGAL Posted February 11, 2021 Posted February 11, 2021 C:\windows\fonts Find a character Look at code provided use \U+00BC etc = 1/4 in Mtext then copy to your text file Maybe \U+03C6 is small greek Phi Quote
sketch11 Posted February 12, 2021 Author Posted February 12, 2021 OK thanks for responding. Just to clarify, I don't have issues with finding the character, and understanding the Unicode tags. Pasting the character into a text editor is also not a problem, the character does show there. The issue is that it does not show in the menu file in AutoCAD. And the question is about programming, ie, how to tell the MNU file, in code, to show the special character in the AutoCAD menu. In Excel VBA for example, you can represent the character "φ" with "ChrW(&H03C6)". Quote
BIGAL Posted February 12, 2021 Posted February 12, 2021 It may be deep inside Autocad the default font used and is it limited to the number of characters supported. The phi being in excess of say 128. I know you can change some display settings in Autocad part done in Windows part in Autocad but its been years since I played with that. 1 Quote
sketch11 Posted February 12, 2021 Author Posted February 12, 2021 OK thanks, I will look into the changing the font file then, if that's possible. Quote
sketch11 Posted February 12, 2021 Author Posted February 12, 2021 The closes I got was changing the font in the command window. https://knowledge.autodesk.com/support/autocad-for-mac/learn-explore/caas/CloudHelp/cloudhelp/2018/ENU/AutoCAD-MAC-Core/files/GUID-8D939006-3A0E-4FF3-B5FB-C809F8EB2797-htm.html I would suggest that the character "φ" is part of most Windows fonts. But I did notice that with shx fonts, there are less characters available, so with RomanS.shx, there is no "φ" available. At the same time, the font in the AutoCAD menu looks the same as for Windows applications, which I would guess use one of the standard Windows fonts, which does include "φ". Quote
BIGAL Posted February 12, 2021 Posted February 12, 2021 (edited) WARNING DO NOT DO IN AUTOCAD screws it right up. About to spend a 1/2 hour now trying to fix. Copied from mtext in Bricscad. Edited February 12, 2021 by BIGAL Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.