AutoCad 2D :: Move / Align And Rotate Text To Two Selected Points?
Nov 2, 2012Any routine (perhaps a lisp) to move, rotate and align text with one swift command?
Something like this video below.
Any routine (perhaps a lisp) to move, rotate and align text with one swift command?
Something like this video below.
I am trying to write a program to align a block with two selected destination points.
- first the user is prompted to select a lwpolyline of a block entity
- then he is prompted to pick two destination points
I face problem with the sub-routine SegmentPts. It is supposed to return the coordinates of two vertexes on both sides of the picked point on a lwpolyline using entsel. But here in my program, when i am picking a point using entsel on a lwpolyline inside a block entity, it is not returning the two vertexes on both sides of the picked point. In stead, it returns some other points of the selected LWPOLYLINE. Why it is doing so? Where is the problem in my program?
It works fine with my other programs where i pick on a LWPOLYLINE entity. In this particular case, the LWPOLYLINE is inside a Block entity and the program is not returning correct points.
Please check Lisp Program below:
(defun C:alb()
(setq ent1 (entsel "
Pick on one side of LWLINE ofa Block:" ))
(setq ent (nentselp (cadr ent1)))
[code]........
How do you rotate or move just one or two points in civil 3d? The surveyor used Translate Survey Database and moved all the points, but 4 of them were not included. What is the difference between translate and just the autocad command move and rotate?
View 5 Replies View RelatedI drew a Gmask with 4 points and broke the handles. My questions is:
1. How do I know when 2 or more points are exactly on the same vertical or horizontal line?
2. How do i get them to align?
3. How do I move 2 or more points together? (Control select and drag)?
My CorelDRAW has just developed a glitch - I can select objects but not move them (other than by using the nudge button) and if I click twice on the object it doesn't change the nodes to allow me to rotate - weird and seriously difficult to do any work in the programme. I've tried turning the computer off and on again and have tried the default setting.
View 5 Replies View RelatedI have numerous text objects I want to rotate 180 while retaining each text objects insertion point. There's got to be an easy way to do this.
Long explanation: I created an annotation template to label pipe diameters on an imported shapefile. Everythings good, labels are parallel with lines, except for the fact that some labels are upside down. Is there an expression that would eliminate this? In my annotation template, my rotation expression equals the "angle" field of the object. My "quick and dirty" fix was to burst the annoation labels, and manually rotate necessary text, which wasn't a huge headache since I'm dealing with a relatively small number of labels, but in the future I might have hundreds of upside down labels.
Created L200 Annotative text in C3d drawing w/ SP1, INSTALLED SP2, working in dwg now I can not move, rotate or erase the text that is annotative (the two scale symbols) appear at every piece of text. I tried making in the STYLE text box toggling on and off "Annotative Text" does not work. Also did -purge Regapps, still can not edit text.
View 7 Replies View Relatedthe expression in question is part of larger lisp routine to create and rotate text based on the object selected and the viewtwist variable (we use dview twist to rotate our views when needed)
So the expression in question:
(< (/ pi 2) ang (* pi 1.5)
where ang is the total angle used to determine proper rotation of the text.
Now the problem. In most cases where ang = 90 (or 1.5708 radians) this works fine. the two exceptions i have encountered
in testing are a line at 70 degress, viewtwist 20, and line at 50, viewtwist 40. For whatever reason at these two conditions the expressoin evaulates True instead of nil and rotates the entire text object incorrectly (180 degrees). So question is how exactly is this being evaluated? i know its comparing ang (* pi 1.5) to (/ pi 2). is there some sort of rounding error? or maybe the expression needs a wee bit more definition? attached image and full lisp routine for reference of what is happening, blue text is angle of the line as created by routine at viewtwist 0.
mvsetup gives this error, i want to align and rotate my object in a viewport....
The file mvsetup (.lsp/.exe./.arx) was not found in your search path. check the installation of the support files and try again.nil
Lisp routine or macro that will either rotate or align selected objects so they are parallel to an axis on the current UCS?
Specifically, when placing mtext to label an object. I typically align my ucs to the object then create the text so it is parallel to the object. It would be great if I could create the text with a rotation of 0, align my ucs to the object to be labeled and then with a single click, select the text making it parallel to the X axis.
I'm trying to Align the Z Axis with 2 points, that works but I'm 90deg off around the Z Axis.
Shared Function UCSAlignZaxix(ByVal Point1 As Point3d, ByVal Point2 As Point3d) As Matrix3d
Try
Dim ZAxis As Vector3d = Point1.GetVectorTo(Point2).GetNormal
Dim yAxis As Vector3d = ZAxis.GetPerpendicularVector.GetNormal
Dim xAxis As Vector3d = yAxis.CrossProduct(ZAxis).GetNormal
Dim NewMatrix3d As Matrix3d = Matrix3d.AlignCoordinateSystem(Point3d.Origin, Vector3d.XAxis, Vector3d.YAxis, Vector3d.ZAxis, Point1, xAxis, yAxis, ZAxis)
Return NewMatrix3d
Catch
Return Nothing
End Try
End Function
align.jpg
I'm trying to align 1 to 2, Sketch up can let me align simply by moving and it will detect the face of object 1 to object 2, is there a similar way to do it in Autocad?
I would like to make a block with 2 points and I would like them to follow a line with those 2 points..
Same as you can use the measure command to put blocks on a line with a pitch distance I would like to do the same but the block schould snap with 2 points on the line.
I've got two layers that need to be aligned, but are currently at different scales. In Illustrator, aligning two objects (lets call them A and B ) at different scales is an easy two step process: drag point A1 to point B1; then move the reference point to A1/B1 and scale-drag point A2 until it's on top of point B2. Voilà ! But in Photoshop I can't seem to scale except with corner handles or numerical input, and neither is convenient for this purpose. Is there something comparable to Illustator's scale tool in Photoshop?
View 11 Replies View Relatedit is possible to use the Align command on an adaptive point (once inserted in the model). It seems that when I try to align an adaptive point to something, it moves the entire family. However, when I attach dimensions to each point, the points move independent of their context.
View 1 Replies View RelatedSimple solution to aligning selected items to the artboard. I was going to create an action but then realized it would be more convenient for me to include it in my script file....I have a script to align objects with each other but they dont align to the artboard.
View 11 Replies View RelatedMy field crew assumed a coordinate system and surveyed a job. I need to rotate the points in my dwg to match another survey. I have not found a rotate points command. Other LDT type commands have been replaced by standard ACAD commands by adding the transparent commands to them. I tried to use the ACAD rotate command and the transparent commands to rotate my points, but there is no transparent command to find multiple points. I need to select the points by point number range if possible.
View 9 Replies View RelatedI have modeled a building that's a typical shoe box (rectangular shape building).
When I searched the address in Google earth, the true north of the site is not perpendicular to the building: it's angled.
When I chose "Acquire from Google earth" at the Site level, it gave me exactly what I saw in Google earth.
My question is:
I have finished the model of the building in Revit which doesn't align with what I acquired from Google earth. How do you align the model to the Google earth image? Do you have to literally rotate the entire building to align the Google earth image?
Also is there a difference between Google earth and Google earth pro for this task?
the same file that i'm trying to plot has it's own template that i want to use, but it's attached to a different layer. so when i try to move or rotate the template, it moves the other objects. They all have colors but aren't connected to the same layers of their colors. how do I isolate the layers so i can make it's own layer and manipulate it on it's own?
View 9 Replies View RelatedIs there any way to multiply the value of Z coordinate for many points selected, in the same time? For example, I selected many points, and need to double their Z value, but on an easier way, not one by one?
View 9 Replies View RelatedI thought there was a way to insert an image (tif) to model space, and adjust it like you would any line or polygon. Apparently this is not the case. When I attach an image, where I place it is permanent and I can't even select it.
View 3 Replies View RelatedI am trying to put something together that will allow a user to select objects in AutoCAD and then place a block at all the selected points.
Below I have pasted the code that I have so far, but have not been able to test this to see what happens because the Dim ofd part is giving me an error that I have not been able to figure out.
The error that I am getting says that :
Argument not specified for parameter "flags" of "Public Sub New(title As String, defaultName As String, extension As String, dialogName As String, flags As Autodesk.AutoCAD.Windows.OpenFileDialog.OpenFileDialogFlags)
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.EditorInput
Imports Autodesk.AutoCAD.Geometry
[code]......
is there a command (or method) that will create a polyline from selected cogo points instead of manually connected each point from a create line command?
View 2 Replies View RelatedIn a dwg file there some features and and select some of them and want to zoom to that selected features extents only.
or how can I get the extents for that collection so that I can zoom to it.
I have a surface. I have a lot of operations done (points adding, breakilines, borders, etc) I want to move and or rotate and change datum.
I have seen old post.
Ok, I have to select the definition data, to transform it and finally rebuild my surface.
I select them and simply move it.
mmm. Something is wrong. Maybe a bug... I have 12 duplicate points (false) , I have missing points, I have a crossed two breaklines.
The data used is very simple, 15 breaklines, 50 points (so there is no reason to think on big data problems...) I have nothing at edit branch.
Drawing started in LDD a few years ago. It was on a local coordinate system of 1000,1000.
The drawing has since been migrated to C3D2012. Now we have data in UTM coordinates that we need to match to the old data. Actually, we want to shift/rotate the entire original set of data to match the new UTM data, so we can continue in UTM for all future data collection.
So, I went through and turned all layers on, Thawed them and unlocked them. I made sure all points were visable, etc. Then I tried to move the original data (I also tried the align command, etc., with the same results) and found a glitch. After I moved the data, I found that there was some points and survey figures as well as a cooridore, that had not moved. The vast majority of the drawing had moved as expected, but the afore mentioned data would not move.
I would like to reuse the existing sketch on the other part. Usually I did it without problems. But now after I have pasted the existing sketch I cannot move or rotate it. While moving or rotating Inventor usually prompts for braking some constraints for this action. But nevertheless it does not allow me to move or rotate. It says something about "constraint settings for sketch edit tools" -- cannot get any hint of that in a whole phrase nor in part [URL] what else Inventor wants so I can reuse my sketches??
View 4 Replies View RelatedI use Acad and Turbocad selectively. I can't find a way to enable Acad to have object handlers to move and rotate objects. Is there a setting that I can enable to turn this feature on in Acad? I like this feature in Turbocad, but like to have in Acad.
View 7 Replies View RelatedIs there a way to change the marker size when selecting objects for move, rotate, trim, chamfer..etc commands?
I have tried Autosnap Marker Size, aperture size and cross hair size from the options menu with no luck.
If I wish to rotate ONLY an image, no problem, but if I wish to rotate (custom) only a selected portion of an image, how do I do this?
View 1 Replies View RelatedWhat I want to do is to combine two commands, editing (copy, move, rotate) and change layer.
View 3 Replies View Related