Beispiel #1
0
        private void Draw_ASTRA_Joint_Load()
        {
            ASTRAArrowLine aline = null;

            for (int i = 0; i < AST_DOC.Joints.Count; i++)
            {
                aline = new ASTRAArrowLine();
                aline.SetUnRegisterDocument(doc);
                aline.setDocumentDefaults();

                list_joint_index.Add(doc.ActiveLayOut.Entities.Count);
                doc.ActiveLayOut.Entities.AddItem(aline);

                aline.EndPoint = AST_DOC.Joints[i].Point;

                aline.StartPoint.x = aline.EndPoint.x;
                aline.StartPoint.y = aline.EndPoint.y + 2.0d;
                aline.StartPoint.z = aline.EndPoint.z;


                if (i % 2 == 0)
                {
                    aline.visibility = vdFigure.VisibilityEnum.Invisible;
                }
                else
                {
                    aline.visibility = vdFigure.VisibilityEnum.Visible;
                }
            }
            doc.Redraw(true);
        }
Beispiel #2
0
        public void DrawASTRAArrowLine()
        {
            ASTRAArrowLine aline = null;

            for (int i = 0; i < astDoc.Joints.Count; i++)
            {
                aline = new ASTRAArrowLine();
                aline.SetUnRegisterDocument(doc);
                aline.setDocumentDefaults();
                doc.ActiveLayOut.Entities.AddItem(aline);
                list_index.Add(doc.ActiveLayOut.Entities.Count - 1);
                //aline.Text
                aline.EndPoint     = astDoc.Joints[i].Point;
                aline.StartPoint.x = aline.EndPoint.x;
                aline.StartPoint.y = aline.EndPoint.y + 4.5;
                aline.StartPoint.z = aline.EndPoint.z;
            }

            //doc.Redraw(true);
        }