AutoCAD VB :: Reverse Polyline - With Bulges - Last Bulge
Oct 15, 2008
I'm writing a VBA to reverse the direction of a closed polyline, with bulges. it seems to be working except where the last point joins the first. If there is a bulge between the last point and the first point, it doesn't seem to register, and when the reversal is finished, the last bulge is reversed.
Is there a trick to getting and/or setting the bulge between the last and first points of a closed polyline? If I get the bulge from the last point, it says Zero, even though it's rounded.
I would like to create a construction geometry that would behave as the Polyline Bulge. In other worlds I would like to create a Construction Arc that would have a Bulge. Upon examination, I was not able to locate any of the Construction Geometry that has a bulge.
The purpose of this is to determine the Bulge location (direction) of the polyline I am creating.
I would like to stay away from creating a database geometry, if possible.
I would like to select a polyline that will either be straight or contain bulges and offset lines either side of it a prescribed amount, I have tried a couple of options that don't involve picking points on both sides to no avail.
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 a polyline in my drawing, consisting of arcs and lines all joined together. It is a waterline and I cannot get it to reverse.. it is reading ----M----- instead of -----W-----
I'm working with site plans and have a lot of distances and bearings in my drawing.
Sometimes i need to reverse them. Is there a command in AutoCAD 2012 where you can reverse a hole heap of distances and bearings all at once? Mirror make them up side down. I want them to swop sides of the line they refer to.
I have made line types with text and need to reverse the direction that the text reads. The text autocorrects based on UCS north. The UCS in the drawing is rotated 90 degrees so line text reads upside down. I type in the reverse command but the text does not change.
I need to create a profile view that starts at Station 189+00 and ends at Station 175+00 such that the stationing of the profile decends from left to right. How do I do this in Civil 3D 2010?
I need to put a reverse curve on an alignment. I have tried using two free curve fillets,(between two entities, radius). the first curve was fine, but it would not allow the second curve. I also tried using a floating curve ( from entity radius through point) first, but it did not work.
We have a large pipe project that forms a very large 'C' shape. To follow convention with advancing stations from left to right and north being up, we are running into some problems.
1). For Civil 3D, can you reverse the profile for a section, say station 9+00 to 18+00 only. The remainder would be one direction.
2). What do others use for convention for north arrow direction and advancing stations?
Our first sheet goes from east to west, the second and third sheets run north to south, the next ones are west to east, and the final ones are north to south.
Is there a way of reversing the start and end points of a line? I have a lot of mirrored lines on my model, and so the direction (start/end) is also mirrored. This poses a problem when i export the model to another program witch has a coordinate system based on the direction of the entity (in this case a line). So i come back to the question, is it possible to change(reverse) the start/end position to already drawn (mirrored) lines? Btw i am using acad2011
where the setting is to reverse the flow of a pipe. I have the flow arrow shown in the wrong direction plus am showing a negative slope on a pipe, which should never be done.
When I first created my surface model, any point I moved would snap back to its original position like a rubber band. I had to do some edits so I unlocked this by .... Survey Tab>My survey database>Survey Points>Points, and then picked "Unlock In Drawing". This command unlocked All points in the drawing so I could edit them.
Now that I am done with my edits, how do I reverse this command globally, so as to get ALL points locked again (so they snap back to their original position like a rubber band if moved, like before) ?
We create a greate deal of DLL add ins for Inventor using Microsoft VB.NET. The code security is very important to us. I hear certain program such " Lutz Roeder's Reflector " can reverse engineer the DLL assemblies and get the actual code from it. This would cause concern when we deploy the DLL to various users.
So, is it true that DLL from VB.NET (or C# and C++) is so vulnerable from reverse engineering? if yes, what is any practice to add security to it?