Jump to content

Search the Community

Showing results for tags 'macro'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • CADTutor
    • News, Announcements & FAQ
    • Feedback
  • AutoCAD
    • AutoCAD Beginners' Area
    • AutoCAD 2D Drafting, Object Properties & Interface
    • AutoCAD Drawing Management & Output
    • AutoCAD 3D Modelling & Rendering
    • AutoCAD Vertical Products
    • AutoCAD LT
    • CAD Management
    • AutoCAD Bugs, Error Messages & Quirks
    • AutoCAD General
    • AutoCAD Blogs
  • AutoCAD Customization
    • The CUI, Hatches, Linetypes, Scripts & Macros
    • AutoLISP, Visual LISP & DCL
    • .NET, ObjectARX & VBA
    • Application Beta Testing
    • Application Archive
  • Other Autodesk Products
    • Autodesk 3ds Max
    • Autodesk Revit
    • Autodesk Inventor
    • Autodesk Software General
  • Other CAD Products
    • BricsCAD
    • SketchUp
    • Rhino
    • SolidWorks
    • MicroStation
    • Design Software
    • Catch All
  • Resources
    • Tutorials & Tips'n'Tricks
    • AutoCAD Museum
    • Blocks, Images, Models & Materials
    • Useful Links
  • Community
    • Introduce Yourself
    • Showcase
    • Work In Progress
    • Jobs & Training
    • Chat
    • Competitions

