Try Mid Between Two Points (_m2p) for your osnap.
For example:
To snap to the center of a rectangle, start the line command and Shift + Right Click, pick 'Mid Between 2 Points', then select the lower left, and upper right corners of the rectangle.
Registered forum members do not see this ad.
I am wondering if there is a snap setting I am unable to find that would show the "apparent center" (basicaly, the center of the mass if it was solid) of a square, rectangle, or any other odd shaped polyline. I see it in circles but not other shapes.
Try Mid Between Two Points (_m2p) for your osnap.
For example:
To snap to the center of a rectangle, start the line command and Shift + Right Click, pick 'Mid Between 2 Points', then select the lower left, and upper right corners of the rectangle.
"Potential has a shelf life." - Margaret Atwood
From draftsperson.net:
With the creation of a REGION or a 3D SOLID, it is possible to find the centroid of an object, with the MASSPROP function. MASSPROP is an AutoCAD function.
"I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police
Eat brains...gain more knowledge!
@ Mark -
That won't work for a Polyline entity... the OP used Solid as an example, as you can snap to the centroid of the Region/Solid, but the OP wants to avoid that step altogether (as I understand it). More information is needed.
@ Davd -
How are you intending to 'show' the centroid?
Do you mean using a line command, etc. you want to snap to the centroid of a given polyline, or do you want to pick a polyline, and mark the centroid by placing a point object, etc.?
"Potential has a shelf life." - Margaret Atwood
Renderman, I do not see the mp2 option. What I want it for is to position text that is middle center justified for aesthetic purposes. Shapes I am using are tool outlines, all sorts, sizes and shapes. I am working in 2d.
Thank you
The m2p or mtp option is a command modifier. You have to use AFTER starting the command you are working with like Move, or Line or Circle, etc.
"I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police
Eat brains...gain more knowledge!
Correct. You must manually (or programmatically) enter "_m2p" once you've bagan a command.
Using your example, of moving text:
Select the text, select the insertion grip (you listed Middle Center), then begin to move your mouse (you should see the text moving along), now at the keyboard type in "_m2p" (without the quotes) and hit Enter. You should now be prompted to select two points sequencially.
Give it a try.![]()
"Potential has a shelf life." - Margaret Atwood
Tried it. After typing _m2p and hit Enter I get this "Point or option keyword required."
Works on my end (and has for years):
Code:Command: ** STRETCH ** Specify stretch point or [Base point/Copy/Undo/eXit]: >>Enter new value for ORTHOMODE <1>: Resuming GRIP_STRETCH command. Specify stretch point or [Base point/Copy/Undo/eXit]: _M2P First point of mid: Second point of mid: Command: *Cancel*
"Potential has a shelf life." - Margaret Atwood
Registered forum members do not see this ad.
I worked with the sequence and got to work. Since I am doing this for many, many, many drawings I need to make a button with a macro (i think, new to this so may not have correct terminoligy) should I pursue this in this thread or start a new one.
Bookmarks