Skip to main content
Mar 9, 2017 6:19 PM UTC
Question

Is there a integration kit command to load a drawing into Annotation from Model Manager?

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?

3 replies

Apr 6, 2017 11:19 AM UTC

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

dhullAuthor
Apr 6, 2017 12:13 PM UTC

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?

Apr 6, 2017 12:46 PM UTC

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