is that possible i control the number of created part and simulation run time by import file?

52 views
Skip to first unread message

lee chung

unread,
Nov 12, 2018, 12:22:46 PM11/12/18
to delmia_quest
Hi, could i control the number of created part and simulation run time by import file to the delmia?


BARNES Martin

unread,
Nov 12, 2018, 2:02:34 PM11/12/18
to delmia...@googlegroups.com

Hi:

 

Yes you can.

The way to do this is with BCL.

 

You create a BCL file with (for example):

SET 'Source1' MAX PART COUNT TO 10

RUN 1000

 

You can then launch QUEST and specify the BCL file to be used, or attach the BCL Macro to a BCL Button.

 

 

Martin BARNES

Senior Software Consultant , Manufacturing - Consulting & Technical Services

cid:image001.jpg@01D37F27.E988DFF0

Office: +1 248 205 5227
Mobile: +1 248 762 1775
Fax: 248 267 8585
martin...@3ds.com

3DS Logo

3DS.COM

DS Americas Corp. | 900 North Squirrel Road, Suite 100 | Auburn Hills, MI 48326 | United States

--
You received this message because you are subscribed to the Google Groups "delmia_quest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to delmia_quest...@googlegroups.com.
To post to this group, send email to delmia...@googlegroups.com.
Visit this group at https://groups.google.com/group/delmia_quest.
For more options, visit https://groups.google.com/d/optout.

This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer at 3DS.complia...@3ds.com


For other languages, go to https://www.3ds.com/terms/email-disclaimer

lee chung

unread,
Nov 15, 2018, 6:08:23 AM11/15/18
to delmia_quest
Does is have the excel format for controlling the number of created part and simulation run time?

BARNES Martin

unread,
Nov 15, 2018, 6:16:45 AM11/15/18
to delmia...@googlegroups.com

Hi Lee:

 

You could put the BCL statements into Excel and then export to a text file – e.g. MYBCL.bcl.

 

 

 

Martin BARNES

Senior Software Consultant , Manufacturing - Consulting & Technical Services

cid:image001.jpg@01D37F27.E988DFF0

Office: +1 248 205 5227
Mobile: +1 248 762 1775
Fax: 248 267 8585
martin...@3ds.com

3DS Logo

3DS.COM

DS Americas Corp. | 900 North Squirrel Road, Suite 100 | Auburn Hills, MI 48326 | United States

 

 


Sent: Thursday, November 15, 2018 6:05 AM
To: delmia_quest <delmia...@googlegroups.com>

--

You received this message because you are subscribed to the Google Groups "delmia_quest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to delmia_quest...@googlegroups.com.
To post to this group, send email to delmia...@googlegroups.com.
Visit this group at https://groups.google.com/group/delmia_quest.
For more options, visit https://groups.google.com/d/optout.

lee chung

unread,
Nov 27, 2018, 10:08:08 PM11/27/18
to delmia_quest
thank you for reply.
It that possible i control it from the excel file?

To post to this group, send email to delmi...@googlegroups.com.

BARNES Martin

unread,
Nov 28, 2018, 8:28:06 AM11/28/18
to delmia...@googlegroups.com

Yes.

 

You could use SCL to read an excel output file (csv format for example) and put a limit on the number of parts created by the Source.

This could be done by SCL calling BCL to execute the BCL statement below, or by using the read in value in the Source Process Logic to control the max number of parts generated..

To post to this group, send email to delmia...@googlegroups.com.

lee chung

unread,
Nov 28, 2018, 9:30:56 AM11/28/18
to delmia...@googlegroups.com
How actually work that SCL to read excel file (CSV format), then by SCL calling BCL to execute the BCL statement, could you show more detail or example?
for example using this statement ,SET 'Source1' MAX PART COUNT TO 100
                                                      SET 'Source1' START OFFSET TIME TO 200
                                                      RUN 1000

BARNES Martin

unread,
Nov 28, 2018, 7:29:12 PM11/28/18
to delmia...@googlegroups.com

Hmm.

 

I think maybe we are getting too deep.

 

Let me back off and ask something:

If we had an Excel file that specified:

Part Type, Part Creation time for each Part to be created

And no parts were created except those in the file so you control the number of parts from the file

 

Would that work for you?

thank you for reply.

lee chung

unread,
Nov 29, 2018, 3:31:35 AM11/29/18
to delmia...@googlegroups.com
Yes,it is as well as number of parts can control by using the excel file.

BARNES Martin

unread,
Nov 29, 2018, 6:02:24 AM11/29/18
to delmia...@googlegroups.com

If you use Excel and export in tab delimited format, then with 2 simple file edits you can use the file to control parts coming in to a source.

 

I have attached an Excel and the tab-delimited output before editing and after editing.

The edits are to remove tabs from the line starting ‘relative’ and from the line starting END_OF_SCHEDULE.

 

Then use Source Process Logic Source-based and select the edited file it should use the file to control the parts.

PartScheduleOutputAfterEdit.txt
PartScheduleOutputBeforeEdit.txt
PartSchedule.xlsx

lee chung

unread,
Dec 1, 2018, 12:39:53 PM12/1/18
to delmia...@googlegroups.com
Yeah, it is work, Mr Martin,Thank You so much.

BARNES Martin

unread,
Dec 1, 2018, 1:22:03 PM12/1/18
to delmia...@googlegroups.com
Thanks for the feedback

Sent from my iPhone

brahim LEFHEIEL

unread,
Dec 11, 2018, 2:41:44 AM12/11/18
to delmia_quest
Hi, 

For more info, this is an example of how to read the lines of .CSV file 


Begin
open file 'FILE PATH' for text input as 
read_line(#1,line_test)
while(VAL1<> 'last_line') do 
read_line(#1,line_test)
Return_VAL= scan_str(ligne_tets,";",VAL1,VAL2,VAL3)

               .................... your program .......................
endwhile
 
End

Best regards
Brahim
Reply all
Reply to author
Forward
0 new messages