I am trying to get the distance of multiple block insertions that fall along a polyline to the startpoint/endpoint of said polyline.I can do this pretty easily using straight line (as the crow flies) distances between the block insertion and the polyline startpoint/endpoint, but I need the code to actually follow the polyline whenever it changes angle.
Is this possible using .NET? How to start it?Below is my code to to get the straight line distance between the polyline startpoint and block insertion point:
Dim dist As Double = Math.Sqrt((acPline.StartPoint.X - acBref.Position.X) * (acPline.StartPoint.X - acBref.Position.X) + (acPline.StartPoint.Y - acBref.Position.Y) * (acPline.StartPoint.Y - acBref.Position.Y))
How to get a point in the polyline with a set distance and obeying my current ucs. A projection of the point as an orthogonal snap.
I wrote a code creating a polyline between the lowest and the highest initial polyline and obtaining the intersection. But when it comes to many points the rendering is quite time consuming.
There are times that I have a really long curb polyline that has both line and arc segments. I wish to pick two points along that polyline and have it give me the distance between those two points along the path of the polyline.
Do we have this ability natively? Have I been missing something all this time? Normally I have to make a copy of the original entity, ... break, break, list erase or undo....
I am trying to oTrack distance from the top circle edge of a cylinder to a certain distance ... whenever i try to do that ... it either track to x and y .. but not in z :/ ... the video i have on you tube he did it so simply and it seems to be easy .
I am not sure what is wrong .. but i heard parallel and perspective view could make a difference .. i actually try both :/ ...
Is there a way, when you are drawing a polyline, to have the tooltip box show the cumulative length of the polyline, rather than the length of the current segment being drawn?
Due to modeling purposes, I need to convert a 3D polyline to a spline. What I have been doing is:
- change polyline fit/smooth to cubic from properties - convert polyline to spline by typing spline -> object - method -> fit from properties
You can see the original 3D polyline (green) and the resulting spline (magenta) in the attached drawing.When I zoom in and measure the distance between the two entities at different points along them, at some points the perpendicular distance exceeds 5 millimeters, and I want to ensure the deviation remains under 1 millimeter or even less.
I know I can change the knot parameterization of the spline, and this does work at some locations, but the difference increases at others.Why is there a 5.6 mm difference between the spline fit point and 3D polyline vertex, as measure in the attached drawing?
Now, I can go and manually stretch the fit point to coincide with the vertex. Also, I can add fit points between existing ones to drag the spline closer to the original 3D poly.
However, some of my polys are really long, and it is very time-consuming to do this manually while measuring points along the entities to make sure the distance stays small enough.
how to automate this process? For example a lisp that would maybe take the original vertex points, add say maybe 3 (not too many) new ones between them, and then generate a spline while making sure the deviation is less than the set value of 1mm? I am using AutoCAD 2013.
I've been working on a custom polyline object, and I've got it functioning!!Having said that, I plan to run its creation around picking a point for bounary selection.
(Other than trying to step through every vertecies) is there a technique I can thow the polyline data from a traceboundary result into my custom object? I've been trying to add the polyline from traceboundary to my object BEFORE it's added to the transaction by the way...I assume that's right, since I want to put it's data in my custom object then add my custom object to the transaction instead.
Is there any way at all to draw a new polyline - from the endpoint of another polyline, and have it automatically join as one polyline from the existing section??
I know this can be done via PEDIT, but its so laborious and soo many clicks, and I have alot of segmented Polylines that I need to consolidate when I draft.
I can do this in AutoCAD Map but I have my doubts. I will explain in ESRI GIS terms (this is what I am familiar with) and I hope you can tell me if I can do this in AutoCAD Map. In ESRI ArcMap I can select a line and I can hit a Select by Location button. In this window I can select all of the objects that intersect my selected line. Then I can delete them or export them etc.
In AutoCAD Map I have a polyline selected. It is my road centerline. I want to be able to select all of the other polylines that intersect my selected polyline. Is there a way to do this? I need to erase those polylines. Usually I will pan to each of them and select them individually. It just seems to take a lot of time. My AutoCAD co-worker said I could use a fence and draw the fence through my polylines. It seemed to work ok but I accidently deleted extra things that I needed. So I'm back to manually selecting each one by one unless you know a different way.
I have to break a line/polyline with a known distance around a point of the line. I was thinking of creating a circle with a specific radius and then trim the line inside the circle, then delete the circle but I could not find how to use trim in .net.
Is there a way of dimensioning the distance between the views on a .idw?
I have a series of drawings to make, that consist of two view each. I need to make them as consistant as possible, as far as the distance from view to view, accross the drawings.
What formula or dimensions do i require so as there is a 0.5mm gap around the Revolution 3 (red color)...is revolution the method required to achieve this?
I am looking for an explanation on CHAMFEREDGE Distance1 and Distance 2 Setting with respect to UCS or VIEW. I usually do it by trial and error but an explanation as to where Distance 1 and 2 are applied will be great.
Here goes= If i have a rectangle that is 27.125 X 27.5 and i want to chamfer a corner, but i also have a set distance(or the hypotenuse) Which is 22. How can i get it to put that angle in there with out trial & error of drawing a 22" long line on a 45 degree angle and moving it till it fits properly, then trimming off the corners... I have tried all the different commands in chamfer, the best i can do is guess at the distance,which is a crap shoot to me.
1) One circle is inside the other circle, need to measure distance from the outside edge of one circle to the to the outside edge of the larger circle?
2) One circle inside the other circle, need to measure from the center of the larger circle to the nearest outside edge of the smaller circle?
3) Circles are near each other and need to measure from the outside edge of one circle to the outside edge of the other circle?
Is there a way in AutoCAD 2012 to set a distance between a line and the text above it? How to be able to mark all my bearings and set a distance so all of them ends up with the same distance from the line they refer to.
what the minimum distance between two 3D rectangles is. I can do trial and error using the INTERFERE command (Acad 2012) and move the 2 groups until they stop hitting each other, but I wanted to see if there is a command in ACAD that will tell me how close 2 objects pass.
I have an old pile foundation group for 4 tower legs and I wanted to see how close I could get the new pile group to the old group. I'll try to attach a dwg file with 3 options I was trying. The old group is in Cyan and the new group is Red.
I'm guessing I could use UCS and set it on one of the piles and measure to the closest old pile, but the screen gets so cluttered. Is there a way to only show a slice through the objects?
I would like to know if it's possible to create an offset curve from another curve, but with an increasing distance, the result i want to achieve is shown in the picture. (the magenta line).