protected override IXDimension[] GetDimensions(IXCustomFeature feat)
        {
            var dispDimsObj = ((SwMacroFeature)feat).FeatureData.GetDisplayDimensions() as object[];

            if (dispDimsObj != null)
            {
                var dimensions = new IXDimension[dispDimsObj.Length];

                for (int i = 0; i < dispDimsObj.Length; i++)
                {
                    dimensions[i]  = new SwDimension(dispDimsObj[i] as IDisplayDimension);
                    dispDimsObj[i] = null;
                }

                return(dimensions);
            }
            else
            {
                return(null);
            }
        }
Beispiel #2
0
 public SwDimensionChangeEventsHandler(SwDimension dim, ISwDocument doc) : base()
 {
     m_Dim = dim;
     m_Doc = doc;
 }
Beispiel #3
0
 public SwDimensionChangeEventsHandler(SwDimension dim, IModelDoc2 model) : base()
 {
     m_Dim   = dim;
     m_Model = model;
 }