Hi All,
I want to create AutoCAD polyline feature from industry model feature through AutoCAD .net.
Industry model feature will have the Linestring with arc segment and Polygon with Arcsegment. i am having issue with reading and creating arc segment and i dont know how to do this.
Please note that, We should not use out of box command (i.e like MapextractGeometryFeature). i want to do this through .net code.
Please help us any sample code to create polyline with arcsegments from reading coordinates from industry model feature.
Thanks inadvance.
Regards,
Dayalan
Solved! Go to Solution.
Solved by drewbb. Go to Solution.
Autodesk.Map.IM.GeometryConverter.AutoCAD.Converter converter = new Autodesk.Map.IM.GeometryConverter.AutoCAD.Converter(); object entity = converter.ConvertTo(feature.Geometry); Autodesk.AutoCAD.DatabaseServices.Polyline polyline = entity as Autodesk.AutoCAD.DatabaseServices.Polyline; //Append the new polyline to the block table record //and add the newly created object via a transaction //just as you would when creating any new AutoCAD entity
Hi..
I saw few posts here for importing spatial data into autocad and this is what i have to do currently.. I already developed VBA code for the same but it takes lot of time to compelte. please let me know how to do this .net? autocad command "MAPIMPORTFDO" imports the data into cad quickly but it draws polylines as lines. how to implement this FDOIMPORT in C# and convert lines to polylines and make this retreival of data faster?
Thanks in Advance for your valuable feedbacks.
I have a digitized map, Road network is having closed polygons with its Right of ways, Now i have to generate CenterLines for these polygons, we need to work on some GIS softwares for analysys on optimum route generation. Could u please if anybody provide LISP programmes on AutoCAD for this task it would be greatful.
Hi,
is this the same theme?
Do you have the road Polygons in a industry model?
If not please create a new theme.
For your polygons from traffic technical view, it's not the right way to generate the axis of the streets out of the area polygons.
This depends of direction, parking slots, slope curves and so on included in the area polygons.
Otherwise your routing program will not work correctly, sorry. Normally the provider of the data should have the street axis data too.
Thorsten
Can't find what you're looking for? Ask the community or share your knowledge.