#1
|
|||
|
|||
MM load
Hi to everybody,
I am writing a LISP code to load several part/assembly. I use the function: (sd-db-element-load :identifier riga :database-type :model) where riga is the name of object to load All is OK if the masterdata contains only one object while nothing is loaded if there are more object. The function: (sd-db-errors :get_last)) says: MM: ERROR [ multiple matches found ] So, I am not able to solve the problem . Any suggestion. Regards. |
#2
|
|||
|
|||
Re: MM load
Hi Giorgio
Maybe you can use database-part-elid parameter. Look at help. Alessandro
__________________
alessandro niccoli pescia(PT)-italy |
#3
|
|||
|
|||
Re: MM load
Thanks Alessandro,
but I can't use :database-part-elid parmeter becose I don't konw before to load (at least I think so). I don't know if it is possible query the MM in order to obtain the ELID (the newest). Now I am looking for a suggestion in the internal command of SD. Regards. |
#4
|
||||
|
||||
Re: MM load
Salve Giorgio,
looks like I ran into the same problem as you I'm currently trying to find a solution in this topic: http://www.cocreateusers.org/forum/showthread.php?t=7601, starting at post #10 ...
__________________
Cheers, Chris |
#5
|
|||
|
|||
Re: MM load
Thank you very much Chris.
Your suggestion allow me to solve the problem. I have written a macro that with a loop look for the rigth ELID so I can load the last version of the model. Cheers, Giorgio |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|