Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Help for "mnl" file please.

  1. #1
    100 Club stephan.villeneuve's Avatar
    Join Date
    2004-06
    Location
    Province of Quebec, Canada
    Posts
    140
    Login to Give a bone
    0

    Question Help for "mnl" file please.

    Hi Folks.

    I have to activate "xxx.dvb" file, made by a Department in our business, in a pull down menu (ex: Elect Dept).

    I want to activate this new menu for all the office and logically, not manually.

    I have searched in Internet and read the information but I don't really understand because I don't work normally with this type of files.

    http://discussion.autodesk.com/forum...hreadID=220371

    This example explains the possibility to load and run a ".dvb" inside "xxx.mnl" if the "xxx.mnu" exist.

    Does anybody have more informations, examples and what write in "mnl" and "mnu"???

    I tried also to add a new path (with ".dvb" file include) by OPTIONS menu but the next AutoCAD opening, the ".dvb" file is not active... Nothing in APPLOAD.

    I'm in a FOG for now!!!

    --- Sorry for my English, I'm making an effort but if the sentences are not very good, lets me know... I could make better next time!

  2. #2
    100 Club stephan.villeneuve's Avatar
    Join Date
    2004-06
    Location
    Province of Quebec, Canada
    Posts
    140
    Login to Give a bone
    0

    Cool Re: Help for "mnl" file please.

    More informations, see attached image.
    Attached Images Attached Images

  3. #3
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    0

    Default Re: Help for "mnl" file please.

    What version of AutoCAD? The version has a huge effect on the procedure.

    Also, you need to tell us the macro name and the module name where the macro is located. Just the filename of the DVB is not enough.
    R. Robert Bell
    Design Technology Manager
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

  4. #4
    100 Club stephan.villeneuve's Avatar
    Join Date
    2004-06
    Location
    Province of Quebec, Canada
    Posts
    140
    Login to Give a bone
    0

    Default Re: Help for "mnl" file please.

    It's an old version of AutoCAD always use by client with their own standards, 2005 - 2006.

    The ".dvb" file was created recently and it not use the AutoCAD commands.

    This application (.dvb) uses informations from ".xls" files, located in project forder, and insert in AutoCAD at selected insertion point.

  5. #5
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    0

    Default Re: Help for "mnl" file please.

    Quote Originally Posted by stephan.villeneuve View Post
    It's an old version of AutoCAD always use by client with their own standards, 2005 - 2006.

    The ".dvb" file was created recently and it not use the AutoCAD commands.

    This application (.dvb) uses informations from ".xls" files, located in project forder, and insert in AutoCAD at selected insertion point.
    AutoCAD 2006 uses the CUI and not MNU/MNS files.

    You did not give us the needed information regarding the DVB. We need the module name and the procedure name of the macro. This information can be found in the VBA Macros dialog box.
    R. Robert Bell
    Design Technology Manager
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

  6. #6
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: Help for "mnl" file please.

    You don't really need to add anything to the MNL file.

    Have you read and tried the examples here?
    http://www.afralisp.net/vl/vl-vba.htm
    R.K. McSwain | CAD Panacea |

  7. #7
    100 Club stephan.villeneuve's Avatar
    Join Date
    2004-06
    Location
    Province of Quebec, Canada
    Posts
    140
    Login to Give a bone
    0

    Cool Re: Help for "mnl" file please.

    Thanks for the last answer.

    Yes, I know and I used these commands "_VBALOAD" and "_-VBARUN" inside "acad2005doc.lsp"... http://usa.autodesk.com/adsk/servlet...linkID=9240617

    I created "xxx.mnu" like this:

    ***MENUGROUP=Dept_Energie
    ****POP1
    [Dept Energie]
    [Apply cables list]^C^CLoadCablesList

    With AutoCAD 2005, when I used "Apply cables list" button, I received every time a message like "dvb file is already loaded".

    I maked a changes in "acad2005doc.lsp" for:

    (defun c:LoadCablesList ()
    ; (setvar "filedia" 0)
    ; (command "_VBALOAD" "...\\xxx.dvb")
    ; (setvar "filedia" 1)
    (command "_-VBARUN" "ListeCablesHQ")

    But my PROBLEM is "xxx.dvb", I must necessarily load this file with APPLOAD... Does exists an AUTOMATIC method and/or command???????

    It's my REAL problem and question?

  8. #8
    100 Club stephan.villeneuve's Avatar
    Join Date
    2004-06
    Location
    Province of Quebec, Canada
    Posts
    140
    Login to Give a bone
    0

    Smile Re: Help for "mnl" file please.

    OK.

    I read slowly and attentively the informations on AfraLisp's WEB site with your link included and, after more than one tentative, my new menu works fine.

    ***MENUGROUP=Dept_Energie
    ***POP1
    [Dept Energie]
    [Run Cables List]^C^C^C^P(vl-vbaload "Drive:/Folder/Folder/Folder/xxx.dvb")(vl-vbarun "CablesList")

    I understand a little bit more now... But I'm not a Champion.

    For finish this work, I want to load automatically this new menu for deployment on many workstations... An idea for me?

    Thank you so much for your precious help!

  9. #9
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: Help for "mnl" file please.

    Quote Originally Posted by stephan.villeneuve View Post
    But my PROBLEM is "xxx.dvb", I must necessarily load this file with APPLOAD... Does exists an AUTOMATIC method and/or command???????

    It's my REAL problem and question?
    No, you don't have to load the dvb file using APPLOAD.
    Use the code found here. (Sorry I didn't have this link last night)

    http://www.caddzone.com/autovbaload.lsp
    R.K. McSwain | CAD Panacea |

  10. #10
    Active Member
    Join Date
    2007-07
    Posts
    89
    Login to Give a bone
    0

    Default Re: Help for "mnl" file please.

    I can only go back to AutoCAD 2006, but for a DVB file that will be loaded everytime AutoCAD is started with a particular profile I place a file called ACAD.DVB in the support folder.

    So for example on the network drive we have folders and files;

    ..\Client1\support\ACAD.dvb
    ..\Client2\support\ACAD.dvb

    Crude, but works for basic macro loading.

    Not sure it will work in 2005, but works in 2006, 2007, 2008, 2009 (2010 with the optional VBA download).

Page 1 of 2 12 LastLast

Similar Threads

  1. 2014: "Operation could not be completed" -> "File not saved"
    By Andre Voss in forum Revit - Worksharing/Worksets/Revit Server
    Replies: 4
    Last Post: 2014-02-21, 05:59 PM
  2. Replies: 0
    Last Post: 2012-06-06, 11:54 AM
  3. Replies: 0
    Last Post: 2012-05-11, 09:52 PM
  4. ENTIDADES EN ALIGNMENT COMO "FIXED", "FLOTING" y "FREE"
    By cadia in forum AutoCAD Civil 3D - General
    Replies: 1
    Last Post: 2009-02-01, 04:21 AM
  5. Convert a "IGES" or "STEP" file to a "SAT" file
    By jeff.garr in forum AutoCAD 3D (2007 and above)
    Replies: 4
    Last Post: 2006-11-20, 08:48 PM

Posting Permissions

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