×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Custom holder retrieves from library

Custom holder retrieves from library

Custom holder retrieves from library

(OP)
Dear All,
I added the following rows to the end of the holder_ascii.def file:
CLASS GRAPHIT_MILLING
{
TYPE QRY
QUERY "[DB(Type)] == [03]"
DIALOG libref Type
RSET libref Description N_Sections Max_offset
UI_NAME "Graphit_Milling"

CLASS MILL_1
{
TYPE QRY
QUERY "[DB(SubType)] == [0]"
DIALOG libref Description
RSET libref Type Description
UI_NAME "Mill_1"
}

CLASS MILL_2
{
TYPE QRY
QUERY "[DB(SubType)] == [1]"
DIALOG libref Description
RSET libref Type Description
UI_NAME "Mill_2"
}
}


I added the following rows to the holder_database.dat file:
DATA | GR_ZSUG001_00001 | 1 | 3 | 0 | 3 | 0.00000 | 0.00000 | 0.00000 | Small collet
and
DATA | GR_ZSUG001_00001 | 2 | 1 | 44.00000 | 25.00000 | 0.00000 | 0.00000
DATA | GR_ZSUG001_00001 | 2 | 2 | 40.00000 | 27.00000 | 0.00000 | 0.00000
DATA | GR_ZSUG001_00001 | 2 | 3 | 64.00000 | 15.90000 | 0.00000 | 0.00000


I added the following rows to the holder_ascii.tcl file:
For the proc Asc_load_holder_data:
if {$dbc_holder_type == 3} {
ASC_load_milling_holder_data
}

For the proc ASC_retrieve:
if {$dbc_holder_type == 3} {
#milling holder
set dbc_holder_num_sections [ASC_ask_att_val \
SNUM $db_row "%d" 0 flag]
set dbc_holder_max_offset [ASC_ask_att_val \
MAXOFF $db_row "%g" 0 flag]
set dbc_holder_min_diameter [ASC_ask_att_val \
MINDIA $db_row "%g" 0 flag]
set dbc_holder_max_diameter [ASC_ask_att_val \
MAXDIA $db_row "%g" 0 flag]
}

And the end of the proc Asc_load_holder_data:
For checking:
MOM_log_message "A konkret sor 0 seq-e"
MOM_log_message $dbc_seqno(0)
MOM_log_message $dbc_hld_diam(0)
MOM_log_message $dbc_hld_hgt(0)
MOM_log_message $dbc_hld_taper(0)
MOM_log_message $dbc_hld_corner(0)

I can see the following rows in the syslog file:
************* MOM: TCL SCRIPT MESSAGE *************
User message: A konkret sor 0 seq-e
************* MOM: TCL SCRIPT MESSAGE *************
User message: 1
************* MOM: TCL SCRIPT MESSAGE *************
User message: 44.00000
************* MOM: TCL SCRIPT MESSAGE *************
User message: 25.00000
************* MOM: TCL SCRIPT MESSAGE *************
User message: 0.00000
************* MOM: TCL SCRIPT MESSAGE *************
User message: 0.00000

So, I think everything is correct.
But these values don't set on the Holder tab of the Milling Tool - 5 Parameters dialog window.
Every values remain 0.0000 in every cells on this dialog window.

What is my mistake?
Thanks a lot.

RE: Custom holder retrieves from library

When you retrieve the holder, are the classes in the tree list?

Can you create a holder in NX and export it, selecting one of your classes?

You may get more help from the Siemens PLM customer forum, or GTAC.

Mark Rief
Product Manager
Siemens PLM

RE: Custom holder retrieves from library

(OP)
I logged it:
IR 1893965 - Custom holder retrieves from Library
The log contains the every necessary files and one video file from the workflow.

Attila Szepesi
support engineer
graphIT Ltd.
www.graphit.hu

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources