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 STARTCOMMAND loop for multiple surfces

Status
Not open for further replies.

NaWin55

Mechanical
Joined
Mar 21, 2020
Messages
98
Location
IN
Hi
i have been trying to use CATIA.StartCommand on UNTRIM command for multiple surfaces
i tried looping it but it is not working for multiple surface i tried adding the surfaces to selection or collection
and tried looping but script ran fine but only first element gets untrimmed

here is the code

set hyb2 = opart.hybridbodie.item("Extracts")

set oSel2 = catia.ActiveDocument.Selection
oSel2.clear

for i = 1 to hyb2.hybridshapes.count
oSel2.Add hyb2.HybridShapes.item(i)
CATIA.StartCommand "Untrim"
CATIA.RefreshDisplay = True
SendKeys "{ENTER}"
next
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top