Karl@CP PISTONS
-
Posts
300 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Downloads
Store
eMastercam Wiki
Blogs
Gallery
Events
Posts posted by Karl@CP PISTONS
-
-
Yes my FT file looks similar ( also similar to existing .net ft files i.e. atp.ft which DOES show in the all commands list ) here is in entirety:
###############################################################################
# NET-Hook function table
###############################################################################
#
# Name : UHM_Open.ft
# NETHook : UHM_Open.dll
# Date :
# Author : K Stickel
# Notes : Rename all YOUR_NETHOOK with the name of this project
# Language : VB.NET
#
###############################################################################
#######################################
# ASSIGN A UNIQUE NAME FOR THIS NETHOOK
#######################################
APPLICATION "UHM_Open"######################
# NET-Hook PATHS
######################
#
# Update paths below to match your install path and project name.
# you can use folders if you wish to have your NETHook in a CHooks sub folder
# just make sure to edit this path to match.
FUNC_DLL "CHOOKS\UHM_Open.dll"
RES_DLL "SAME"
dnRES_NAME "UHM_Open.NETHook"
CATEGORY "CP-Custom"##############################################################################
# Public functions here
##############################################################################
#
# The main system entry point
FUNCTION NET "Run"
dnSPNG "Run16"
dnLPNG "Run24"
dnTIP "UHM Open"
END_FUNCTION#
# EOF
-
Sorry, I must me missing something. Only some of the c-hooks supplied by CNC systems show in the list, and NONE of mine Can I just add the info from the FT file into the MC_chooks.ft file?
-
I did switch this over to .net and a custom c-hook. Works great,
How can I add this c-hook (or any custom one) onto the toolbar? I looked in the commands from add-ins. List shows all the Mastercam C-Hooks but none of the custom c-hooks? They are all in the mastercam chook folder with the corresponding FT file??
-
Is there a way using the script engine to search for a file in multiple directories? I have this working in the script:
Set FileList = CreateObject("System.Collections.ArrayList")
If FSO.FileExists(Directory & JobNumber & ".MCAM") Then '// File found FileList.add (Directory & JobNumber & ".MCAM") End If
But I really need it to search the sub folders and return all the files found. Is this possible?
Thanks in advance.
-
If you need deep grooves look at wheel turning tools. Mostly made for aluminum but with correct insert could cut anything. Iscar was brand I used many years ago.
- 1
-
I did a complete uninstall including manually removing the shared directory and the program files folder ( both kept after uninstall for some reason ). Fresh install including 2 updates after installation still have no way to add machines to the list...... Lots of machines in the folder just none in the machine manager list. I cut and pasted the paths to make sure I was in the correct folder so have no idea what's going on.
Anyone have any more suggestions?
-
This is a fresh install and yes there are loads of files in the 2019 directory. I will try to rename the config files and restarting to see if that helps.
-
The machines in this directory are "factory" installed. Do I need to run the wizard on the 2019 folder after a clean install?
-
Anybody have a workaround for 2019 not allowing me to add machines to the machine list? When I go to manage list it only shows the default machines. See attached screen shots as there are many machines in the folder but they do not show allowing me to add them.
This is the second install that has done this.
Thanks
-
Anybody have a workaround for 2019 not allowing me to add machines to the machine list? When I go to manage list it only shows the default machines. See attached screen shots as there are many machines in the folder but they do not show allowing me to add them.
This is the second install that has done this.
Thanks
-
Thanks for all the help Roger. I have it parsing all the *FT files and extracting the "Application name" to populate the list box. And script or Application firing works just fine.
My next step will be to have an INI file to add only script / programs that each user wants / needs.
It's been a learning curve but glad I finally have a few days to actually work on this.
-
I have ran into something that is puzzling me with this project.
It seems that the Application to be run ( as found in the ft file ) is case sensitive and that the app name does not always match the DLL name with regards to the case.
As of now now the list is populated with the .DLL file name as found in the c-hook folder. If the application name exactly matches the dll file name then all works as it should.
If that's is true my workaround would be to create a collection of the *.FT files then parse each one for the application name. This name would feed the menu list to fire the correct application.
This seems like a convoluted way to accomplish this task. Am I on the right path or is there a better / different way to get a list of all the Application Names from all the FT files in the c-hook directory?
-
Thanks for the prompt replies
Colin, I think at this time that it is important to have the scripts run from within the c-hook. The ultimate goal of the app is to check the user name and display a set of scripts / c-hooks depending on the user.
Roger, I'll have to play with this, I thought the application was always MasterCam but seems it can be any valid DLL that has a valid FT file. Is this correct?
-
Yea, I've had some free time to work on this. So the next question I have is how to run an existing C-hook (.dll) file from within the menu c-hook. I have all the scripts and c-hooks from a custom folder displayed in a window. The scripts run when double clicked or selected and run button clicked. I looked at the ExternalAppsManager and found the postFT/RunFT but do not know how to feed it the program to run ( assuming this is even close to the right path ).
-
That was the key Thanks Rodger.
-
i must be missing something as thebrowser for spline.endpoint1 and endpoint2 shows this:
Public Overrides ReadOnly Property EndPoint1 As Mastercam.Math.Point3D
What would be the correct way to create a point at the endpoints of the selected spline?
-
Hi, Can anyone help me figure out why this code is failing with error:
Dim pt As New PointGeometry(New Point3D(Spline.EndPoint1))
Object Browser shows that the endpoint1 should return a point3d - Public Overrides ReadOnly Property EndPoint1 As Mastercam.Math.Point3D)
This is in Mastercam 2018
Error is:
Overload resolution failed because no accessible 'New' accepts this number of arguments.
-
I've been asked to look over the specs for a new lathe for our shop we may get. I've never used a Doosan Lathe so am looking for input as to reliability , rigidity etc... Has a standard fanuc control so that part should be ok. We will be getting the dual spindle + live tooling LYNX 2100 series . Anybody here have experience with these machines?
Any inputs are welcome.
Thanks
-
Thanks for the input. Any advise as to brands that are reliable? Are they powerful enough for milling with a .25 endmill?
-
It would be a high speed option.
Would the High pressure coolant system filtration be adequate?
-
Hello All,
I've been asked to research the pros and cons of adding a coolant driven mill spindle on one of our lathes. Does anyone here use these? The first question I had is are they reliable or does coolant dissolve everything?
Any advise is welcome.
Thanks
Karl
-
Please I'd love to have that c-hook. Is it available as a .net solution for me to study?
-
Yes sometimes it is single and sometimes it is chains. The model is imported with edge curves but I need to move the selected to a specific level and convert them from splines to actual curves.
-
Thanks for the reply Mick, Here is the basic portion of the script that I'm running. We have a lot of little scripts that we run so I was trying to create a simple menu system where the user simply selects a script from a list box, the the script runs and the c-hook exits. Like you mentioned if script does not need the user it all works fine. I might use this as a reason to play more with the .Net and have the list box filled with VBS and/or Chooks with out the user needing to know which is which. Most of the script are very simple so maybe convert them all to c-hooks. Like all of our projects here the only limit is time.
Any pointers that could help would be helpful as I am very new to this C-Hook stuff
Call GetChain ("Select Edge Curves for Pin Boss Milling.") '// prepare to change attributes
'// Loop thru selected curves and set attribs
Do
Call SetEntityColor (NewColor)
Call SetEntityLevel (NewLevel)
'//SetEntityStyle(NewStyle)
bRet = MoveForwardOnChain()
If bret = false then
bret = MoveToNextChain
End if
Loop While bRet
FreeChains()
Vb Script File List
in Mastercam C-Hook, NET-Hook and VBScript Development
Posted
First off thanks all of the above who replied and helped out. The icons showed up in the all commands section now..
But, how do I get tMastercam to show the name as it is only just an icon without a description? Also when they are added to the toolbar the tool tip does not show up on mouse hover, should it?