iLogic to measure lenght by UCS origin

iLogic to measure lenght by UCS origin

Anonymous
Not applicable
875 Views
7 Replies
Message 1 of 8

iLogic to measure lenght by UCS origin

Anonymous
Not applicable

Hello admin

 

Please, you support for me. I have used iLogic to measure lenght for solid. But, i need iLogic to measure lenght by UCS origin.

 

You can see image as shown below. Thank you so much!!!

 

2018-01-18_15-14-32.png

 

0 Likes
Accepted solutions (2)
876 Views
7 Replies
Replies (7)
Message 2 of 8

chandra.shekar.g
Autodesk Support
Autodesk Support

@Anonymous,

 

 

Hoping that below distance formula would help.

 

Distance.JPG

 

Here, P1 and P2 can be obtained from UCS1.WorkPoint.Point(P1) and UCS2.WorkPoint.Point(P2).

 

Please feel free to contact if there is any queries.

 

If solves problem, click on "Accept as solution" / give a "Kudo".

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 3 of 8

Anonymous
Not applicable

So we should define two point?

0 Likes
Message 4 of 8

chandra.shekar.g
Autodesk Support
Autodesk Support
Accepted solution

@Anonymous,

 

Yes, either two workpoints or UCS required to calculate length as shown below.

 

2UCS_Length.png

 

Please feel free to contact if there is any queries.

 

If solves problem, click on "Accept as solution" / give a "Kudo".

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 5 of 8

Anonymous
Not applicable

Great! Thank you for your assistance. 🙂

0 Likes
Message 6 of 8

chandra.shekar.g
Autodesk Support
Autodesk Support
Accepted solution

@Anonymous,

 

You are welcome:)

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 7 of 8

ganesh_omkaar
Contributor
Contributor

Can you please paste your code 

0 Likes
Message 8 of 8

ganesh_omkaar
Contributor
Contributor

Ilogic code

0 Likes