fletch97
2008-03-11, 07:20 PM
I found this code but am having some problems when running it......
(defun C:AECPURGE (/ ITEM)
(foreach ITEM '("-MaskDefine"
"-ProfileDefine"
"-NameDef"
"-GroupTemplate"
"-CalculationModifierStyle"
"-AreaGroupStyle"
"-MemberStyle"
"-AecPolygonStyle"
"-AecDimStyle"
"-WallStyle"
"-DoorStyle"
"-WindowStyle"
"-StairStyle"
"-RailingStyle"
"-SpaceStyle"
"-AecMvBlockDefine")
(progn (if (vl-cmdf ITEM "p" "*" "n")
(vl-cmdf))
(vl-cmdf)))
(princ "\nAll Styles have been purged!")
(princ))
The lisp has issues when there are no styles to purge........
Command: aecpurge
-MaskDefine
Style [New/Copy/Edit/Purge/?]: p
All entries are currently referenced and cannot be purged.
Style [New/Copy/Edit/Purge/?]: *
Invalid option keyword.
Style [New/Copy/Edit/Purge/?]: n
New style name or [?]:
Style [New/Copy/Edit/Purge/?]:
Command: -ProfileDefine
Style [New/Copy/Edit/Purge/?]: p
All entries are currently referenced and cannot be purged.
Style [New/Copy/Edit/Purge/?]: *
Invalid option keyword.
Any ideas? Thanks!
BTW.......this for purging unused AEC styles in ADT / ACA.
Moderator Note:
Please use [ CODE ] tags... (http://forums.augi.com/misc.php?do=bbcode#code)
(defun C:AECPURGE (/ ITEM)
(foreach ITEM '("-MaskDefine"
"-ProfileDefine"
"-NameDef"
"-GroupTemplate"
"-CalculationModifierStyle"
"-AreaGroupStyle"
"-MemberStyle"
"-AecPolygonStyle"
"-AecDimStyle"
"-WallStyle"
"-DoorStyle"
"-WindowStyle"
"-StairStyle"
"-RailingStyle"
"-SpaceStyle"
"-AecMvBlockDefine")
(progn (if (vl-cmdf ITEM "p" "*" "n")
(vl-cmdf))
(vl-cmdf)))
(princ "\nAll Styles have been purged!")
(princ))
The lisp has issues when there are no styles to purge........
Command: aecpurge
-MaskDefine
Style [New/Copy/Edit/Purge/?]: p
All entries are currently referenced and cannot be purged.
Style [New/Copy/Edit/Purge/?]: *
Invalid option keyword.
Style [New/Copy/Edit/Purge/?]: n
New style name or [?]:
Style [New/Copy/Edit/Purge/?]:
Command: -ProfileDefine
Style [New/Copy/Edit/Purge/?]: p
All entries are currently referenced and cannot be purged.
Style [New/Copy/Edit/Purge/?]: *
Invalid option keyword.
Any ideas? Thanks!
BTW.......this for purging unused AEC styles in ADT / ACA.
Moderator Note:
Please use [ CODE ] tags... (http://forums.augi.com/misc.php?do=bbcode#code)