Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

MPMaster quesiton


jeff
 Share

Recommended Posts

I'm trying to clean up my MpMaster.pst.

In the tool list there are too many spaces and on a half-screen it spreads it over 4-5 lines.

 

For example:

 

code:

(T1   -  5/16 CARBIDE SPOTDRILL - H1   - D1   - D0.3125")

(T2 - .531 OSG CARBIDE DRILL - H2 - D2 - D0.5313")

(T3 - .656 CARBIDE DRILL FOR H-13 - H3 - D3 - D0.6563")

(T4 - 3/8 DRILL - H4 - D4 - D0.3750")

(T5 - 3/8 LONG REACH VARIMILL - H5 - D5 - D0.3750")

(T6 - 1/2 VARIMILL - H6 - D6 - D0.5000")

(T7 - FULLERTON 2 FLUTE 90 DEG - H7 - D7 - D0.5000")

(T8 - 1/16 BALL ENDMILL - H8 - D8 - D0.0625" - R0.0313")


I want this to look like:

 

(T1 5/16 CARBIDE SPOTDRILL H1 D1 D0.3125")

(T2 .531 OSG CARBIDE DRILL H2 D2 D0.5313")

etc....

 

Where else should I be looking besides my ptoolcomment?

 

code:

 ptoolcomment    #Comment for tool

tnote = t$

toffnote = tloffno$

tlngnote = tlngno$

tldianote = tldia$

"(",pstrtool,*tnote,*toffnote,*tlngnote,*tldianote,")", e$

Link to comment
Share on other sites

try looking under ptooltable

 

code:

 ptooltable # Write tool table, scans entire file, null tools are negative

tnote = t$

toffnote = tloffno$

tlngnote = tlngno$

spaces$=0

if t$ >= zero,

[

if tcr$>0, scomm_str, *t$, ptspace, " - ", plistcomm, " - ", *tlngno$, phspace, " - ", *tloffno$, pdspace, " - ", *tldia$, punit, pdiamspc, " - ", *tcr$, punit, scomm_end, e$

if tcr$=0, scomm_str, *t$, ptspace, " - ", plistcomm, " - ", *tlngno$, phspace, " - ", *tloffno$, pdspace, " - ", *tldia$, punit, pdiamspc, scomm_end, e$

]

#if t$ >= zero,

# [

# if tcr$>0, scomm_str, *t$, ptspace, " - ", plistcomm, " - ", *tlngno$, phspace, " - ", *tloffno$, pdspace, " - ", *tldia$, punit, pdiamspc, " - ", *tcr$, punit, " - ", popnote, scomm_end, e$

# if tcr$=0, scomm_str, *t$, ptspace, " - ", plistcomm, " - ", *tlngno$, phspace, " - ", *tloffno$, pdspace, " - ", *tldia$, punit, pdiamspc, " - ", " - ", popnote, scomm_end, e$

# ]

#if $t >= zero,

# [

# scomm_str, *t$, ptspace, " - ", plistcomm, scomm_end, e$

# ]

#if t$ >= zero,

# [

# if tcr$>0, scomm_str, *tnote, " ", *toffnote, " ", *tlngnote, " ", *tldia$, " ", *tcr, punit, " ", popnote, scomm_end, e$

# if tcr$=0, scomm_str, *tnote, " ", *toffnote, " ", *tlngnote, " ", *tldia$, " ", popnote, scomm_end, e$

# ]

spaces$=sav_spc


Link to comment
Share on other sites

I have no problem with the "-"

I just want to get rid of the excess spaces.

 

code:

 ptooltable # Write tool table, scans entire file, null tools are negative

tnote = t$

toffnote = tloffno$

tlngnote = tlngno$

spaces$=0

if t$ >= zero,

[

if tcr$>0, "(",*t$,plistcomm,*tlngno$,*tloffno$,")"

if tcr$=0, "(",*t$,plistcomm,*tlngno$,*tloffno$,")"

]

# " ", *tldia, punit, popnote,

#if t >= zero,

# [

# if tcr>0, "(", *tnote, " ", *toffnote, " ", *tlngnote, " ", *tldia, " ", *tcr, " ", popnote, ")"

# if tcr=0, "(", *tnote, " ", *toffnote, " ", *tlngnote, " ", *tldia, " ", popnote, ")"

# ]

spaces$=sav_spc

Link to comment
Share on other sites

Should I be looking here?

 

code:

pspace     # Creates spaces based on tool comment length

" "

counter = counter + 1

 

ptspace # Creates spaces based on tool number

if t$<10, " "

 

phspace # Creates spaces based on length offset number

if tlngno$<10, " "

 

pdspace # Creates spaces based on diameter offset number

if tloffno$<10, " "

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...