TheSwamp
September 08, 2010, 07:35:03 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Login Register  
Pages: [1] 2 3 ... 10
 1 
 on: Today at 06:44:11 pm 
Started by Bryco - Last post by Bryco
It works both ways in 2010
It has to this way in 2011
h.SetHatchPattern(HatchPatternType.PreDefined, sHatch);
h.PatternAngle = (double)acadApp.GetSystemVariable("hpang");

 2 
 on: Today at 06:41:05 pm 
Started by fro2001 - Last post by Bryco
The paperspace viewport always has the lowest objectid
and the first item in the paperspace block
using(Transaction tr = db.TransactionManager.StartTransaction())       
            {
                BlockTable bt = tr.GetObject(db.BlockTableId, OpenMode.ForRead) as BlockTable;
                BlockTableRecord PaperSpace = tr.GetObject(bt[BlockTableRecord.PaperSpace], OpenMode.ForRead) as BlockTableRecord;
                Viewport PaperSpaceVp=null;
                foreach(ObjectId id in PaperSpace)
                {
                    PaperSpaceVp = tr.GetObject(id, OpenMode.ForRead) as Viewport; 
                    break;
                }
                ed.WriteMessage(Environment.NewLine + PaperSpaceVp.Number.ToString());     
                tr.Commit();       
            }

 3 
 on: Today at 06:37:45 pm 
Started by T.Willey - Last post by T.Willey
In a program I'm writing, I change the UCS of the drawing.  I'm doing it all without commands, so to change the UCS back I have to create one if the current UCS is un-named.  If you dump a document, you will see something like ' ;   ActiveUCS = AutoCAD: Null object ID ' if the UCS is un-named, and I would like to return it to that, but I can't seem to figure out how to do it.  Right now I create a temporary UCS for both the current, and the one I will be using ( if I was smarter, than I would just rotate the items with a transformation matrix, based on the normal of the object I'm selecting ), and then delete them, but I can't delete the one that is current ( which I switch back to, which is the reason I can't delete it ).

Any help is appreciated.  The code has been done here before, but didn't work in my situation, so hence the rewrite.  Will post when this is figured out, if people don't mind me doing so.

Thanks in advance.

 4 
 on: Today at 05:36:34 pm 
Started by mohnston - Last post by CmdrDuh
personally, I disabled the UAC.

 5 
 on: Today at 05:34:09 pm 
Started by fro2001 - Last post by CmdrDuh
i haven't checked, but what about Layout2?  Would it be #2 or 4? or is it Layout.Viewport.Number?

 6 
 on: Today at 05:25:12 pm 
Started by xiaxiang - Last post by CAB
Thanks for the correction.  cool

 7 
 on: Today at 04:09:50 pm 
Started by mohnston - Last post by iCant
Well, it would make the life of a desk jockey a little more interesting if they released an AutoCAD for the Wii.

Don't forget to protect your system. Wear a wrist band.  smiley

 8 
 on: Today at 04:03:13 pm 
Started by mohnston - Last post by iCant
Quote from one of the security experts
Quote
Eric Johanson, security researcher: "If you look at the number of published vulnerabilities in software and the number of users and compare Windows versus Mac OS you will discover that Mac OS has far more published vulnerabilities per user than Windows does so I think the data pretty much speaks for itself."

What makes them think "vulnerabilities per user" is a meaningful metric?   huh

Good catch.

 9 
 on: Today at 03:53:38 pm 
Started by fro2001 - Last post by fro2001
Is the best way to distinguish the PaperSpace viewport from a "Floating Viewport" is the Viewport.Number

If so if safe to assume that for a PaperSpace Layout with one Floating Viewport

The Paperspace viewport  Viewport.Number = 1
And the  "Floating viewport" Viewport.Number = 2

Or if it has multiple floating viewports
The Paperspace viewport  Viewport.Number = 1
And the  "Floating viewport's" Viewport.Number >= 2




 10 
 on: Today at 03:33:48 pm 
Started by mohnston - Last post by sinc
Quote from one of the security experts
Quote
Eric Johanson, security researcher: "If you look at the number of published vulnerabilities in software and the number of users and compare Windows versus Mac OS you will discover that Mac OS has far more published vulnerabilities per user than Windows does so I think the data pretty much speaks for itself."

What makes them think "vulnerabilities per user" is a meaningful metric?   huh

Pages: [1] 2 3 ... 10
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!