REMOVING UNUSED DRAWING MODELS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
REMOVING UNUSED DRAWING MODELS
I need to remove all unused drawing models.
And I don't know if this is possible to do it with a macro or something like that.
can help me somebody?
Thank you,
Alberto Todisco
- Labels:
-
SMART Products
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Can you explain me the process?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
you need to set UNUSED_MODELS check to Y or E in your .mch file.
This works only if you have enabled ModelCHECK.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Alberto
If you don't use Modelcheck, but you are working with Windchill, you could use this creo config option:
cleanup_drawing_dependencies=yes_cs_not_required
More info in this Article
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Trebla,
that's the better solution!! thank you so much
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Seems this config option is not available in Creo 5, at least to me.
Has anybody haved similar problem in Creo 5 (with unused models and lack of cleanup option in config.pro)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Jacek_Mydlikows,
I work with creo4, so I can not check in creo5.
In Olaf Corten's web it appears as an option also in creo5.
You have to add inside your config.pro:
cleanup_drawing_dependencies yes_cs_not_required
- Tags:
- config option
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I don't think that is going to do what you want. All the does is remove the reference. Not the actual model.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Did you test it? I don't think it removes that actual model from the drawing. I believe it removes only the REFERENCE link to a model.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Steve, yes I tested, It removes all 'unused drawing models' not the actual model.
To remove the 'unused drawing models' is what Alberto_Todisco was asking for.
Yes, you only erase the missing dependents references, but that was the aim.
best wishes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
# p-Shell # „ps_draw delete“ will return 1 on success and 0 if fail
# if your case you may not interested
# and the code is ignoring the return value
# sample A
#
# if your active window contains a Drawing
#
foreach M [ps_draw list] {ps_draw -mod $M del }
# sample B
# # for all drawings in session
#
foreach D [ps_glob *.drw] { foreach M [ps_draw -draw $D list] {
ps_draw -draw $D -model $M delete
} }
# sample c
# # for test.drw
# foreach M [ps_draw -draw test.drw list] {
ps_draw -mod $M -draw test.drw delete
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
please provide more information about p-Shell.
Martin Hanák
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Link to p-Shell Wiki, and there a YouTube Link. Its a Toolkit Application, which allows you to access Creo Files and their Database via Tcl (Script Language) commands within a running Tcl/Tk environment. On the Wiki you find a lot of code snippets. You are ready with your first program in p-Shell, before you would have setup Toolkit and the compiler on the other hand
