+ Reply to Thread
Results 1 to 10 of 10

Thread: Macro problem

  1. #1
    Junior Member
    Discipline
    Civil
    Shoey's Discipline Details
    Occupation
    CAD Manager - Transportation
    Discipline
    Civil
    Using
    AutoCAD 2011
    Join Date
    Jul 2011
    Location
    Leeds, England, UK.
    Posts
    16

    Default Macro problem

    Registered forum members do not see this ad.

    Hi,

    I have just switched to a new PC which has Win 7 (64bit).

    I have migrated all my AutoCAD 2011 and custom cuix files.
    In my custom cuix i had a macro that toggled the display of the Menu Bar.

    Code..

    Code:
    ^C^C^P(if (= 1 (getvar "menubar"))(progn (setvar "menubar" 0)(prompt "MENUBAR is turned OFF!"))(progn (setvar "menubar" 1)(prompt "MENUBAR is turned ON!")))(princ)
    Worked fine in AutoCAD when I had Win XP 32-bit.

    When i use this now it displays all the code in the command line.
    Command still works but its annoying that it does not work like it did previously.

    Any ideas?

    Many thanks
    Shoey
    Last edited by SLW210; 16th Aug 2011 at 09:12 pm.

  2. #2
    Super Member Tyke's Avatar
    Computer Details
    Tyke's Computer Details
    Operating System:
    Windows 7 - 64 bit, Vista and XP Pro
    Computer:
    HP Z400 Workstation
    CPU:
    Intel(R) Xeon(R) CPU W3530 @ 2.80GHz
    RAM:
    8 GB
    Graphics:
    Nvidia Quadro 600 1GB DDR3
    Primary Storage:
    2x 500GB HDD RAID 1 and Western Digital 2TB NAS RAID 1
    Secondary Storage:
    Lacie external HDD 2TB Raid Level 1
    Monitor:
    Samsung SyncMaster P2770HD, 2443 and 193T
    Discipline
    Multi-disciplinary
    Tyke's Discipline Details
    Occupation
    Surveyor, programmer, civil engineer
    Discipline
    Multi-disciplinary
    Details
    Surveying and civil engineering. As built utilities surveys and data maintenance in GIS systems. Building surveys, measured and laser scanning. Setting out of all civil works. Control and settlement surveys. Programming in AutoCAD, MicroStation, Geograf and stand alone applications for all uses.
    Using
    Civil 3D 2013
    Join Date
    Jun 2006
    Location
    Saxony, Germany
    Posts
    856

    Default

    Why do you need a macro to do that? At the righthand side of the Quick Access Toolbar theres a small triangle with a line above it. If you click on that you have at the bottom the ability to display or hide the Menu Bar.
    Engage brain before mouth

    "The German who types with a Yorkshire accent" - Dave Broada 2o1o

  3. #3
    Junior Member
    Discipline
    Civil
    Shoey's Discipline Details
    Occupation
    CAD Manager - Transportation
    Discipline
    Civil
    Using
    AutoCAD 2011
    Join Date
    Jul 2011
    Location
    Leeds, England, UK.
    Posts
    16

    Default

    Tyke,

    Thanks for your reply.
    I am aware that you can toggle the menu bar from the QAT.
    But i have this macro on a toolbar with several other variables ( 0 or 1 values ) and i use these for fast switching between the values.
    My menubar macro toggle, when selected from a toolbar is faster than accessing from the QAT.
    Just my preference.

    But i cannot understand why all of the macro code is displayed when i now use it in Win 7 64bit.

    Ta
    Shoey

  4. #4
    Super Member Tyke's Avatar
    Computer Details
    Tyke's Computer Details
    Operating System:
    Windows 7 - 64 bit, Vista and XP Pro
    Computer:
    HP Z400 Workstation
    CPU:
    Intel(R) Xeon(R) CPU W3530 @ 2.80GHz
    RAM:
    8 GB
    Graphics:
    Nvidia Quadro 600 1GB DDR3
    Primary Storage:
    2x 500GB HDD RAID 1 and Western Digital 2TB NAS RAID 1
    Secondary Storage:
    Lacie external HDD 2TB Raid Level 1
    Monitor:
    Samsung SyncMaster P2770HD, 2443 and 193T
    Discipline
    Multi-disciplinary
    Tyke's Discipline Details
    Occupation
    Surveyor, programmer, civil engineer
    Discipline
    Multi-disciplinary
    Details
    Surveying and civil engineering. As built utilities surveys and data maintenance in GIS systems. Building surveys, measured and laser scanning. Setting out of all civil works. Control and settlement surveys. Programming in AutoCAD, MicroStation, Geograf and stand alone applications for all uses.
    Using
    Civil 3D 2013
    Join Date
    Jun 2006
    Location
    Saxony, Germany
    Posts
    856

    Default

    Shoey,

    I understand where you are coming from and I agree with your logic.

    I have a new W7 64Bit at home and I have palettes with macros in the command string and I don't have your problem with the code displaying in the command line. I guess there's a sysvar somewhere that controls it, but don't ask me which

    BTW we were almost neighbours at one time I lived just off the Stray in Harrogate before coming out here and I still do some bits and pieces for a small Civ Eng Consultant there. Which firm are you with?
    Engage brain before mouth

    "The German who types with a Yorkshire accent" - Dave Broada 2o1o

  5. #5
    Super Member Tyke's Avatar
    Computer Details
    Tyke's Computer Details
    Operating System:
    Windows 7 - 64 bit, Vista and XP Pro
    Computer:
    HP Z400 Workstation
    CPU:
    Intel(R) Xeon(R) CPU W3530 @ 2.80GHz
    RAM:
    8 GB
    Graphics:
    Nvidia Quadro 600 1GB DDR3
    Primary Storage:
    2x 500GB HDD RAID 1 and Western Digital 2TB NAS RAID 1
    Secondary Storage:
    Lacie external HDD 2TB Raid Level 1
    Monitor:
    Samsung SyncMaster P2770HD, 2443 and 193T
    Discipline
    Multi-disciplinary
    Tyke's Discipline Details
    Occupation
    Surveyor, programmer, civil engineer
    Discipline
    Multi-disciplinary
    Details
    Surveying and civil engineering. As built utilities surveys and data maintenance in GIS systems. Building surveys, measured and laser scanning. Setting out of all civil works. Control and settlement surveys. Programming in AutoCAD, MicroStation, Geograf and stand alone applications for all uses.
    Using
    Civil 3D 2013
    Join Date
    Jun 2006
    Location
    Saxony, Germany
    Posts
    856

    Default

    Shoey,

    At the beginning of your macro try setting the sysvar NOMUTT to 1 to turn off the "muttering".
    Code:
    ^C^C^PNOMUTT;1;(if...
    You can always turn it back on at the end of your macro is you want to.

    PS I've only tried this on my XP 32Bit in the office.
    Engage brain before mouth

    "The German who types with a Yorkshire accent" - Dave Broada 2o1o

  6. #6
    Super Moderator SLW210's Avatar
    Computer Details
    SLW210's Computer Details
    Operating System:
    Windows 7 PRO
    Computer:
    IBM Lenovo
    Motherboard:
    ACPI x86
    CPU:
    Pentium(R) Dual-Core CPU E5500 @ 2.80GHz
    RAM:
    4 GB RAM
    Graphics:
    Nvidia Quadro 600 1GB
    Primary Storage:
    300 GB
    Secondary Storage:
    650GB
    Monitor:
    ThinkVision 22"
    Discipline
    Multi-disciplinary
    SLW210's Discipline Details
    Occupation
    Design Draftsman
    Discipline
    Multi-disciplinary
    Details
    Mostly do drafting related to manufacturing. From doing site layouts with proposed updates, additions and renovations to be budgeted and submitted for bid, to updating and changing existing drawings to reflect maintenance and repair/revision work done on site.
    Using
    AutoCAD 2011
    Join Date
    May 2007
    Location
    South Florida, USA
    Posts
    9,106

    Default

    Shoey,
    I took care of it this time, but next time use the CODE TAGS, please.
    “A narrow mind and a fat head invariably come on the same person” Zig Zigler



  7. #7
    Junior Member
    Discipline
    Civil
    Shoey's Discipline Details
    Occupation
    CAD Manager - Transportation
    Discipline
    Civil
    Using
    AutoCAD 2011
    Join Date
    Jul 2011
    Location
    Leeds, England, UK.
    Posts
    16

    Default

    BTW we were almost neighbours at one time I lived just off the Stray in Harrogate before coming out here and I still do some bits and pieces for a small Civ Eng Consultant there. Which firm are you with?
    Harrogate eh?..................the posh part of Yorkshire. Bet you did'nt eat your fish and chips wrapped up. I work near Leeds city centre for large international multi-discipline engineers.

    Thanks for the NOMUTT suggestion.




    Shoey,
    I took care of it this time, but next time use the CODE TAGS, please.
    Sorry about that - I will remember next time.

    Shoey

  8. #8
    Super Member Tyke's Avatar
    Computer Details
    Tyke's Computer Details
    Operating System:
    Windows 7 - 64 bit, Vista and XP Pro
    Computer:
    HP Z400 Workstation
    CPU:
    Intel(R) Xeon(R) CPU W3530 @ 2.80GHz
    RAM:
    8 GB
    Graphics:
    Nvidia Quadro 600 1GB DDR3
    Primary Storage:
    2x 500GB HDD RAID 1 and Western Digital 2TB NAS RAID 1
    Secondary Storage:
    Lacie external HDD 2TB Raid Level 1
    Monitor:
    Samsung SyncMaster P2770HD, 2443 and 193T
    Discipline
    Multi-disciplinary
    Tyke's Discipline Details
    Occupation
    Surveyor, programmer, civil engineer
    Discipline
    Multi-disciplinary
    Details
    Surveying and civil engineering. As built utilities surveys and data maintenance in GIS systems. Building surveys, measured and laser scanning. Setting out of all civil works. Control and settlement surveys. Programming in AutoCAD, MicroStation, Geograf and stand alone applications for all uses.
    Using
    Civil 3D 2013
    Join Date
    Jun 2006
    Location
    Saxony, Germany
    Posts
    856

    Default

    Quote Originally Posted by Shoey View Post
    Bet you did'nt eat your fish and chips wrapped up. I work near Leeds city centre for large international multi-discipline engineers.

    Thanks for the NOMUTT suggestion.
    But I did eat my fish and chips wrapped up and even frequented Harry Ramsdens. Can't get any here though and nobodys ever heard of Sarson's malt vinegar

    Did the NOMUTT suggestion work?

    Do you work in that building near the junction of Sovereign Street and Swinegate?
    Engage brain before mouth

    "The German who types with a Yorkshire accent" - Dave Broada 2o1o

  9. #9
    Junior Member
    Discipline
    Civil
    Shoey's Discipline Details
    Occupation
    CAD Manager - Transportation
    Discipline
    Civil
    Using
    AutoCAD 2011
    Join Date
    Jul 2011
    Location
    Leeds, England, UK.
    Posts
    16

    Default

    Quote Originally Posted by Tyke View Post
    But I did eat my fish and chips wrapped up and even frequented Harry Ramsdens. Can't get any here though and nobodys ever heard of Sarson's malt vinegar

    Do you work in that building near the junction of Sovereign Street and Swinegate?
    Shame - might be a gap in the market for a chippy over there!
    Yes - did work in a building on Sovereign Street but not for BWP! Re-located a few years back to another, more modern office in Leeds.



    The problem has managed to resolve itself....I dont know how.
    I've been loading various custom lisps etc on the new PC and when i tried the macro there was no echoing of the code.
    It was not the NOMUTT, CMDECHO or MENUECHO variables - I had already tried them.
    It's got to be a variable ( probably set from one of the custom lisps ) but can't work out which one!

    Cheers Tyke
    Shoey

  10. #10
    Super Member Tyke's Avatar
    Computer Details
    Tyke's Computer Details
    Operating System:
    Windows 7 - 64 bit, Vista and XP Pro
    Computer:
    HP Z400 Workstation
    CPU:
    Intel(R) Xeon(R) CPU W3530 @ 2.80GHz
    RAM:
    8 GB
    Graphics:
    Nvidia Quadro 600 1GB DDR3
    Primary Storage:
    2x 500GB HDD RAID 1 and Western Digital 2TB NAS RAID 1
    Secondary Storage:
    Lacie external HDD 2TB Raid Level 1
    Monitor:
    Samsung SyncMaster P2770HD, 2443 and 193T
    Discipline
    Multi-disciplinary
    Tyke's Discipline Details
    Occupation
    Surveyor, programmer, civil engineer
    Discipline
    Multi-disciplinary
    Details
    Surveying and civil engineering. As built utilities surveys and data maintenance in GIS systems. Building surveys, measured and laser scanning. Setting out of all civil works. Control and settlement surveys. Programming in AutoCAD, MicroStation, Geograf and stand alone applications for all uses.
    Using
    Civil 3D 2013
    Join Date
    Jun 2006
    Location
    Saxony, Germany
    Posts
    856

    Default

    Registered forum members do not see this ad.

    I used BWP a couple of times in conjunction with some planning appeals that we had, I used a planning consultant call Rob Smith he has his office in Leeds, but I'm not sure if he still practices.

    I'm glad to hear that it sorted itself out, you'll just need to keep an eye on the LISP routines and see if you can localize it.
    Engage brain before mouth

    "The German who types with a Yorkshire accent" - Dave Broada 2o1o

Similar Threads

  1. SELECT in macro won't stay selected!!!! How to hide Macro in command line aswell?
    By jamesfear in forum The CUI, Hatches, Linetypes, Scripts & Macros
    Replies: 11
    Last Post: 31st Jul 2012, 02:23 am
  2. Button macro problem
    By xikes in forum The CUI, Hatches, Linetypes, Scripts & Macros
    Replies: 3
    Last Post: 21st Mar 2011, 08:01 pm
  3. Macro problem
    By Diast in forum AutoCAD Beginners' Area
    Replies: 10
    Last Post: 19th May 2010, 10:08 pm
  4. Fillet 0 macro problem
    By Diedesigner in forum AutoLISP, Visual LISP & DCL
    Replies: 4
    Last Post: 18th Dec 2009, 04:30 am
  5. Macro problem with area
    By patch131 in forum AutoLISP, Visual LISP & DCL
    Replies: 3
    Last Post: 29th May 2009, 10:17 am

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts