Example #1
0
 /// <summary>
 /// after creation, need to regen doc to get
 /// corrent orientation info.
 /// </summary>
 public override void PostProcess()
 {
     if (this.NewFI != null && this.NewFI.IsValidObject)
     {
         FamilyEditor.SetOrientation(this.NewFI, this.Hand, this.Facing);
         this.OperationFinished = true;
     }
 }
Example #2
0
 /// <summary>
 /// after creation, need to regen doc to get
 /// corrent orientation info.
 /// </summary>
 public override void PostProcess()
 {
     if (this.NewFI != null && this.NewFI.IsValidObject)
     {
         if (facingRefPoint != null)
         {
             adjustFacingByRefPoint(this.NewFI);
         }
         FamilyEditor.SetOrientation(this.NewFI, this.Hand, this.Facing);
         //cuts needs to be inside post process
         //otherwise face change might affect creation of other new instances.
         HostUtils.CutUncutHost(this.NewFI, this.CutsHost);
         base.CutAndJoin();
         this.OperationFinished = true;
     }
 }
Example #3
0
        /// <summary>
        /// after creation, need to regen doc to get
        /// corrent orientation info.
        /// </summary>
        public override void PostProcess()
        {
            var doc = this.fs.Document;

            //delete temp views
            //delete here in case other creators use the same view
            if (this.tempViewPlan && this.viewPlan.IsValidObject)
            {
                doc.Delete(this.viewPlan.Id);
            }
            if (this.NewFI != null && this.NewFI.IsValidObject)
            {
                FamilyEditor.SetOrientation(this.NewFI, this.Hand, this.Facing);
                this.OperationFinished = true;
            }
        }