Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep 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
Joined
Mar 21, 2020
Messages
98
Location
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
 
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
 
it looks like selectElement2, 3 doesnt work in VB SCRIPT

It looks like you didn't search the forum. Even Google can answer this question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top