public static MaterialPriority FromBaseObject(BaseObject baseObj)
                    {
                        if (baseObj == null || baseObj.NativeObject == IntPtr.Zero)
                        {
                            return(null);
                        }
                        MaterialPriority obj = baseObj as  MaterialPriority;

                        if (object.Equals(obj, null))
                        {
                            obj = new MaterialPriority(CreatedWhenConstruct.CWC_NotToCreate);
                            obj.BindNativeObject(baseObj.NativeObject, "CMaterialPriority");
                            obj.IncreaseCast();
                        }

                        return(obj);
                    }
                    public BaseObject Create()
                    {
                        MaterialPriority emptyInstance = new MaterialPriority(CreatedWhenConstruct.CWC_NotToCreate);

                        return(emptyInstance);
                    }