AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create Centerline between polygons

9 REPLIES 9
SOLVED
Reply
Message 1 of 10
neam
4208 Views, 9 Replies

Create Centerline between polygons

Hello my dears:
in attached file I pose a problem,
Unfortunately, I search in internet but do't got the results
Except in ArcGIS-Esri Software
Is in the map3d software can be draw centerline like ArcGIS-Esri or need to code
I am grateful guide

9 REPLIES 9
Message 2 of 10
Anonymous
in reply to: neam

Message 3 of 10
neam
in reply to: Anonymous

Thank you for reply mr.robert I am sure qgis and arcmap software doing it
but I'm on AUTODESK software bigotry.
Is it possible do it by lisp code.

Message 4 of 10
Alfred.NESWADBA
in reply to: neam

Hi,

 

>> Is it possible do it by lisp code.

Maybe ... if you can define he rules 😉

 

looking to your drawing, coord:

 X = 959805.5439     Y = 10716258.9879

Define the rule how to draw the centerline between these three polygons.

Try to describe the rule so it is useful for every complex type of corridor-crossing situation.

 

20170610_154514.png

 

If you draw it by hand you might find out yourself that this is not just a first shot, there are many possibilities how a line can run through that situation.

If such a rule exists, I try to get time for it (no promise, of course)

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2024
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 5 of 10
neam
in reply to: Alfred.NESWADBA

Hi dear Alfred:

I draw these (intersection between center lines) then to manually.

Though I don't need exact center lines, a minimum of precision is required. One more thing, the intersection of center lines does not matter much.

Message 6 of 10
Alfred.NESWADBA
in reply to: neam

Hi,

 

>> Though I don't need exact center lines, a minimum of precision is required

It's not a question of accuracy, it's a question of strategy

Before write a tool you need to have rules your application can follow to solve ALL that situations. When you have that rules, the accuracy will be a result of your calculations according to that rules.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2024
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 7 of 10
neam
in reply to: Alfred.NESWADBA

Hi Alfred

You're absolutely correct ,Any solution that you easily write the code proposal is acceptable in my view.

For example, they can be two two together joint or fillet

Message 8 of 10
O_Eckmann
in reply to: neam

Hi,

 

Because your polygon come from regular grid spaced 82.0210*82.0210, you could use a solution without programming.

1. create an array of points offseted half of your grid 41.0105*41.0105

CenterLine1.png

2. export your points and polygon in SDF file, and connect via FDO

3. create a buffer 5m on your polygon, and make overlay Substraction or indentity to remove points insed polygon and keep only points between original polygons

4. create a block with 8 lines and MAPIMPORT your points with this bloc

CenterLine2.png

5. explose blocks and export lines as SDF, and connect SDF via FDO

6. create a buffer 23m from your original polygons and FDO overlay (identity) to remove extra line

CenterLine3.png

7. MAPIMPORT your SDF of cutted lines, and MAPCLEAN with remove isolated node with a tolerance of 29

8. You should obtain only simple polyline between original polygone.

9. In some intersection you just have to remove unwanted segment

CenterLine4.png

10. once intersection are cleaned, MAPCLEAN to join all segment

 

Olivier

Olivier Eckmann

EESignature

Message 9 of 10
Alfred.NESWADBA
in reply to: O_Eckmann

Wow ... ;))))

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2024
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 10 of 10
neam
in reply to: O_Eckmann

Woooooooowwwww

 

Thanks very much for Alfred

and

Thanks very much for Olivier , You're a beautiful mind

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


AutoCAD Beta