How to cleanup / remove ghost objects
Hi folks,
if you create assembly and you will modify it .. sometimes system creates dependencies between old components and you can find some "problematic objects" (in a Workspace as Ghost objects) ![]()
Here is the quick solution - how I solved it for our Creo configuration (assembly mode😞
- I have set configuration option: grv_default_view dependencies
- Defined new mapkey "cg" Clear Ghosts (this mapkey jumped into Reference viever window and there I Break Dependencies)
mapkey cg @MAPKEY_NAMEClear Ghosts;@MAPKEY_LABELBreak Dependencies;\
mapkey(continued) ~ Command `ProCmdInfoProGRV` ;\
mapkey(continued) ~ Select `pro_grv_dlg` `RefDepRadioGrp`1 `Dependencies`;\
mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` `GRVUI` `Select: 7 'pro_grv_dlg' \
mapkey(continued) 'GraphDrawingArea' 'CURR_NODE' '' 263 169 8`;\
mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` `GRVUI` `Select: 7 'pro_grv_dlg' \
mapkey(continued) 'GraphDrawingArea' 'CURR_NODE' '' 263 169 32`;\
mapkey(continued) ~ Close `pro_grv_dlg` `RMBNodeMenuPane`;\
mapkey(continued) ~ Activate `pro_grv_dlg` `RMBNodeBrkDepBtn`;\
mapkey(continued) ~ FocusIn `UI Message Dialog` `confirm`;\
mapkey(continued) ~ Activate `UI Message Dialog` `confirm`;\
mapkey(continued) ~ Activate `pro_grv_dlg` `pro_grv_dlg`;\
mapkey(continued) ~ Activate `pro_grv_dlg` `ClosePushButton`; - Save model
In the drawing is not possible to remove ghost so easy as previous example - but I have found quick solution for a drawing too ![]()
- create new EMPTY drawing (set name as "removed_ghost.drw" - for example)
- Merge new drawing with original *.drw file (problematic drawing): Layout > Import Drawing/Data
- Delete First Sheet
- Save drawing
- Delete original *drw file from the Workspace
- Rename removed_ghost.drw to original file name
System will inform to you that same name exists - it is OK. Your "new drawing" is without Ghosts Objects - Update this objects as "reuse" windchill function - Check In modified drawing into WCH (wihout Ghost Objects)
Note: remove ghosts from a drawings is possible to run with custom Mapkey too ![]()
I hope that my solutions will help you to remove Ghost Objects from the assemblies and drawings.
Best Regards, Vladimir

