View Single Post
  #1  
Old 09-25-2014, 12:27 AM
jkramer's Avatar
jkramer jkramer is offline
Registered User
 
Join Date: Oct 2002
Location: the Netherlands
Posts: 382
Suppress Error Messages???

Hi,

we are trying to build a kind of CAD worker that loads an Annotation Drawing and it's owning 3D Model from Workgroup Manager, then updates the text references in the drawing (that's where we need the model for), and then creates a pdf. We can do all actions except the loading of the drawing. We use the command
Code:
(sd-uwgm-element-load "A0046550.mi")
There is a bug in the Workgroup manager: in the Console we see that it uses
Code:
(oli::sd-call-cmds(AM_LOAD_DRAWING :FILENAME "g:/.wgm/.ws/ourwindchillservername/Parts/myannotationdrawing.mi"))
This gives an error "Illegal call to action routine". Probably the sd-call-cmds that they use shouldn't be there, because I get the same error if I manually type in the command, and without sd-call-cmds I get my drawing.
My question: is there a Lisp trick to press the OK button of the error message, or prevent the error message from getting in the way?? That way, we can go on with our Lisp macro...
The reason: although the command fails, at least it gets the drawing from Windchill to the workspace, so we can get it from there afterwards with AM_LOAD_DRAWING, that is, if we could get rid of the error message...
The weird (good) thing is that a 3D model loads nicely with
Code:
(sd-uwgm-element-load "A0046550.sdpc")
We also found a bug report on ptc.com that bundle files also fail... not good!
Thanks for any suggestion!
Jaap
Reply With Quote