.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 2
sanjaymann
214 Views, 1 Reply

Hatch

Dear Forummembers,

 

How do I get center line of a hatch. Suppose I have a hatch as shown below.

Hatch.png

 

I want its centerline as follows:

 

Hatch.png

 

Thanks & regards

1 REPLY 1
Message 2 of 2

I believe the Hatch class provides a method for drawing the associated object IDs (the boundary lines):

 

Hatch.GetAssociatedObjectIds() as ObjectIDCollection

 

With the two object IDs of the boundaries, you could open them as polylines for read, collect their vertices, step through them, run some math and determine your centreline.

 

 

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost