Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
I've had great success using sd-db-element-load to load models from Model Manager into modeling.
After setting the model and version to a couple variables: LOAD_MODEL M_VERSION the following command loads models perfectly:
Example (oli:sd-db-element-load :identifier (format nil "~A,~A" LOAD_MODEL M_VERSION) :database-type :model :load-mode :full)
How would I do the same thing with a drawing?
I use: (MODELMANAGER::MM-SEND-CMD (format nil "SD-LOAD-2D-BY-LINK '~A'" elid))
Get the elid by: (setf elid (sd_inq_obj_elid Object))
BS
This definitely looks like a step in the right direction, but I get a no handler error.
Example:
No handler found for Creo Elements/Direct Model Manager command [SD-LOAD-2D-BY-LINK 'CUMBBKGRC8AA6N']
Do I need to customize something in model manager to get this working?
sd_inq_obj_elid doesn't seem to be a normal modeling command. Am I using the wrong package? Or, is this the equivalent of: sd-db-element-elid ?
I've tried picking the elid with (setf elid (sd-db-element-exists :identifier (format nil "~a,?" part_name) :database-type "DRAWING_2D"))
So, for (MODELMANAGER::MM-SEND-CMD (format nil "SD-LOAD-2D-BY-LINK '~A'" elid)) should elid be the drawing elid or the model elid?
I'm so sorry, after looking in to it I realise this is no standard functionality. It was added by our software supplier. I guess you cannot use this command without their software.
BS