Search the Community
Showing results for tags 'macro'.
-
ARRAY & ARRAYPATH in macro or script not the same as in command line
HFBandit posted a topic in AutoCAD LT
I'm trying to write either a script or a macro to make it easier to do an array that we will need to replicate on a regular basis. Basically, I want a path array to offset mtext every 20m along a centreline. If I do this in the command line, it's fine: ARRAY select object PA [path] selec... -
This is not so much an issue as an addition to the knowledge base here. If someone has had this issue before, I couldn't find it. An associate here was trying to add a couple of PIs to an alignment. When he pulled up the geometry editor toolbar, most of the buttons were greyed out and none of th...
-
Dear team , I used etransmit command >add file than bind xref option, but not bind in current drawing. Is any tools or lisp, VBA macro for add multiple xref and bind together in current file and save as a zip file.? Note :, Xref not attached in current drawing. I...
-
hi can anyone here help write a lisp routine that can be run project wide to hide/show attributes . The user must be given an option to select an object , write or select attribute name and also select multiple drawings from the project. I have a code that updates the attri...
-
- attributes
- show
- (and 5 more)
-
I found valuable lisp for auto creation block. I want to improve this lisp to following requirement * block selected object individually, not in one block thanks AUTO-BLOCK.LSP
-
Hi, I'm having a hard time figuring out how to make a toolbar that can be downloaded for all to use. My problem is how do you share a "common directory" with the world? The toolbar works perfectly fine on my computer, because I have defined my own directory in the macro under the cui co...
- 13 replies
-
- custom toolbar
- cui
- (and 9 more)
-
Trouble Switching from Paperspace to Modelspace in Action Recorder Macro
bkirtland posted a topic in AutoCAD Beginners' Area
Hi everyone, I'm new to using macros/lisps in AutoCAD, though I do have a small programming background in some other programs. To give you some background on what I'm trying to do: I have a big .dwg file that shows all of the roads in a particular city in the USA, and I have created views of al... -
I am needing to copy and move a spline in a sketch without using the spline's ID. Within the macro code, I have defined the selected spline in the sketch to a SketchSegment variable. Any help would be great.
-
Hi. Can someone please help me, tell me or explain to me how to create new layer with macro. I want define a new button which when I push it will make new layer and ask me for define name and colour of new layer. I'm kind a new to this. I found only this code using LISP. But I want macro for...
-
Hi, I'm new to AutoCAD. I have 700 drawings in AutoCAD. I have to enter "Checker" value in the drawing title block. For all the drawings, its the same value. How to I automate this? I don't want to open manually individual drawing and fill the value. Any macro available for this...
- 4 replies
-
- title block templates
- macro
-
(and 2 more)
Tagged with:
-
Macro - New Drawing with Client Templates/Layers
jesset posted a topic in The CUI, Hatches, Linetypes, Scripts & Macros
Hey guys! I am working on a macro where the user will click the button, the macro opens a script to open a new drawing with a client template, after that it'll load a couple of lisps and run those to setup the standard layers and automate the drawing layout portion. I am fairly new to this,... -
Hello.. Not familiar with autolisp or scripts I work for a earthworks company, and we are looking for a way to have an excel worksheet to update progress completion by coloring a property another colour in autocad. Example - lot 1 10% complete, and lot 10 is 30% complete as per excel data. I...
-
Hi, I am trying to get some advice on the best way to hatch multiply poly lines in any particular layer. I do not want to manually hatch each poly lines as there are dozens in multi files and was hoping to get some help with a simple script. I have attached an example of what I will be w...
- 9 replies
-
- lisp
- hatch boundary polyline
-
(and 1 more)
Tagged with:
-
1) Are there any SW API Power Users Here? That could help modify macro code? 2) Are there any sites that anyone can recommend similar to CADTUTOR specific to solidworks (More specifically Macro programming/editing) I find a lot of blogs but not a lot of interactive type sites.. I know th...
- 9 replies
-
- programming
- macro
-
(and 2 more)
Tagged with:
-
Hello, I'm a new user about autocad and new user about this Forum. I try use VB and CAD... Is there a solution for my problem in object? i just write code for MSGBOX: Dim Variabile As Integer Variabile = MsgBox("Hai esportato i parametri?", vbOKCancel) If Variabile = 2 Then ActiveWin...
-
Finding Inertia Values about the centre
alrighty93 posted a topic in The CUI, Hatches, Linetypes, Scripts & Macros
Hi Is there a way to create a macro which would find the inertia of a region out the (0,0)? Currently, I have to Massprop the object, draw a line from (0,0) to the centre of the object, move the object from the end of the line to the centroid, and then massprop it again to get the correct Ixx a... -
Problem with macro for creating several dimension styles
Sandervp posted a topic in The CUI, Hatches, Linetypes, Scripts & Macros
Hello everybody, I've created a macro for creating different dimension styles for different scales. We are using these dimension styles in our company. It works well if I use it in a new, empty drawing. But if I use it in an excisting drawing with a dimension style with the same name, I have go... -
How can i make a ITM have a command
AutoCAD Gaming posted a topic in The CUI, Hatches, Linetypes, Scripts & Macros
I am a pipe drafter using FabMEP15 when I need a fitting we have ITM button Menu where I can use my mouse to select the fitting ITM that I need. Instead of selecting the Fitting itm icon with my mouse I would love to instead type a command that would select the itm instead is th... -
Hi! I would like a macro which will add a text attribute from an x-ref file to another block attribute which is up to 1.5m around the x-ref element. example: Attribute block: WF-PC-L2.0-095 X-REF attribute: L2.0-0368 I' d like to add L2.0-0368 to WF-PC-L2.0-095. The distance between the 2 attr...
-
- macro
- attribute reference
-
(and 1 more)
Tagged with:
-
Is it possible to create a macro, and turn that macro into a keyboard shortcut that will THAW, your most recent turned off layer, or layers if multiple were frozen at the same time? This would be super helpful if somebody could help me out here! Thanks, Matt W.
-
HI Is there a way to run a macro using keyboard shortcut key (acad.pgp)? I would love to add the following to the PGP file if possible. I added the following to the DIMLINEAR command button and it works: ^C^C-layer;Set;DIMENSIONS;;^C^C_dimlinear\\\\ ^C^C-layer;Set;0;;^C^C I found thi...
-
Is it possible when Activating a project in Autocad Electrical to run a customized script or macro? Specifically, it would be nice to set the "DefaultFormatForSave" variable to the proper customer specified value. Thanks in advance
-
Redefining a block via a custom marco button
mrgrotey posted a topic in The CUI, Hatches, Linetypes, Scripts & Macros
Hi guys, long time no post. I have a LOT of drawings all with the same block in and I have updated the block so therefore want to redefine all the blocks, ...as you do. I only have autocad LT 2010 so havent got the LISP coding option. I am trying to do it by assigning the following examp... -
I want to add a macro using a spline command...i think?
spaulus posted a topic in AutoCAD Beginners' Area
I keep doing the same commands over and over and I think i can use a macro to take some of the work out of my repetitive task. I pick "spline" and then type "near" (osnap), pick the first object then pick a spot in space then type "near" (osnap) and pick last object (end of routine). so woul... -
Redcorded Macro to shortcut key
Nobull84 posted a topic in The CUI, Hatches, Linetypes, Scripts & Macros
I'm just learning how to utilize recordable macros. I have a simple one that I found how to assign to a tool palette by simply changing the properties command string to "^C^CBottom" and "^C^CTop". These are the titles of the macros I created. The article I found explaining this said you can also ass...