- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
In one of my macros, I need to know if the holder is define with a complex shape or just with a basic stack of cylinder and cone. Complex definition comes most of the time when you define your holder via a DGK file or in some case when the tool is loaded via the Tool Library.
I haven't find an easy way to detect such case. The solution I'm using right now is to try to save the holder as *.pmlth file. Ie :
DIALOGS MESSAGE OFF
DIALOGS ERROR OFF
STRING FILEHolderPMLTH= $Tool.HolderName + ".pmlth"
EXPORT TOOLHOLDER ; $FILEHolderPMLTH YES IF NOT FILE_EXISTS($FILEHolderPMLTH) { MESSAGE WARN "BECAREFULL Complex Holder $FILEHolderPMLTH" } ELSE { DELETE FILE $FILEHolderPMLTH }
Do you have a solution to test this case , without this trick ?
Solved! Go to Solution.