I am trying to write a macro for a button that when I press, it goes to a certain folder on a server. Normally when you click on the "open" button, it takes you to the last file location. I want that to be ignored an goes to a certain folder.
I recently found this lisp routine which changes dimension text from the actual measurement to EQ.
(Defun c:equaldim () (setq newdim (entsel " Select Dimension to Replace with EQ.:")) (setq newdimvalue "EQ.") (command "dimedit" "n" newdimvalue newdim "") (princ) )
I would like to be able to do the same in 2013 LT using a macro. All efforts to write a macro have failed because I don't know what controls the Text Override.
I want to take the current document, convert to PDF using a profile I have saved, then create a new email message in Microsoft Outlook, attach the PDF that saw just created, and use the file name as the subject of the email (minus the file extension).
Bonus points for also selecting a signature that I have in Outlook. I know the PDF creation can happen, and I know I can save the file name to be passed on, but can I access Outlook from CorelDraw?
Current System: i3 3.07ghz, 3gb ram, Windows 7 32 bit with all updates and X6
Problem is that it doesn't type the text exactly as given. Randomly drops off the first few characters.Because hitting open defaults to the libraries instead of my server where the files are located.
When you hit open the cursor is already in the "File name:" field so if I just type the directory there and hit enter it takes me to that directory. Sure would be nice to just have it type that for me and enter. Had it working great for a few times but aftaerr navigating around for a bit it drops off those characters.
how to write macros.I'd like to draw a line. This line must be in the same place wherever I put on the macro code and not on a user friendly dialog box. I have too much to learn still psudo code
draw blue line 7 pixels wide on layer "guideline" starting at x 500 pixels and y 300 pixels and finish at x 600 pixels y 400 pixels.If Guideline layer does not already exist, create it.
How do I write this macro.How do I install it? How do I execute it?
I have created a ribbon bar in autocad 2012 using API and c#. On ribbon button i am executing a Command method which display a wizard for copying some files.
Now i want to run a macro before executing the ribbon button command method. Which display a message box with yes and no . if user click yes command method will executes itself and display wizard for copy files.
If user click no command method will not execute and return. This will allow user to use macro for customizing the file copy process.
After starting my previous thread "What formula will work to achieve this result" I decided to post this new thread because I have changed my mind and will now be using the external Excel file that the "Extract Data" creates to do my calculations.
Here's what I would like to do: create a Macro [button] in Excel with the following conditions: * Sample of excel spreadsheet: * MANUF NoSUB No.DESCRIPTION** UNIT QUANTITY A123494456TYPE A, XXXX XXX * * * * EA** * * * 45 A423520374YA1AM, XXXXXXXXXX * **EA** * * * 55 A148231375TYPE B, XXXXXXXXX * * * EA** * * * 33 A146151725A1AAM, XXXXXXXXXX * * EA** * * * 67 A135621873TYPE A, XXXXXXXXX * * * EA** * * * 24
1. * * * CONDITION #1: IF "DESCRIPTION" TAB ["C" COLUMN] CONTAINS "TYPE A" AS PART OF TEXT/DESCRIPTION, TAKE THE "QUANTITY" TAB ["E" COLUMN] SPECIFIED ON THAT PARTICULAR ROW AND DIVIDE IT BY 20, ROUNDED UP TO NEAREST ONE.*
2. * * * CONDITION #2: IF "DESCRIPTION" ["C" COLUMN] CONTAINS "TYPE B" AS PART OF TEXT/DESCRIPTION, TAKE THE "QUANTITY" SPECIFIED ON THAT PARTICULAR ROW ["E" COLUMN] AND DIVIDE IT BY 10, ROUNDED UP TO NEAREST ONE.
3. * * * AUTOMATICALLY SAVE THE EXCEL FILE AFTER THIS MACRO HAS BEEN UTILIZED.
For several years I've been programming in Inventor and AutoCAD, with VBA. Making macros and creating a button for them in the toolbar of Inventor is no problem. What disturbs me slightly is that the name of the button is the same as the name of the macro. In VBA you can't create functions with spaces in the name. So the name of the toolbar button often looks quite silly.
Is there a way to change the name and the tooltip-text of the toolbar button without loosing the link to the original macro? In AutoCAD this is no problem, but Inventor...
Product Design Suite 2014 Inventor 2012 SP2, Vault 2014 HP Workstation Z220 Intel Xeon 3.4GHz 16GB RAM Nvidia Quadro 4000 Windows 7 Professional (64bit)
I'm trying to create button with macro to edit existing text in place, with predefined text with macro .... For example, existing text is "Old text", and I want this text (or whatever I select) to edit in place with click on macro button to change it to "New text".
I know I can make a button on the ribbon for running a specific macro. But, is this possible for iLogic rules? I would love to be able to run rules and launch forms from the ribbon!?
I'm trying to create a macro for a toolbar button to open a third party program. Basically we want to open a custom .exe application from a button on the ACAD toolbar.
And in the 157 page Macro PDF (really, did it need to be this long? How about an easy-command sheet), it says you can use the key command Ctrl+Shift+R to start recording... Well, that brings up the ruler.
I use Macros a lot in Excel (I record the commands that I want, then tweak in the editor), so I get how they are supposed to work - but I'm no programmer, and without the ability to record, I'm completely handcuffed. This really shouldn't be 1% as difficult as it has been
I have a structure that I need to wblock but I need to bpoly it first, which is a tedious and time consuming process.Is there a way to wblock it without applying bpoly first?
There seems to be a glitch in AutoCAD with allowing another user to access a drawing that someone already has open. Most of the time , it will not allow this and will correctly give the message that someone is already in the file and give the option of opening file as read only.
There have been a few times though that someone will not be prevented from accessing the file and the read and write privileges will be transferred to the new user that opened the file last. How do we prevent this from happening??
I have a brand new workstation and only on certain files it will say FATAL ERROR: Cannot write to undo file (probably disk full) when ever I save. I have tried cleaning out the TEMP file, turning off the Undo function, auditing the file and its xrefs, and recovering the file. It was a file that was on the server, but I have pulled it to my local machine and I have also increased the amount of virtural memory avaiable.
When I create a new dwg, I use a macro to set all the system variables in the drawing - ltscale, hatch scale, etc. I also use the setq function and define a few new "variables" in the drawing. For instance I use setq to define a variable I call "sf" and set it equal to 72. Everything works great and I do my work and close the drawing. Next time I open the drawing, all my custom variables no longer exist. I have to use redefine them all over again. Is there a way to get these custom variables that I create with setq to stick with the drawing permanently - so I do not have to redefine them every time I close/open the drawing?
We are now running AutoCAD 2012 on our network. We had a third party come in a long time ago and write us a custom macro that generates specsheets for our product. The problem is it was written for AutoCAD 2004.
move that code from 2004 to 2012 somewhat easily. If not easily, at least tell me that it is possible without having to rewrite the entire macro.
I am attempting to do a macro that will allow me to select multiple objects and then move them in only ONE axis. For example, If I want to move a wall, the door and the window in the Y axis to align with another wall across the hall. I have attempted to do this in a button macro, but so far its limited. Here is the macro
^c^c_move;\.xz;@;
This will allow me to click the customized button, then select ONE object by a displacement, and it will only move it in the Y axis and allows me to choose the point with a mouse click of the final location.
When I try to select more than one object, it kicks me ahead in the commands and prompts for (needs Y). how I can figure out the correct macro?
I have (unfortunately) the necessity to modify into some files (which are used as models) the print style preset.
These files, which are necessary for the realization of electrical diagrams, have inside hundreds of layout.
Each layout set default printing parameters, so as "Laser b/n.pc3," as the paper size "A4" scale "Scale to Fit", and plot style "Schemi.ctb", etc. ..
Is there a way to create a macro (a field unknown to me) or something similar, to automatically change in all the default layout, for example, the printer "Colori.pc3" and the print style in "Schemi_colori.ctb "?
I have some custom buttons on toolbars and menus which I have created bitmaps for. Ever since I've upgraded to ACAD 2011, the image on the button will not save. I alter the .cui file and I can make the button find it. All looks great, I hit apply and I get no errors. When I close out I am back to the clouded question mark. The button works, but I can't get this to save the image. Also, any time I go into the cui editor, it moves all of my docked and locked toolbars. It gets difficult to have to keep dragging them back. It also keeps bringing up the steering wheel, even though I don't use that.
An older gentleman at our company is very much used to having F12 as endpoint, F11 as intersection and F10 as dist. Now that I've upgraded him to 2011, his life is pretty much ruined.
No matter what I try, I can't get the temporary override buttons to work. F10 always does POLAR, F11 always does OTRACK and F12 always does DYN.
How can I kill AutoCAD's default behavior and implement what he wants done?