CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > Data Management

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 07-20-2010, 07:32 AM
GiorgioL GiorgioL is offline
Registered User
 
Join Date: Oct 2002
Location: Pordenone (PN) - ITALY
Posts: 78
Cool 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.
Reply With Quote
  #2  
Old 07-21-2010, 02:05 AM
alexniccoli alexniccoli is offline
Registered User
 
Join Date: Jul 2003
Location: pescia
Posts: 206
Re: MM load

Hi Giorgio
Maybe you can use database-part-elid parameter.
Look at help.
Alessandro
__________________
alessandro niccoli
pescia(PT)-italy
Reply With Quote
  #3  
Old 07-21-2010, 02:56 AM
GiorgioL GiorgioL is offline
Registered User
 
Join Date: Oct 2002
Location: Pordenone (PN) - ITALY
Posts: 78
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.
Reply With Quote
  #4  
Old 07-26-2010, 03:30 PM
ChrisE's Avatar
ChrisE ChrisE is offline
OneSpace Member
 
Join Date: Oct 2002
Location: Grünstadt, Pfalz, Germany
Posts: 121
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
Reply With Quote
  #5  
Old 07-26-2010, 11:24 PM
GiorgioL GiorgioL is offline
Registered User
 
Join Date: Oct 2002
Location: Pordenone (PN) - ITALY
Posts: 78
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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:17 AM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.