Skip to main content
4-Participant
March 9, 2017
Question

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

  • March 9, 2017
  • 3 replies
  • 2230 views

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

1-Visitor
April 6, 2017

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

dhull4-ParticipantAuthor
4-Participant
April 6, 2017

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?

1-Visitor
April 6, 2017

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