Example #1
0
        Stream(ArrayList data, PublishSheetEventArgs args)
        {
            data.Add(new Snoop.Data.ClassSeparator(typeof(PublishSheetEventArgs)));

            data.Add(new Snoop.Data.Bool("Are lines hidden", args.AreLinesHidden));
            data.Add(new Snoop.Data.Bool("Are plotting lineweights", args.ArePlottingLineWeights));
            data.Add(new Snoop.Data.Bool("Are scaling lineweights", args.AreScalingLineWeights));
            data.Add(new Snoop.Data.String("Canonical media name", args.CanonicalMediaName));
            data.Add(new Snoop.Data.String("Configuration", args.Configuration));
            data.Add(new Snoop.Data.Database("Database", args.Database));
            data.Add(new Snoop.Data.Double("Display max X", args.DisplayMaxX));
            data.Add(new Snoop.Data.Double("Display max Y", args.DisplayMaxY));
            data.Add(new Snoop.Data.Double("Display min X", args.DisplayMinX));
            data.Add(new Snoop.Data.Double("Display min Y", args.DisplayMinY));
            data.Add(new Snoop.Data.Double("Drawing scale", args.DrawingScale));
            data.Add(new Snoop.Data.Object("DWF 3D navigation tree node", args.Dwf3dNavigationTreeNode));
            data.Add(new Snoop.Data.Double("Effective plot offset X", args.EffectivePlotOffsetX));
            data.Add(new Snoop.Data.Double("Effective plot offset Y", args.EffectivePlotOffsetY));
            data.Add(new Snoop.Data.Double("Effective plot offset X device", args.EffectivePlotOffsetXDevice));
            data.Add(new Snoop.Data.Double("Effective plot offset Y device", args.EffectivePlotOffsetYDevice));
            data.Add(new Snoop.Data.Bool("Is model layout", args.IsModelLayout));
            data.Add(new Snoop.Data.Bool("Is plot job cancelled", args.IsPlotJobCancelled));
            data.Add(new Snoop.Data.Bool("Is scale specified", args.IsScaleSpecified));
            data.Add(new Snoop.Data.Double("Layout bounds max X", args.LayoutBoundsMaxX));
            data.Add(new Snoop.Data.Double("Layout bounds max Y", args.LayoutBoundsMaxY));
            data.Add(new Snoop.Data.Double("Layout bounds min X", args.LayoutBoundsMinX));
            data.Add(new Snoop.Data.Double("Layout bounds min Y", args.LayoutBoundsMinY));
            data.Add(new Snoop.Data.Double("Layout margin max X", args.LayoutMarginMaxX));
            data.Add(new Snoop.Data.Double("Layout margin max Y", args.LayoutMarginMaxY));
            data.Add(new Snoop.Data.Double("Layout margin min X", args.LayoutMarginMinX));
            data.Add(new Snoop.Data.Double("Layout margin min Y", args.LayoutMarginMinY));
            data.Add(new Snoop.Data.Double("Max bounds X", args.MaxBoundsX));
            data.Add(new Snoop.Data.Double("Max bounds Y", args.MaxBoundsY));
            data.Add(new Snoop.Data.Double("Origin X", args.OriginX));
            data.Add(new Snoop.Data.Double("Origin Y", args.OriginY));
            data.Add(new Snoop.Data.Double("Paper scale", args.PaperScale));
            data.Add(new Snoop.Data.Double("Plot bounds max X", args.PlotBoundsMaxX));
            data.Add(new Snoop.Data.Double("Plot bounds max Y", args.PlotBoundsMaxY));
            data.Add(new Snoop.Data.Double("Plot bounds min X", args.PlotBoundsMinX));
            data.Add(new Snoop.Data.Double("Plot bounds min Y", args.PlotBoundsMinY));
            data.Add(new Snoop.Data.ObjectId("Plot layout ID", args.PlotLayoutId));
            data.Add(new Snoop.Data.Object("Plot logger", args.PlotLogger));
            data.Add(new Snoop.Data.String("Plot paper unit", args.PlotPaperUnit.ToString()));
            data.Add(new Snoop.Data.String("Plot rotation", args.PlotRotation.ToString()));
            data.Add(new Snoop.Data.String("Plot to file name", args.PlotToFileName));
            data.Add(new Snoop.Data.String("Plot to file path", args.PlotToFilePath));
            data.Add(new Snoop.Data.String("Plot type", args.PlotType.ToString()));
            data.Add(new Snoop.Data.Double("Plot window max X", args.PlotWindowMaxX));
            data.Add(new Snoop.Data.Double("Plot window max Y", args.PlotWindowMaxY));
            data.Add(new Snoop.Data.Double("Plot window min X", args.PlotWindowMinX));
            data.Add(new Snoop.Data.Double("Plot window min Y", args.PlotWindowMinY));
            data.Add(new Snoop.Data.Double("Printable bounds X", args.PrintableBoundsX));
            data.Add(new Snoop.Data.Double("Printable bounds Y", args.PrintableBoundsY));
            data.Add(new Snoop.Data.Bool("Publishing to 3D DWF", args.PublishingTo3DDwf));
            data.Add(new Snoop.Data.Double("Steps per inch", args.StepsPerInch));
            data.Add(new Snoop.Data.String("Unique layout ID", args.UniqueLayoutId));
            data.Add(new Snoop.Data.String("View plotted", args.ViewPlotted));
        }
