Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey Guys,
I have a Problem with measuring the lid in height. I can't catch the Point1 from the Edge. I want to measure from Point1 to Edge3. I also tried with Edge1 or end of point from Edge1.
I put picures in attachment and copied the code.
I hope someone can help me.
Thank you.
oCompOcc2 = oAssDoc.ComponentDefinition.Occurrences.ItemByName("Lid")
oPartDoc2 = oCompOcc2.Definition.Document
myNamedEntities2 = iLogicVb.Automation.GetNamedEntities(oPartDoc2)
oEdge1 = myNamedEntities2.FindEntity("Edge1")
Call oCompOcc2.CreateGeometryProxy(oEdge1, oEdge1Proxy)
myCurveCandidates = oFrontView.DrawingCurves(Proxy of Edge3)
myDrawingCurve1 = myCurveCandidates.Item(1)
oGeoIntent1 = oSheet.CreateGeometryIntent(myDrawingCurve1)
myCurveCandidates = oFrontView.DrawingCurves(oEdge1Proxy)
myDrawingCurve2 = myCurveCandidates.Item(1)
oGeoIntent2 = oSheet.CreateGeometryIntent(myDrawingCurve2)
myPos2d = oTG.CreatePoint2d(myDrawingCurve1.StartPoint.X +1,oFrontView.Top-6)
oSheet.DrawingDimensions.GeneralDimensions.AddLinear(myPos2d, oGeoIntent1, oGeoIntent2)
Solved! Go to Solution.