![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Deleting all unused Attribute Types in a module Topic Summary: Created On: 21-Oct-2008 14:44 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Use the isUsed(AttrType at) command to check if the attribute type is in use before attempting to delete it. | |
![]() |
|
Hi all,
I would like to delete all unused Types in various modules using DXL. I tried attached code but receive an error message that the type is in use. Does anybody know how to make DXL exclusively delete the unused Types (e.g. extend the if clause) or to ignore the error message (so that the script runs through)? Thank you very much! Best Regards Mathias Burchardt BeOne Hamburg GmbH |
|
![]() |
|
![]() |
|
The in use error means that there is an attribute using the type.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
I know. I would like either to suppress that error message or extend the if clause in the code, that only the "unused" types will be deleted.
Rgds, Mathias |
|
![]() |
|
![]() |
|
Use the isUsed(AttrType at) command to check if the attribute type is in use before attempting to delete it.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
Thanks - that was what I was looking for.
Mathias |
|
![]() |
|
![]() |
|
Get used to trapping errors like this:
noError() delete(at, e) string ErrMess = lastError() look at ErrMess. In this particular case, you can ignore the error: lastError() - Louie |
|
![]() |
|
![]() |
|
Great function, Louie, thanks a lot!
Rgds Mathias |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.