![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: for object in selection do Topic Summary: include file that will allow you to loop through selected objects Created On: 7-Jul-2008 22:51 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|||
I couldn't find a simple way to loop through the selected objects in a module so I wrote one.
Syntax that becomes available when you include this file is: for o in selection do { //do something to/with o } An example program that uses this include file is shown in the comment at the bottom of the file.
Edited: 9-Jul-2008 at 14:42 by Andrew Wallen |
|||
![]() |
|||
![]() |
|||
This is brilliant!
I always wanted to create my own "for ... do" loops, tried many years to overload the "::Do" operator without success (in fact, it was proved impossible) but never get the idea of this clever workaround. Thanks a lot! Edited: 9-Jul-2008 at 21:57 by Eric Piallat |
|||
![]() |
Telelogic DOORS
» DXL Exchange
»
for object in selection do
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.