Hello every one .
I Want to add dimension to Hole by using c# . for that i follow some logic i know its not correct , Can any one please give me correct logic .
At Run time After Creating hole .
Select that hole ,
from feature GetFace
from faces collect edge / entity .
find outside Hole edge then give to Name .
in drawing
open sheet
Collect all views > in views collect all edge by using Get visible entity .
check if entity name is equal to EdgeName then Add dimension .
So please help me . its is possible give dimension without knowing the edge name .
just check Entity type is circular then add dimension .
Hi Sanket,
Traverse the edges as shown in this example: 2013 SOLIDWORKS API Help - Get All Edges in Visible Component in Drawing View Example (VBA)
Now simply do: IEdge::GetCurve->Curve::IsCircle to find if this is a circle. You may want to explicitly check if this is a closed circle with IEdge::GetCurveParams2 method.
Thanks,
Artem