Find points were used to create an UCS

Find points were used to create an UCS

ngocson8335
Advocate Advocate
225 Views
1 Reply
Message 1 of 2

Find points were used to create an UCS

ngocson8335
Advocate
Advocate

Hello everyone,

 

I created a UCS by 3 edge points in a part. Now I would like to specify back which edge points that I used to create that UCS.

 

Thank you.

Ngoc Son
Autodesk User
0 Likes
226 Views
1 Reply
Reply (1)
Message 2 of 2

J-Camper
Advisor
Advisor

You have to look at the UCS Definition.  There is a method: GetByThreePoints :

 

Dim PickThis As UserCoordinateSystem = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kUserCoordinateSystemFilter, "Select UCS")
If IsNothing(PickThis) Then Exit Sub ' If nothing gets selected then we're done
	
Dim Origin, xPoint, yPoint As Object

PickThis.Definition.GetByThreePoints(Origin, xPoint, yPoint)
Logger.Trace(CType(Origin.Type, ObjectTypeEnum).ToString)
Logger.Trace(CType(xPoint.Type, ObjectTypeEnum).ToString)
Logger.Trace(CType(yPoint.Type, ObjectTypeEnum).ToString)

 

Although, when I picked edge midpoints the Object returned in the edge it self, but Endpoints actually return as vertex objects.

0 Likes