Welcome to the COE Discussion Forum! 

 

To participate in the discussion forum, you must be logged in to the website.  If you forget your login information, please contact COE Headquarters at coe@coe.org or (800) 263-2255.

If you are new to the COE Discussion Forum and would like to participate, please register.


Forum Highlight: CATIA V6

 

Get Answers to Your V6 Questions
Dassault Systèmes answers user questions about CATIA V6.  Discuss these answers and propose new questions with end users from around the world in the CATIA V6 Forum.

COE DISCUSSION FORUM
Subject: Generate aptsource interactively using script

You are not authorized to post a reply.   
Author Messages
SAMARINDER


29 Sep 2008 10:19 AM

Hi All,
I wrote a macro to generate aptsource. Aptsource, generated by this macro, is missing "FROM/.,.,." statement so I hard coded it inside my pptable.
Now I found that it does not process the COPY/TRACUT and some other options on Tool motions tab (please see attached image)
Is it intended behavior or does my macro need more work? Thanks for any help.
here is sample code of macro:
Dim manufacturingGeneratorData1 As ManufacturingGeneratorData
manufacturingAPTGenerator1.InitFileGenerator "APT", "C:\test.aptsource", manufacturingGeneratorData1
manufacturingAPTGenerator1.RunFileGenerator manufacturingGeneratorData1
manufacturingGeneratorData1.ResetAllModalValues

Thanks

ps I searched some related topics on this forum

http://www.coe.org/Collaboration/DiscussionForum/ActiveDiscussions/tabid/210/view/topic/forumid/10/postid/89047/Default.aspx

http://www.coe.org/Collaboration/DiscussionForum/ActiveDiscussions/tabid/210/view/topic/forumid/10/postid/91848/Default.aspx







Samarinder Singh
NC-Programmer/Tool Designer
JP_derome

29 Sep 2008 10:57 AM

Samarinder,

 

ManufacturingGeneratorData does not behave well with APT generation settings. Please refer to the following:

http://www-01.ibm.com/support/docview.wss?uid=swg1HD46819

Settings such as COPY/TRACUT, PPRINT, etc... are NOT taken into account by this function (which is to me is competely useless they supply this object)

Sorry but to my knowledge, we are stuck with the MFGbatch turtle process.

I my case, as a work-around, I use an external user-defined file that drives those settings

begin MFGBATCH
  let MFG_NC_DATA_TYPE = "*APT 2"
  let MFG_FORCE_COMPUTE = "*FCP"
  let MFG_REPLACE_NC_OUTPUT = "*REP Y"
  let MFG_STATEMENTS = "*PPR 111"
  let MFG_CIRCULAR_INTERPOLATION = "*CIR 2"
  let MFG_NC_DATA_FORMAT = "*FGO AXIS"
# Output 1 file per program
  let MFG_FILE_OPERATION = "*FOM 1"
# Output 1 file for all program
  #let MFG_FILE_OPERATION = "*FOM 3"
  let MFG_RAPID_START = "*SRP 1"
  let MFG_DOUBLE_PTS = "*PAC 1"
  let MFG_GOTO_TOOLCHANGE = "*RMT 1"
  let MFG_CYCLE_SYNTAX = "*STX Y"
  let MFG_POINT_FORMAT = "*NDX 11.5"
  let MFG_AXIAL_FORMAT = "*NDI 9.6"
  let MFG_RUN_COMMAND = "*RUN"
end

 

This file is locked to users (all the posts are formatted using those highly strict settings). This file is then read with a VB.net app that saves the CATProcess, rewrite a FT05 file (.bat) and launches the mfgbatch process.

/
*REA  C:\
*MOD  Test.CATProcess
*PRG  Manufacturing Program.1
*WRI  C:\
*MEM  Test_Manufacturing_Program_1.aptsource
*APT  2
*REP  Y
*CIR  2
*PPR  111
*AOF  N
*SRP  1
*RMT  1
*PAC  1
*NDX  11.5
*NDI  9.6
*RUN
/

It is very slow and I dream one day they will take out this "Permanent Restriction" flag.

JP

 


J-P Derome
SAMARINDER


29 Sep 2008 12:04 PM

JP,
Thanks for the explanation and workaround. I hate to use mfgbatch as it is the slowest slug just as you said,"stuck with the MFGbatch turtle process"


Samarinder Singh
NC-Programmer/Tool Designer
You are not authorized to post a reply.
Forums > COE Forums > MFG > Generate aptsource interactively using script



ActiveForums 3.6

    

401 North Michigan Avenue, Chicago, IL 60611-4267 | (312) 321-5153 | (800) COE-CALL (U.S.)