AutoCad :: How To Create Button With Macro To Edit Existing Text In Place
Jan 12, 2012
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".
We use AutoCad to name our dxf files for our Burn Table and whenever we get a new part it is a repetitive task to input layers and common text. So what I am curious is can AutoCAD input the layers and text automatically using a Macro?
I want the Macro to put in 6 layers and choose the layer color and title then input text boxes with word in 3 different layers. There will be about a total of 10 different text boxes with text already put in the boxes by the Macro.
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 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.
How do you insert macros available in the user community in to the inventor. I tried to open default.ivb file and copied in it but it doesn't work. Any example which shows how to place macros in the inventor.
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.
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'm trying to create a website mockup in Photoshop. I'm trying to create a bounding box where I can place my text,. Can I do this in Photoshop elements 10 or just Photoshop cs5? If I can do it in Photoshop elements 10, what tool do I use and can i make the background transparent?
If I have a series of lines on a layer, is it possible for a macro to place a label for the lengths of the lines at the center of each line in AutoCAD LT 2012? Adding a DIMLINEAR to each line is for the birds....my drawings have as many as 250-300 lines that need to be labeled with thier lengths.......
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.
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.
I'm trying to create an all new existing surface over existing ground. I have a TIN surface of the EG, and I have drawn overlay splines that describe the new surface, but how to go about creating that design surface.
It is a compound surface, open on one end and closed all around on the other, somewhat like a half of a football stadium, but with an irregular upper edge because I am needing to figure out cuts and fills to manipulate the EG into this new surface without costly major terraforming. There is about 40-50' vertical elevation between the "field" and the upper rim with a generally constant 7-10 deg. slope all around. I'm just at a loss to figure out how to approach this project, and am quite new to Civil 3D.
Civil3D 2013 MacBookPro 17 - 2.4GHz Intel QuadCore i7 (Late 2011 build) Microsoft Windows 7 64bit 350GB Bootcamp volume
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 can create a text box using the edit panel but no text will appear in the box. the pointer or curser won't appear in the box. I was able to insert text the first time I used Elements 10 but not anymore.
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.
We have certain registration marks that we use on our designs before we print to vellum. How to be able to write a macro that could do the following? I've attached an example image of where we place the registration marks and am also attaching the actual registration mark CDR file. I'm assuming this would probably be rather simple...
We'd like this registration mark to be centered to the image and placed on the top and bottom of the image at .25 inches away from the image itself. So, I would think the macro would have to select the entire image on the page, then decide where .25 inches is away from the top and bottom of the image and place the registration mark, centered in that area.
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
When saving an AutoCAD drawing there is a Thumbnail image saved (if you have the option turn on), but when the command "Edit Xref In-Place" is used there is no Thumbnail image saved. So now when I try to preview any drawing that has been edited through this command there is no longer a thumbnail.
I am using AutoCAD 2012 and the option to save a thumbnail is turned ON.
I am trying edit an Xref in place in a sheet file both through the paper space view port or within the sheet file's model space but receive a pop-up warning that states "Selected Xref Block is NOT editable". Other sheet files are set up the same way and allow edit Xref in-place.
I'm using acad 2010. Twice now this has happened in two days. Using edit block in place. I edit the block, pick save and gone, Acad just closes down, no warning no nothing.
I have some blocks that I want to use to make a drawing. In the attached dwg, there are a few blocks inserted, and a shape made from those blocks.
As they stand, I can send the dimensions of each block into an excel spreadsheet or into a table. However, as you can see, if I want to make that triangle look like a triangle, I need to edit the blocks themselves. I'd like to edit each block in place (even though I'll have to create a new block for the edited version, that's okay), and still be able to reference the length of each block in excel.
If possible, I'd also like to figure out how to reference the angle into excel, so that when I look at the excel table, it tells me that I need that piece of material, cut to that length, with that angle.
I use refedit quite a bit to edit blocks in-place, but can't find a way to do this with dynamic blocks without breaking the link to the original definition and creating a new block definition.
Is there a setting I can change, or another way to edit a dynamic block in-place?