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:

BijuGeorge

Verified Members
  • Posts

    36
  • Joined

  • Last visited

    Never

Posts posted by BijuGeorge

  1. Roger,

     

    If the function get_ttfont_number only returns(or adds) a true type font from the list, then which function should I use to get the number of the default fonts that are present in the list? Or should I hardcode knowing that these fonts always have the same number(e.g the Roman font has number 1 always)?

     

    And I am positive about the second problem.I've checked it again. Can it be due to different version number? My version is X2(11.0.3.25)

  2. Hi all,

     

    I am using 'get_ttfont_number' function to get a font number. Its mentioned here

     

    http://www.emastercam.com/ubb/ultimatebb.p...t=000002#000005

     

    It takes a font name and adds it to the font list in Drafting Options(Create->Drafting->Drafting Options) dialog box. I have two questions regarding it.

     

    First Q:This function doesn't return the number of the font even if the font is already present in the list. e.g font name "Stick" is already there in the list but when I call get_ttfont_number("Stick", FALSE, FALSE) it adds another entry in the list with name "Stick" and returns 8, instead of 0. Isn't it the wrong behaviour?

     

    Second Q: If I do this:

    a)Open Create->Drafting->Create note...

    b)Click on properties to open the Note Text dialog box

    c)On note text dialog box I add a new font by clicking 'Add True Type'(say I added Arial font)

    d)Click ok

    e)Type something in the note text dialog box

    f)Click ok

    g)Make a note in the drawing area

    h)Start a new file

    i)Do steps 'a' to 'g' again with a different font in step 'c'(say Courier New)

     

    I don't get the new note in Courier New but in Arial with bad character spaces. Is it a bug?

     

    Thanks

  3. Takashi,

     

    I am afraid that would not be a good approach because my CHook creates other entities as well besides text, and as the whole process of creating entities is very fast I don't think checking the time when they were created would be a good way of checking if the entities comprise the text. Thanks for your reply though.

  4. Hi,

     

    I want to create a text engraving through my CHook. I am able to create the text using either as told here

     

    http://www.emastercam.com/ubb/ultimatebb.p...t=000355#000001

     

    or here

     

    http://www.emastercam.com/ubb/ultimatebb.p...t=000002#000000

     

    The first method creates the text but I don't know how to get a pointer to all the line and arc entities of the text, so that I can add a contour toolpath on it. The second method creates the whole text as a single entity and I have the pointer to the entity, but before I can add a contour toolpath I'll have to break it into lines and arcs and I don't know how to do that. So please either tell me:-

     

    1)How do I get a pointer to all the line and arc entities of a text that I've just created?

     

    or

     

    2)How do I break a (v8_note) note entity into lines and arcs? Is there a function that takes a pointer to v8_note entity and gives a set of pointers to all the broken lines & arcs?

     

    Thanks in advance.

  5. Yes I am talking about Macros in CNC machines not the ones used in Mastercam itself to automate tasks. I want to know what settings you change in Mastercam so that when you create the NC code there are Macro statements in it. Somewhere on the forums I read that you can use custom drill cycles for that, is that true? I am a novice, so my talk may sound crap to you but thank you guys for responding. Please lead me in the right direction.

  6. I am using MastercamX2. I am basically a developer and I don't have any experience with machining. I am developing a CHook(a kind of plugin) for MastercamX2 and one of our customers wants to use macros and I have no idea what a macro does, I thought you guys might know.

  7. Hi,

     

    I am creating a new operation from my C-Hook and I am setting the coolant to either OFF, FLOOD, MIST or THRU-TOOL using CFLAG_COOL_OFF, CFLAG_COOL_FLOOD etc. as was advised here:

     

    http://www.emastercam.com/cgi-bin/ultimate...t=000285#000000

     

    Using this method the coolant is set only for some of the machines e.g. it works for "GENERIC HAAS 4X MILL.MMD", "MILL DEFAULT.MMD" and other GENERIC mills but for others it doesn't work e.g. for "MILL 3-AXIS HMC.MMD" and all 3,4, and 5 axis it doesn't. (I am using only milling machines)

     

    The coolant dialog box for these two machine types also differs greatly from each other, can it be due to that. What should I do to set the coolant for any kind of machine?

     

    Thanks

  8. If you want you can turn these warning messages off by defining "_CRT_SECURE_NO_DEPRECATE" in your preprocessor definitions but if you are concerned about security(hackers, crackers exploiting buffer overflows in your code) and otherwise too if you want your code to be robust you should use the more secure versions of these functions.

  9. Pete,

     

    Thank you so much for your elaborate replies. Well, the code you've written works for me too now(only after choosing some machine from 'Machine Type' menu). The change which I made after which the code started working was that I made a new C-Hook project and copied the old files from the previous one. I guess my project was being linked to old sdk because there were files of old sdk littered around in the previous version of the project.

     

    Thanks

  10. Hi MasterShake,

     

    After your post I tried this:

     

    SetToolLibrary("MILLTOOLSTOOLS.TOOLS");

    list_manager(TL_ID, const_cast(ToolLibraryStr()), LSTMGR_GET, (void**)&tl_head);

     

    and it worked, but I don't know why can't the code below work for me?

     

    list_manager(TL_ID, "MILLTOOLSTOOLS.TOOLS", LSTMGR_GET, (void**)&tl_head);

     

     

    Thank you for giving valuable information.

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...