Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript---Porgram measuring

Status
Not open for further replies.

Michelle808

Automotive
Dec 14, 2017
2
0
0
FR
Dear all,
I would like to ask how to show the distance between two lines with VBS code (Not with click measure function)
 
Replies continue below

Recommended for you

Hi

You can try something like this (below code will not work, you need to search in docs and see what you want to do).


Set TheSPAWorkbench = CATIA.ActiveDocument.GetWorkbench("SPAWorkbench")
Set TheMeasurable = TheSPAWorkbench.GetMeasurable(hybridShapeLinePtDir1)
dist1 = TheMeasurable.GetMinimumDistance(hybridShapePointOnCurve1)

msgbox dist1 ''(or save in a text file and show that).


Regards
Fernando

- Romania
- EU
 
Status
Not open for further replies.
Back
Top