/// <summary>
        /// Home for <see cref="PMLead"/> and options that affect all leads on <see cref="PMToolpath"/>
        /// </summary>
        /// <param name="toolpath"><see cref="PMEntity"/> to allow access to powermill macro</param>
        internal PMConnections(PMToolpath toolpath)
        {
            _toolpath = toolpath;

            LeadIn           = new PMLead(LeadTypes.LeadIn, _toolpath);
            LeadInSecond     = new PMLead(LeadTypes.LeadInSecond, _toolpath);
            LeadOut          = new PMLead(LeadTypes.LeadOut, _toolpath);
            LeadOutSecond    = new PMLead(LeadTypes.LeadOutSecond, _toolpath);
            FirstLeadIn      = new PMLead(LeadTypes.FirstLeadIn, _toolpath);
            LastLeadOut      = new PMLead(LeadTypes.LastLeadOut, _toolpath);
            LeadInExtension  = new PMLeadExtension(LeadTypes.LeadInExtension, _toolpath);
            LeadOutExtension = new PMLeadExtension(LeadTypes.LeadOutExtension, _toolpath);
        }
 /// <summary>
 /// <see cref="PMRamp"/> encapsulate the option that enables you to specify how the tool ramps into the stock.
 /// </summary>
 /// <param name="leadType"><see cref="LeadTypes"/> that <see cref="PMRamp"/> is based on</param>
 /// <param name="toolpath"><see cref="PMToolpath"/> to allow access to powermill macro</param>
 public PMRamp(LeadTypes leadType, PMToolpath toolpath)
 {
     _leadType = leadType;
     _toolpath = toolpath;
 }
示例#3
0
 /// <summary>
 /// Inserts the specified toolpath into this Boundary.
 /// </summary>
 /// <param name="toolpath">The toolpath to insert into this Boundary.</param>
 public void InsertToolpath(PMToolpath toolpath)
 {
     PowerMill.DoCommand("EDIT BOUNDARY '" + Name + "' INSERT TOOLPATH \"" + toolpath.Name + "\"");
 }
 public PMLeadExtension(LeadTypes leadInExtension, PMToolpath toolpath) : base(leadInExtension, toolpath)
 {
 }
示例#5
0
 /// <summary>
 /// Represent a Lead in <see cref="PMToolpath"/>.
 /// </summary>
 /// <param name="leadType"></param>
 /// <param name="toolpath"></param>
 internal PMLead(LeadTypes leadType, PMToolpath toolpath)
 {
     LeadType = leadType;
     Toolpath = toolpath;
     Ramp     = new PMRamp(leadType, toolpath);
 }