![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Deleting Multiple Objects Topic Summary: Created On: 3-Dec-2007 19:11 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I need to delete multiple objects from a module. I flattened the module so every object is level 1 (No children). I run a filter to show all objects I want to delete. Can someone give me a dxl which will delete all displayed. (I will remove all links prior to deleting).
Thanks |
|
![]() |
|
![]() |
|
I can tell you from experience that it would be much quicker to hold down the delete key than running a script to delete the objects. I would post the script I used to know this, but I can't find it right now.
------------------------- Jeremy Eble Software Engineer Teragon Consulting LLC jeremy.r.eble@lmco.com |
|
![]() |
|
![]() |
|
In module select Tools / DXL Library. Browse to "Some example programs which illustrate..." and select the script "Example to delete all objects in display set (with links as well)".
------------------------- Pekka.Makinen@softqa.fi SoftQA Oy -http://www.softqa.fi/ |
|
![]() |
|
![]() |
|
That example PURGES all the objects, not just delete's them.
It also fails if any of the objects have incoming links. I didn't try it but suspect that script will have some trouble if Sorting is on, since its its main function deleteObj() recursively deletes children, and it looks like if a sort puts a child above the parent, the child won't exist anymore when you call deleteObj() for it. Golly, I'm tired of looking at sub-par Telelogic written DXL. - Louie |
|
![]() |
|
![]() |
|
Yes you are correct - just looked into the include files, it does a harddelete. Maybe not so good example ;-)
------------------------- Pekka.Makinen@softqa.fi SoftQA Oy -http://www.softqa.fi/ |
|
![]() |
|
![]() |
|
This should work to delete all displayed objects:
Object o Module m = current for o in m do if (isVisible o) delete o |
|
![]() |
|
![]() |
|
Do not use delete(Object) as it does a hard delete.
Use softDelete(Object) to soft delete an object. Use hardDelete(Object) to delete and purge an object. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
Telelogic DOORS
» General Discussion
»
Deleting Multiple Objects
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.