AutoCAD .NET :: Getting Polyline Data Into A Custom Derived Object (from Polyline)
Nov 11, 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.
I have polylines that when selected, under properties it lists Object Data for the selected polyline. There are like 10 categories. This drawing is actually creeks in a county and they have object data connected to them where some are "a" some are "b" classification and I want to select all of the "a" polylines and put on a diffrent layer.
Is there a way to define object data to a polygon or a poly line in C3d? I imported a shape file and saw that in the properties dialog box the object data of the polygons is displayed. I would like to define create new polygons and define certain atrributes to it before exporting it as a shape file. This would would eliminate the need to use a GIS program to define the attributes of the polygons.
Im using PCSWMM and would like to define certain atributes to polygons and polylines in C3D before i import it in to PCSWMM.
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.
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 am a landscape architect, and am trying to use bushy linetypes to delineate blobs of mass plantings. I created my custom line types, and tweaked them to the point where they look the way i want, but whenever i have a curve the line type faces in not outside the closed polyline. all of my shapes are closed poly lines, and i need the linetype to face out other wise it looks weird. I am attaching a picture the strait line to the right is the way that it is supposed to look, but in the circle you can see how the points are all facing in to the middle of the circle? reversing the direction dose nothing, and using a or u in the place of r in the linetype shape code doesn't work either below is the line types code and image.
*Curveypines, Curvey zigzag A,.0001,-0.0,[a,curvya.shx,s=.01,r=0.0,x=0,y=0],-.25,[b,curvyb.shx,s=.01,r=0.0,x=0,y=0],-0.0,[a,curvya.shx,s=.015,r=0.0,x=0,y=0],-.355,[b,curvyb.shx,s=.015,r=0.0,x=0,y=0],-0.0 Screen shot 2012-03-07 at 4.30.48 PM.jpg
I am working on three different projects at once. For each project, I was sent a drawing with contours as polylines. Each contour is broken up into polylines about fifty feet long each at elevation 0. I am trying to set the polylines to proper elevation without editing each one individually. Each drawing contains several hundred polylines to modify. I was hoping for some sort of way to use a fence and interval (2') with a starting elevation.
I've searched the internet but haven't found a lisp routine to do this. I thought I remember Land Desktop having something like this, but can't seem to find it in Civil 3D 2012. I have found several threads asking the same question. Each time the poster was referred to a blog 7629. That blog unfortunately seems to have been taken down. If I can’t find an answer soon, it looks that my best option would be to retrace each contour which makes me glad to be paid hourly.
I have a database with the polyline reference/handle (i.e. '13EE6A') and each polyline has a 'door number' associated with it.
I can easily create a query that produces a table of polyline ref and associated door number.
I need to somehow import that door number into the middle of each polyline on the drawing - i.e. if there is a polyline with that handle, put the associated door number in the middle of the polyline on a certain layer. I do NOT need an active link between the database and drawing - it's just to initially populate several thousand rooms numbers!
how to convert polyline object (with x, y, z) to TIN SURFACE BECAUSE IF THIS OBJECT STILL POLYLINE OBJECT, I CAN'T RUNNING CATCHMENT AREA, ADD LABEL ETC
I am working on a complex industrial site. And I would like a constant grade of 3.00% from my road intersections to the edge of curves. I know if I used a corridor, I'd be able to tell the grading to project ot the edge of the road/curve.
I'm just wondering if I can tell a grading object to project to a polyline or feature line along a intersection curve? There are many reasons as to why I'm not using corridors for this project, but I don't want to get into that.
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 create a lot of fields that reference a polyline area and I'm constantly having to change the default formatting values. I would like it to default to an Architectural format, WITHOUT the appended "SQ. FT." (which often takes up too much space), with a precision of 0 and using a comma as the Thousands Separator.
Doing a complicated shape out of line's and arc's in 3D. Then tried to turn them into a polyline some parts joined and some didn't. I can't see a gap's were one line hasn't touch the other. All look on the same plane. What am I doing wrong? I'm using autoCAD 2012.
I have two part files: Part A and Part B. Part A contains a sketch block, Block A, which will be used as a basis for Part B.
I derive Part B from Part A using a "Derived Part" to bring in only the sketch block (Block A) from Part A. When I do this, Inventor sets every dimension in Block A to "Export" and creates a custom iProperty for it. Then the Custom iProperties list in both Part B and Part A is cluttered with every dimension from Block A.
Is there any way to prevent it from creating all of these custom iProperties?
I have a line polyline and point1 (outside polyline) . I want to define a point2 (on polyline ) aligned or perpendicular with polyline. What method to use?
The points are not lined up with any standard axes, but do have a common plane. I would like to create a polyline using the points above. I have tryed playing with 'polyline3d' and 'transformBy' but could not get it to work.
The 3d poly would be in an xref, and for my purposes i don't need it to be a 3d poly. Can this type of object be cloned? Or would it be better to collect the vertex points and create a 2d poly on top of it?