Example #2
0
        CollectEvent(object sender, CollectorEventArgs e)
        {
            // cast the sender object to the SnoopCollector we are expecting
            Collector snoopCollector = sender as Collector;

            if (snoopCollector == null)
            {
                Debug.Assert(false);    // why did someone else send us the message?
                return;
            }

            // see if it is a type we are responsible for
            AboutToBeginPublishingEventArgs aboutBeginPub = e.ObjToSnoop as AboutToBeginPublishingEventArgs;

            if (aboutBeginPub != null)
            {
                Stream(snoopCollector.Data(), aboutBeginPub);
                return;
            }

            AboutToBeginBackgroundPublishingEventArgs aboutBeginBgPub = e.ObjToSnoop as AboutToBeginBackgroundPublishingEventArgs;

            if (aboutBeginBgPub != null)
            {
                Stream(snoopCollector.Data(), aboutBeginBgPub);
                return;
            }

            PublishEventArgs pubEvent = e.ObjToSnoop as PublishEventArgs;

            if (pubEvent != null)
            {
                Stream(snoopCollector.Data(), pubEvent);
                return;
            }

            BeginPublishingSheetEventArgs beginSheetArgs = e.ObjToSnoop as BeginPublishingSheetEventArgs;

            if (beginSheetArgs != null)
            {
                Stream(snoopCollector.Data(), beginSheetArgs);
                return;
            }

            BeginAggregationEventArgs beginAggrArgs = e.ObjToSnoop as BeginAggregationEventArgs;

            if (beginAggrArgs != null)
            {
                Stream(snoopCollector.Data(), beginAggrArgs);
                return;
            }

            PublishSheetEventArgs pubSheetArgs = e.ObjToSnoop as PublishSheetEventArgs;

            if (pubSheetArgs != null)
            {
                Stream(snoopCollector.Data(), pubSheetArgs);
                return;
            }

            PublishEntityEventArgs pubEntityArgs = e.ObjToSnoop as PublishEntityEventArgs;

            if (pubEntityArgs != null)
            {
                Stream(snoopCollector.Data(), pubEntityArgs);
                return;
            }

            PublishUIEventArgs pubUiArgs = e.ObjToSnoop as PublishUIEventArgs;

            if (pubUiArgs != null)
            {
                Stream(snoopCollector.Data(), pubUiArgs);
                return;
            }

            Dwf3dNavigationTreeNode dwf3dNavNode = e.ObjToSnoop as Dwf3dNavigationTreeNode;

            if (dwf3dNavNode != null)
            {
                Stream(snoopCollector.Data(), dwf3dNavNode);
                return;
            }

            DwfNode dwfNode = e.ObjToSnoop as DwfNode;

            if (dwfNode != null)
            {
                Stream(snoopCollector.Data(), dwfNode);
                return;
            }

            EPlotAttribute eplotAttr = e.ObjToSnoop as EPlotAttribute;

            if (eplotAttr != null)
            {
                Stream(snoopCollector.Data(), eplotAttr);
                return;
            }

            EPlotProperty eplotProp = e.ObjToSnoop as EPlotProperty;

            if (eplotProp != null)
            {
                Stream(snoopCollector.Data(), eplotProp);
                return;
            }

            EPlotPropertyBag eplotPropBag = e.ObjToSnoop as EPlotPropertyBag;

            if (eplotPropBag != null)
            {
                Stream(snoopCollector.Data(), eplotPropBag);
                return;
            }

            EPlotResource eplotResource = e.ObjToSnoop as EPlotResource;

            if (eplotResource != null)
            {
                Stream(snoopCollector.Data(), eplotResource);
                return;
            }
        }
Example #3
0
 private void Publisher_BeginSheet(object sender, PublishSheetEventArgs e)
 {
     //throw new NotImplementedException();
 }
Example #4
0
 private void Publisher_BeginSheet(object sender, PublishSheetEventArgs e)
 {
 }