External Hatch Issue.

External Hatch Issue.

Anonymous
Not applicable
870 Views
4 Replies
Message 1 of 5

External Hatch Issue.

Anonymous
Not applicable
I can easily fetch the boundary information of a polyline type of hatch using getloopAt() method. But when the hatch type is external , i am not able to fetch the boundary points in the same way as i did previously. Please help me in the same like which method should be used. I am doing my code in C#.
0 Likes
Accepted solutions (1)
871 Views
4 Replies
Replies (4)
Message 2 of 5

zrobert
Advocate
Advocate

Hi;

Maybe you find something useful on these link.
There are example of .NET as you are looking for.

TroughTheInterface... 

0 Likes
Message 3 of 5

Anonymous
Not applicable

No, this link is not what i want. I want to fetch the boundary information of external hatch type. 

This is what i have done for polyline type.

Please suggest me the same for external hatch.

 

HatchLoop h1 = temphatch.GetLoopAt(i);

if (h1.IsPolyline)
{
BulgeVertexCollection p = h1.Polyline;
int numVer = p.Count;

di.Count = numVer - 1;

di.Type = ent.GetType().Name;

 

for (int k = 0; k < numVer - 1; k++)
{
Point pos = new Point();

pos.X = p[k].Vertex.X.ToString("F2");

pos.Y = p[k].Vertex.Y.ToString("F2");

pos.Z = "0.00";

di.Point.Add("Point" + (k + 1), pos);
}
hi.layer = ent.Layer.ToString();
hi.Data.Add(di);

hatchList.Add(hi);
}

Message 4 of 5

tbrammer
Advisor
Advisor

@Anonymous wrote:
I can easily fetch the boundary information of a polyline type of hatch using getloopAt() method. But when the hatch type is external , i am not able to fetch the boundary points in the same way as i did previously. Please help me in the same like which method should be used. I am doing my code in C#.

Since you are using C# you should better ask this question in the .NET forum.

I would also recomment to add a sample DWG.

 

You wrote that you have implemeted code for polyline type. Did you check that your external hatch has this type? Maybe you have to implement other types.


Thomas Brammer ● Software Developer ● imos AGLinkedIn
If an answer solves your problem please [ACCEPT SOLUTION]. Otherwise explain why not.

Message 5 of 5

Anonymous
Not applicable
Accepted solution

Thank you for the reply sir, But i got the solution.