I'm creating the following macro:- (defun C:BK () (command "_BREAK" PAUSE "_F" PAUSE "@" )(princ)) to add to a shortcut key lisp file and then I want it to repeat... How do I make it repeat?
I want it to do the same as this:- *^C^C_break \_f @ but as a shortcut key in a lisp format.
a routine that has the option to break vertical or break horizontal, depending on the option, the lines that cross either the horizontal or vertical (again, depending on the option) a specified distance (say .05) on either side of the line you wanted to keep. So if I choose BREAKH, the vertical lines that I choose would break any horizontal lines that cross them. Same applies to BREAKV. Hopefully I communicated clearly enough.
Autocad2008 has the Break, Break at Point, and Dimension Break tools. There may be other variations of the break command, but I'm not able to fined a way to quickly use any of these commands to create a very simple single break point on a single segmented line at an unequal segment. I'm surprised Break at Point doesn't fit the billet.
Example: I've drawn vertical line 10 units long. I would like to place a single break point at 7.956 units from either endpointe of that very same line. This is not a polyline. When selected it is depicted as a line with two equal segments.
The purpose of the break is so that I can intersect a horizontal line at 7.956 units located on the vertical line.
It seems to me that with all of the break tools available, one of them should be able to accomplish this simple task on the fly. Even most basic CAD programs such as Draft It, has a break tool that performs this function easily and quickly with one mouse click and one single text box entry.
Also, the fastest way I have found to accomplish this task is to simply draw another vertical line 7.956 units over the original vertical line, and that allows me to attach my horizontal line at 0 or 180 degrees from the vertical 7.956 units. I then go back and delete the second vertical line.
Why the break at point command is different when I write it than when I click on it? I mean, when I use the command by redoing it with the spacebar or with the keyboard shortcut, the line that I want to break is not only break at a single point but from this point to the middle of the line…
I currently use a full version of AutoCAD 2009. One thing I was able to do previously was repeat break at point by right-clicking and selecting the repeat function.
Now when I try to do that in AuctoCAD 2009, the repeat function will result with just a plain break instead of a break at point.
My question is, how do i get this functionality back so that I can repeat break at point as many times as I need to? I use this command many times back to back and hate having to go click on the button from the ribbon menu.
Is there anyway to use the break-out command in an IDW to show something inside an enclosure that you normally would not see? I don't mean a section view but an Isometric view that temporarily removes a part of the wall of an enclosure so you can see what is inside, specifically in a presentation view?
I am currently writing a series of routines for setting the layers for text, leaders and dimension commands. The end goal is a system where any annotation command sets the correct layer for the duration of the command, then reverts back to the layer that was active before the command.
I have managed to complete all the code, and it appears to be working fine, I just have one question: I have used -layer "m" "Lay_name" etc... for all layer setting commands, rather than any code to see if the layer exists already. In my limited testing this seems to be suitable, nothing that exists on that layer seems to be affected.
I know how to write code to determine if the layer exists already and set the layer instead, but so far it seems unnecessary??
I'm trying to write a lisp routine that, when I invoke the mleader command, osmode is set to "nearest" & orthomode is set off. I then would like the original settings to be returned.
I used the "break" command to split some lines into segments, but now I can not join them again using PEDIT. They are all on the same elevation. What is preventing me from joining them? I've attached the file in question, I'm trying to join the red (metal layer) lines.
right clicking the mouse normally repeats the previous command. In this case I right click to repeat the "break at point" command. Instead of getting the break at point command, I always get the "break" command.
Is there a way to have a multiline point description? For example, in the raw description, i wrote out the text, but I would like to return a line for the parentheses.
Civil 3D 2013 Windows 7 64-bit Inteel 2.40 GHz 8 GB RAM Dell T7600
i was using autocad 2013 without any trouble, i used break at point two times, after that i modified some layers and i think that nothing else, and the command break at point stopped working, when i press it it automatically uses the command break. what is going on?
I set a snap for ease of use, e.g. if my intended output scale is 1:50 I will set my snap to 25, this makes drawing lines fast and simple.
When I used the break command in previous versions (I skipped 2011) the break would keep the snap on so I could break either side of a line with a perfect unit gap.
In 2012 when I select the first point it disregards the snap and just puts the break wherever I select on the line meaning the gap is not neat. Is there anyway to put this back the way it was?
I'm trying to find acceptable point values to feed to the vlax-3d-point function for a vla-addmtext function. With vanilla lisp I just provide the point as x y = "7/32" "2-3/8". So I assumed that I could drop a 0 in for the z like: (VLAX-3D-POINT "7/32" "2-3/8" 0).
Then I thought I was going to be tricksy and try (vlax-3D-point (getpoint)) believing that I could pick the point and get what I need to feed the function, but yet again, no deal. The command line gave me:
node of #<variant 8197 ...>
Nothing I can use in my code. So how do I find the point in a format that vlax-3d-point will like?
I need a program that simulate this DOS command: dir /on/b *.dwg >list.txt
it list all dwg files on current open dwg file folder and sort them and finally put them in a text file with list.txt name. something like thistype list.txt)
(sort alphabetically and logically) because of disabled DOS utility in my PC I need a pure lisp functions, I tried to wrote this program but I couldn't!!
I am trying to get my original layer and lintype reinstated after the user is finished with the pline..I know Im suppose to use the while command but am now completely lost on which way to do this
We have a lisp routine that I co-authored ages ago and then haven't done much programming in about 7 years. I seem to have forgotten much of my language skills. This portion of the lisp routine was running fine in autocad 2005 which is what the computer had on it, and it doesn't run on autocad 2010.
I've narrowed it down to the while statement which is why you see it commented out, but that portion is necessary. My main question is was there a change in the language specifically the while statement between 2005 and 2010?
I am using AutoCAD 2011. I have a lisp that I have created/modified.
What it does:
Allows me to Select a layer that I call out and change its color properties back to bylayer.
(i primarily use this when i am cleaning up my drawings, I turn them all to gray with another command i have then i run this one to find all the entities on that specified layer)
What i am trying to do:
I would like this command to do a loop. So say i type in a layer name that does not exist, instead of running through the rest of the command i want it to revert back to "specify layer name" until the correct name is entered for that layer.