예제 #1
0
 public void SetXDataForMainDescription(Handle handle)
 {
     XDataCollection descriptionSignXData = new XDataCollection()
     {
         new XData("skd", 1040, 0),
         new XData("l2p", 1040, barLength),
         new XData("l1p", 1040, barLength),
         new XData("g_d", 1000, signType),
         new XData("kom", 1000, "\u0020"),
         new XData("dds", 1040, scale),
         new XData("typ", 1070, 1),
         new XData("ilp", 1070, barsAmount),
         new XData("ilw", 1070, tiersAmount),
         new XData("sko", 1040, spanStep),
         new XData("sre", 1040, barDiameter),
         new XData(barNumberRecordName, 1000, "bw"),
         new XData(opNumberRecordName, 1000, "bw"),
         new XData("pro", 1000, "sys01-v4"),
         new XData("nop", 1070, operationNumber),
         new XData("npo", 1070, barNumber),
         new XData("zn1", 1000, "bw"),
         new XData("zna", 1000, "zn1")
     };
     SetXData(handle, descriptionSignXData);
 }
예제 #2
0
 private void SetXData(Handle handle)
 {
     XDataCollection xdata = new XDataCollection()
     {
         new XData("COKOLWIEK", 1000, "MIEJSCE NA TWOJĄ REKLAMĘ"),
         new XData("sko", 1040, spanStep),
         new XData("sre", 1040, barDiameter),
         new XData("ilp", 1040, firstBarLine.StartPoint.NumberOfBarsToPoint(lastBarLine.StartPoint,
         spanStep.Value))
 };
     xda.SetXData(handle, xdata);
 }
예제 #3
0
 public void SetXDataForBarLine(Handle handle)
 {
     XDataCollection barLineXData = new XDataCollection()
     {
         new XData("g_d", 1000, signType),
         new XData("sko", 1040, spanStep),
         new XData(barNumberRecordName, 1000, "bw"),
         new XData(opNumberRecordName, 1000, "bw"),
         new XData("pro", 1000, "sys01-v4"),
         new XData("nop", 1070, operationNumber),
         new XData("npo", 1070, barNumber),
         new XData("zn5", 1000, "bw"),
         new XData("zna", 1000, "zn5")
     };
     SetXData(handle, barLineXData);
 }
예제 #4
0
        public void SetXData(Handle handle, XDataCollection extendedData)
        {
            Transaction trans = doc.TransactionManager.StartTransaction();
            using (trans)
            {
                ObjectId objId;
                if (db.TryGetObjectId(handle, out objId))
                {
                    DBObject dbObj = trans.GetObject(objId, OpenMode.ForWrite);
                    ResultBuffer rb = new ResultBuffer();
                    foreach (XData xData in extendedData)
                    {
                        AddRegAppTableRecord(xData.AppName);
                        rb.Add(new TypedValue(1001, xData.AppName));
                        rb.Add(new TypedValue(xData.Code, xData.Data.ToString()));
                    }

                    dbObj.XData = rb;
                    rb.Dispose();
                    trans.Commit();
                }
            }
        }
예제 #5
0
 public void SetXDataForLineBetweenArrows(Handle handle)
 {
     XDataCollection lineBetweenArrosXData = new XDataCollection()
     {
         new XData("g_d", 1000, signType),
         new XData(barNumberRecordName, 1000, "bw"),
         new XData(opNumberRecordName, 1000, "bw"),
         new XData("pro", 1000, "sys01-v4"),
         new XData("nop", 1070, operationNumber),
         new XData("npo", 1070, barNumber),
         new XData("zn10", 1000, "bw"),
         new XData("zna", 1000, "zn10")
     };
     SetXData(handle, lineBetweenArrosXData);
 }
예제 #6
0
 public void SetXDataForArrow(Handle handle)
 {
     XDataCollection arrowXData = new XDataCollection()
     {
         new XData("g_d", 1000, signType),
         new XData("dds", 1040, scale),
         new XData(barNumberRecordName, 1000, "bw"),
         new XData(opNumberRecordName, 1000, "bw"),
         new XData("pro", 1000, "sys01-v4"),
         new XData("nop", 1070, operationNumber),
         new XData("npo", 1070, barNumber),
         new XData("zn11", 1000, "bw"),
         new XData("zna", 1000, "zn11")
     };
     SetXData(handle, arrowXData);
 }
예제 #7
0
 public void SetXDataForBarHolder(Handle handle)
 {
     XDataCollection descriptionSignXData = new XDataCollection()
     {
         new XData("g_d", 1000, signType),
         new XData("dds", 1040, scale),
         new XData(barNumberRecordName, 1000, "bw"),
         new XData(opNumberRecordName, 1000, "bw"),
         new XData("pro", 1000, "sys01-v4"),
         new XData("nop", 1070, operationNumber),
         new XData("npo", 1070, barNumber),
         new XData("zn12", 1000, "bw"),
         new XData("zna", 1000, "zn12")
     };
     SetXData(handle, descriptionSignXData);
 }