Just wondering what I am doing wrong…
Have 2 curves one open + one closed. When I run this Macro (in V6 then V5 to check), the SelOpenCrv selects properly, then the SelClosedCrv does not select anything. “No object added to selection”
Dunno, seems to work in both here - you need an _Enter at the end for it to finish…
Make sure there’s only rail curve being selected. You can have multiple profiles.
OK I tested again here also in French to see if it wasn’t a localization problem, but it works as well… I just used a simple NURBS curve and a circle.
Commande: _-Sweep1
Sélectionner un rail ( EnchaînerBords ): '_SelOpenCrv
1 courbe ajoutée à la sélection.
Sélectionner les courbes de section transversale ( Point ): '_SelClosedCrv
1 courbe ajoutée à la sélection.
I wonder if it isn’t an issue with your closed curve - can you just post the two curves you used here? Or are you having this problem with any two curves?
Stumped…
Same issue with the Script you handed over… And seing the same on V6 curiously. That’s perhaps a clue.
Not vital for this exercise and there is a workaround to manually select the closed curve but got to be able to make Scripts reliably for LII trainings…
Aha… I am running it from the MacroEditor and it works in both V5 and 6. Pasting it into the command line doesn’t work in either here as well, that’s the difference. It’s also working when pasted into a button. Must be something in the command line interpreter?