How to get the NC Program Tool Number output to my setup sheet

How to get the NC Program Tool Number output to my setup sheet

rmiller
Contributor Contributor
1,014 Views
6 Replies
Message 1 of 7

How to get the NC Program Tool Number output to my setup sheet

rmiller
Contributor
Contributor

I am trying to modify my existing setup sheet template to show the tool number that’s set in the NC Program verses the toolpath.  I have multiple instances of the same toolpath and I want to use a different tool for each.  My current template uses {tool.number} and it will output the tool number correctly for the first toolpath but doesn’t change for subsequent toolpaths.  I’ve also tried {stoolpath.ToolNumber}{nctoolpath}.ToolNumber and {nctoolpath}.ToolNumber.Value without success .

 

I’m also having trouble trying to output the fixture offset name.  I’ve tried {stoolpath.FixtureOffset.Name} and {nctoolpath}.FixtureOffset.Name and neither seem to work.

 

Tool Number.png

 Setup Sheet.png

 

Any help would be appreciated.

Thanks,

Rick

0 Likes
Accepted solutions (1)
1,015 Views
6 Replies
Replies (6)
Message 2 of 7

design
Enthusiast
Enthusiast

try {ToolNo}

Vilchez
0 Likes
Message 3 of 7

rmiller
Contributor
Contributor

@design

{ToolNo} gives me the same results as before.  The first toolpath has the correct tool number of 53 but the next two toolpaths should be 63 and 73 but remain 53.

 

Thanks,

Rick

0 Likes
Message 4 of 7

Vasago
Advocate
Advocate

{ncprogram}.nctoolpath[0-n].tool.number

print = entity('ncprogram', '<ncprogram name>').nctoolpath[0].tool.number

0 Likes
Message 5 of 7

rmiller
Contributor
Contributor

 


@Vasagowrote:

{ncprogram}.nctoolpath[0-n].tool.number

print = entity('ncprogram', '<ncprogram name>').nctoolpath[0].tool.number


This doesn't seem to work in my setup sheet template either.

0 Likes
Message 6 of 7

dans4DQYP
Advocate
Advocate
Accepted solution

This is mine it seems to work for 2018

0 Likes
Message 7 of 7

rmiller
Contributor
Contributor

@dans4DQYP

I had tried {nctoolpath}.FixtureOffset.Name  and it didn't work, but {nctoolpath.FixtureOffset.Name} as you showed did. So I changed {nctoolpath}.ToolNumber to {nctoolpath.ToolNumber} and got the tool numbers I was looking for. Placement of those brackets makes all the difference.

 

Thanks for the help,

Rick

0 Likes