Categories

  • Programs and Scripts
  • 2D AutoCAD Blocks
  • 3D AutoCAD Blocks
  • Images
    • Backgrounds

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

  1. Jrbuds

    Macro Help

    Hi, I am trying to create a macro (or lisp) and am struggling to find how I would do it. Basically what I want to achieve is this: Click Custom button, Click first point (p1) Click second point (p2) Insert block at p1 and set scale to equal distance between p1 and p2 Set bearing to the bearing between p1 and p2 then end. The process will take 3 clicks including click the custom button. This is to basically speed up inserting doors. I was thinking possible making it draw a line when you click p1 and p2 then use this line to grab the start of line, end of line and bearing. Or using variables. Any help would be appreciated, or pointing in the right direction. I don't expect anyone to do all the work for me, just a hint would be awesome.
  2. I have generated the following Macro in a drop down menu for quick insertion of some of my company's standard blocks. I want to know how to add the function explode to the command so as soon as I have placed the block using the macro it exploded on placement or selection of the macro. ^C^C-insert;F:/Blocks/CAN.dwg
  3. Hi all, I am encountering a strange problem: Which ever "multiple" command I enter - I get aforementioned error. Example Command: ^C^C_Selectsimilar;\;change;p;c;7;; Unknown command "^C^C_SELECTSIMILAR;\;CHANGE;P;C;7;;". Press F1 for help. _Selectsimilar;\;change gives me the same error. every multiple command I try to enter in command prompt - gives me the error. Among others, I tried the commands Tuns mentioned in another topic: Command: Select;p;; Unknown command "SELECT;P;;". Press F1 for help. Not to be odd enough - If I make a toolbar button and assign the very same macro to it - the press on the button executes the command(s) successfully I am new to macros and I need to experiment a bit before I "hit the pot" - so the solution with the buttons are not applicable. Any advice how to resolve this problem? Thanks in advance, cheers p.s. - F1 is a very nice button (in AC). Beautiful letter, number... Cute. It is a shame it don't have some cool function, like for example - useful help... ------------------------------------- Autocad 2014 Advance Steel 2013
  4. Hi All I cave created a new drop down menu using the Customize User Interface in AutoCad 2011 called Load Aerial Photography with a sub menu called Insert Tiles. When selecting my new menu I would like to have a macro that browses to where our JPEG Aerial Photos are kept on our network. At the moment I have to select the AutoCad pull down:- Insert, Raster Image Referance then browse to M:\DATA\AERIAL_PHOTOS\2012\84235\RGB_10cm_1km_Jpeg_Tiles If there is a user on this Forum who can put together a Macro that will browse to the above filepath I would be very grateful as I'm really getting nowhere with this. Thanks Paul
  5. I used to work at a company that had a command for inserting blocks and depending on some factor (i think ltscale) the block would come in the correct size. but if it was off the block would come in the wrong size. I think it was a lisp routine but now the main problem I am using 2013 LT, no lisp:( And I can not add the 3 party programs, company computer. please help we use several size drawings here and they each have a differant dimscale. that would be good if the blocks were scaled based off the dimscale. but if not that s fine. diesel
  6. Hello, I have been a lurker on these parts for a while, now i need help with a problem of my own. (I use autocad mechanical 2013) I have a cad drawing which contains 1000's of blocks, each with its own part reference within. As we use autodesk Vault and cad's design centre in tandem both the block name and partref description need to match. At present many block do not. What I am investigationg a a lisp type routine which will automatically rename all blocks in a drawing with its part reference description. As I am a novice with lisp I would like the forums help with this. Kind Regards, lladoog
  7. Hello, Firstly,Sorry for my English and I admit I'm addicted to making enhancements in CAD drawing I'm looking for quiet simple way to copy current layout and move it to end using only some commands. I know "Move or Copy..." dialog box method but I need to do exactly the same thing using commandline. What for? I've prepared little button which places boundary of viewport in model space and copies current layout with increased number like 'Layout1 (2)'. It's very useful with long maps projects (for example: creating 200 same layouts of trace/route). Button works fine except placing duplicated layout tab behind current one. So generating another copy of layout I get reversed order. I don't know is it clear so let me explain: my first layout is named 'Sheet(1)' duplicating with my button, after this I have two tabs: 'Sheet(1)' 'Sheet(2)' duplicating with my button again, after this I have three tabs: 'Sheet(1)' 'Sheet(3)' 'Sheet(2)' As you can see 'Sheet(3) is misplaced and performing action again and again gives ...'Sheet(5)' ..(4) ..(3) ..(2)... With hundreds of layouts I need to rearrange them somehow. With publish option is so painful . Button is based on this tip and using this command: [font=helvetica][font=courier new]^C^C_pspace;_boundary;[color=red]100[/color],[color=red]100[/color];;_chspace;_l;;_layout;_c;;;[/font][/font] Note that works only on viewports that are placed somewhere about 100x100 units (it doesn't matter on layouts with only one maximized vport bigger than 100x100 - red values in code above). I am not geek yet so I don't know how to find any command performed by dialog box - maybe debug, but how? I am using AutoCAD LT so VBA or LISP is disabled for me. Please help if it possible.
  8. I have this macro (from Somewhere) to increment numbers on each click. I would like it to set to object snap Near before i click so it will just snap the number to the nearest thing i click. *^C^C_text;\;$M=$(+,$(getvar,USERI1),1);setvar;USERI1;$M=$(+,$(getvar,USERI1),1); Also is there anyway to change this so the text is rotated 90deg? As a separate macro. Any help greatly appreciated. Thanks in Advance.
  9. DDTarrant

    Macro textstyle

    This macro is something I use as a 'trained monkey'. I know what it does and how to use it but now I want to alter it and most of it is Greek to me. By elimination it seems "textsz" changes the current textstyle to a different style. The alteration I want to make is to stop the macro changing the textstyle. (progn(setq scl 1)(setq scfac 1)(textsz)(dimsz)(ltscl)(prompt"Scale has been set to 1:1000")(setvar "modemacro" " : Scale is 1:1000 .")(princ)) How would this be happenning, or is it something our long since gone Acad expert setup to make our lives easier? This is my first post and ask for gentle chastisements if I've done something wrong Cheers Doug
  10. Can I modify an existing viewport in a macro or in the command line? Using a macro, I want to modify (specifically delete) the viewport from a layout tab after chspace from model space. Does anyone know how to do this? I have LT so no LISP. qselect works but cannot be put into a macro. If I "select all" on a layout tab in paperspace ACAD says 1 of the objects selected is the viewport so I know autocad recognizes the viewport as a different kind of object. Thanks for your help.
  11. I m new to ASD, using VBA macros i want to make automated reinforcement process. I've imported autocad file inside ASD and need to generate reinforcement automatically inside ASD only. I know this is possible but i m not getting it. does anybody have any idea for doing this ?
  12. I know this is probably a super easy fix, but I just don't know how to do it. I have a macro that works great in my toolbar and/or ribbon, but I want to make it a script so that I can put it in a program such as Multi-batch and use it on several drawings at one time. How do I convert a macro to a script? Basically what the macro currently does is pop my drawing into paperspace, zoom extents, turn off layers I don't need, and change the Ltscale and psltscale to be correct for printing. Any suggestions would be appreciated. Thanks so much. Here is the macro: ^C^C(setvar "pdmode" 0);_tilemode;0;zoom;extents;ltscale;0.5;-layer;f;*A-ANNO-ENGR,*A-SEAL-ASBESTOS,*A-SEAL-CIVIL,*A-SEAL-FIRE,*A-SEAL-ELEC,*A-SEAL-MECH,*A-SEAL-PLUMB,*A-SEAL-STRUCT;;
  13. I have recently started working with the german version of AutoCAD 2012 and the "previous" command doesn't seem to work right. When I use the command it selects my previous selection and then asks me to select more objects and when I press enter it cancels the command all together. Here is the code from the macro: $M=$(if,$(getvar,cmdactive),,_select;)_p Wondering if someone can either tell me how to fix it or send me the correct code so I can once again use this very practical resource.
  14. Hi, I am writing code on modifying items in pickfirstselectionset. Everything goes well in VBA editor. But after I attached macro to a toolbar button, the selection is cancelled when clicking the button and then no changes to the previous selected objects. I used vbarun in command line, it's the same. anyone knows how to fix it? Thx in advance. I'm familiar with VBA, but absolutely new with AutoCAD. I kind of sense it's a rookie questioin but I can't find a solution on the web.
  15. I am absolutely new here, so I apologize if I am in the wrong place I'm building a tool palette in ACAD2012. I want to put in a matchline that enters a line on a particular layer with a specific linetype; easy enough with a command ^C^C_pline and then I've set my options for the appropriate linetype, color... whatnot. Now I want to adjust it, I want the line to go in and then the word "MATCHLINE" to automatically go above the end of the line. following that, I would like a prompt for the user to enter text at the end of "matchline". Any suggestions? I admit, I am terrible at lisp, but that may be the way to go. I can of course also add a macro into the palette, so that is an option as well.
  16. Scripts are not my strongest skill, so I hope to find some basic help. I want to make a action macro that selects the copy the last layout tab, copy that, goes modelspace and -pan @some numbers, go back in modelspace. stop. I've recorded the following steps succesfully: Layout copy and mspace -pan (basepoint plus some mumbers) (@-3000,0) I would like to know the command for selecting the last layout tab. Without using right-click functions which, as I know of, are not recorded? Hope someone can help
  17. Once I start recording a new macro I have no issues at all. Everything works fine and it records all my commands correctly. The issue is inserting a block within the macro. When the macro is played, as soon as the playback comes to the “Insert” command, my model space zooms and pans immediately back to the original coordinates of creating the macro. I am inserting just a regular 2D block, not a Dynamic block. I have right-clicked on every part of the Action Tree within the macro and specified to wait for user input so that I may place the blocks where I choose, not the coordinates recorded when creating the macro, but it’s that first insert that causes all the problems. The rest of the inserts within the macro work just fine without taking off somewhere else. I work for a structural engineering firm so I would like to have a macro that places two studs at each side of a window with a beam and callout in between. Obviously I would do this to every window in the building, but every time that I start my macro that I created, it gets to the insert block part of the play back and zooms and pans completely some where else in my drawing. That leaves me to have to pan back to find my window in order to finish my task. I think the Action Recorder is a great idea, and it’s almost there for me! I need just a little help. Thank you for your time!!! AutoCAD 2012
  18. Hi I'm new to the forum, and i hope someone can help me ! I'm currently using Inventor 2012 and i need a macro (code): I want to know if it's possible to export all the information from the parameters list (everything, names, values, tolerances, comments...) to an excel spreadsheet or a txt file (it can be a table, or a CVS file, i just want that information!), from a part file (.ipt) or a drawing file (.dwg). Currently, i can only export the parameters' names and values , but i can't get to the tolerance values and comments . . . Is there anyway to do this ? Many thanks, Regards JVC
  19. I use 2010 lt: I want to be able to make a button for each layerstate. Is that possible? example a button for: 1st floor 2nd floor ect... Thanks for any help on this subject. I don't know anything about macros.
  20. Ok i have this macro: ^C^Cgraphscr ;filedia 0; script "logo.scr" that opens this script: _Insert "L:\AUTOCAD\Titleblocks\SSAB Logo\SSAB Logo.dwg" ;And to finish the script Filedia 1 I am running autocad 2010 64 bit on windows 7 64bit The script works if i run it via the command line instead of through a button but the macro does not want to work except if i have a blank (acad.dwt) drawing open. It recalls the the last command before starting the macro: Command: Command: Command: graphscr Command: GRAPHSCR Command: filedia Enter new value for FILEDIA : 0 Command: FILEDIA Enter new value for FILEDIA : script Requires 0 or 1 only. It fails because filedia is running again then instead of answering as 0 or 1 it uses script, which fails. I have tried multiple things. Please Help Also the buttons to put code in are not working.
  21. Ok, in CUI I have created a custom workspace and brought in 4 partial customization files. Created the Tabs and have created the Panels in each of the Tabs. All works well. I am now editing the panel button macros so that when a pump or a valve is chosen, its respective layer automatically changes. All is good so far. Now I need to duplicate what I have done on another station without changing 45 macros again. I know I can export the environment and have it import on the other station, that works fine. I only want to copy those files I have edited and move them to the other station. Any thoughts are welcome. This applies to those who are working with more than one workstation wanting to keep the same system capabilities the same on all. Thanks!
  22. Hi, I'm a new poster currently trying to speed up the production of my pre-cast floor drawings. What I want to do is to select a dynamic block (already inserted into the drawing) and press a button to insert a copy of it, a set distance away from the original. I then want the newly created block to be selected, so that I can press the button again, or press another button (set to another distance) to produce another copy; and so on. I am struggling to get the new block to be selected at the end of the macro. I have tried using single selection, and Last; but the block does not stay selected. Can anybody out there help please? My current script is : ^C^Ccopy;D;@0,521 Thanks
  23. Ok so to give a little background what is going on I have Autocad 2010 with Rastercad Add on. I want to create a macro that will let me open a new drawing hit enter(for the basic autocad templete) and then run the command gattach which will open a window that will allow me to open my raster image. I can not get the new command to open the dwg templete without asking me. Here is what i have so far: ^C^C_new ;-Gattach:(
  24. when i am trying to use a function like mirror or offset..etc i will select the lines or objects then i will make a mistake such as selecting the wrong base point or such. i then press esc to end that function and try again but find it annoying that i have to select all the lines again. is there a quicker way to reselect the last lines or objects selected. "like the (L+enter) to use line function type macro". any advice you can give is greatly appreciated.
  25. Hi, I have created a macro command for my "dimaligned" so that every time i click on macro button and create a dimaligned it turns onto the good layers and i wanted to know if it is possible to remplace or create another dimaligned shortcut command (dal) by that macro command that i created. So everytime i would type Dimaligned or dal on the command prompts it would be my macro and not the standart dimaligned command. Is it possible? Heres my macro, ^C^C_-layer;_make;A-ANNO-DIMS;;_dimaligned; Thanks!
×
×
  • Create New...