Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Catia Selection

Status
Not open for further replies.

NaWin55

Mechanical
Mar 21, 2020
97
IN
Hello all
i want to create a macro where i can select points lines bodies geoSets and rename them
i tried with this macro but i am getting this error
it looks like selectElement2, 3 doesnt work in VB SCRIPT, they work in catscript but i want to write macro in vb script
how to fix this or is there any other way to create macro to rename elements in catia
The macro must be in VB SCRIPT

here is the Error i am getting
SelectionError_pd4dgd.jpg
 
Replies continue below

Recommended for you

Try late binding

Code:
Dim InputObjectType(2), Status, [COLOR=#EF2929]sel2lb[/color]
  InputObjectType(0) = "BiDimFeatEdge"
  InputObjectType(1) = "TriDimFeatEdge"
  InputObjectType(2) = "HybridShapeCurveExplicit"
  Set sel2lb = Sel2 [COLOR=#73D216]'late bound sel2[/color]
  Status = [COLOR=#EF2929]sel2lb[/color].SelectElement2(InputObjectType(), ">>>>>>>>>>>>>> Select a guide curve <<<<<<<<<<<<<<", False)
  If (Status = "Cancel") Then Exit Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top