AutoCAD .NET :: GetSystemVariable Gets Variable From Wrong Drawing In 2013
Dec 15, 2012
We are in the middle of implementing AutoCAD 2013 to replace 2010 so at the moment I am converting / modifying our own code to suit the AutoCAD 2013 API.
One of our routines collects data from drawings (drawings are not fysically opened in AutoCAD) using the system variables 'LimMin' and 'LimMax' in order to collect all objects drawing within the titleblock.
Only the objects in the titleblock area need to be processed and this gives the engineers also the opportunity to add extra information outside the titleblock. We have used this method in 2007 and 2010 releases of AutoCAD succesfully.
But with AutoCAD 2013 I have run into a snag. As said does this routine not fysically open the drawing in AutoCAD it merely adresses the 'autocad database' so to speak. It seems that 2013 selects the variables from an opened active drawing instead of the 'opened' drawing by the routine. What do I need to modify in the lines of codes stated above to get this rouine up and running?
The workaround for this moment is to skip the collection in the titleblock area al together and select all objects in the entire drawing which does not speed up things very much
Trying to apply a variable radius to a part. The direction of the radius is wrong (pointed back in toward the part) and I cant get it to go the other way. As long as all the fillets along the curve are the same radius, the fillet will compute, but if I make them vary, then it fails.
Is there a variable I can pull to get the coordinate system zone assigned to the drawing? For instance, if my drawing is in UTM coordinates, zone 13, is there a (retrievable) variable set to "UTM27-13"?
I have set may MENUBAR system variable value to 1, But whenever i exit from autocad 2013 this value changes automatically back to 0 and the pulldown menu disappears.
Also i have attached the screenshots of autocad after manually changing menubar varable with pulldown menu vissible and after exiting and starting autocad again to see the screen without pulldown menu and variable changed to 0 again.
I cannot get the menubar variable to stick. everytime I start autocad I have to re-enter the command to have the menubar back. I am sure this is something stupid I am over looking.
I have custom pull down menus that I use for hatching. The reason I use this method instead of the tool pallet or the regular hatch toolbar is that I have quick access to multiple commonly used hatch patterns already set up with scales and directions and can pick multiple objects at once.
The only problem is I loose the associativity when stretching an object. It's Associative if I use the hatch command or the tool pallet. I had no problem with this method when using AutoCAD 2010. Is there some system variable setting that has changed?
My office is launching 2013 and the one issue that is really bothering me is the selection preview variable keeps getting reset <0> and I cannot figure out what is causing it?
I like to have the selection variable set to <3> and my selection cycling set <-2> so I can hold down shift and tap space bar to visually cycle through overlapping objects but this is very difficult to do when the selection preview variable resets to none <0>.
I think the new box popup in this release is very bothersome and would like to figure this glitch out.
I make a drawing1 with layers on it and then I made another drawing2. I Xref the drawing 1 as my reference , where I put the column of the building. When I open drawing 2 referencing drawing 1, my scale is different. my inches scale is becoming feet when referencing in drawing 2. I put the same LTscale and limits in both drawing
I use a building key for building reference (inserted as a xref into the individual drawings) in many of my drawings. I have layers for specific areas and rooms. I turn off the layers on the appropriate drawings (if the drawing is for room 301, I make sure all other layers are off and only 301 are on).
My problem come when I add a new layer to the key and since the key in xrefd into many drawings it shows up as always being on.
This makes to have to go back and do a little bit of layer control each time I change the xref.
VISRETAIN=1 only keeps the layers set to last save and everything added to the xrefs are basically taken from the xref (color, visibility, etc). Is there a way to set a variable so that you have to check the new xref layers before they show up on the referenced drawing?
I've recently installed AutoCAD 2014 and noticed when I try to select objects behind a solid (in wireframe) it will select the face of the solid and I am not able to select any objects behind that solid. In the past, while in wireframe, I wasn't able to select a solid unless an edge was selected. Now if I click on a face it will select that item, which is not allowing me to select anything behind it. Is there a variable to change the way a solid is selected while in wireframe?
I was attempting to troubleshoot some performance issues I've been having using process monitor. I noticed that AutoCAD 2013 is constantly checking for an XREFSTATE System variable, that according to documentation is stored in the registry. however, process monitor is reporting this variable as not found. So that leads me to a couple questions:
why is it constantly checking the status of the variable
why is the variable not located within the path it is looking for.
I am writing a LISP program to generate development of surfaces. Once the entire drawing is completed, I want that the input data to be displayed on drawing window as text.
Every time I use a command which opens a window, like _options or _open, the window appears on my second monitor. What can I do to make the windows open on the same monitor as the primary window?
I've recently begun using the "DWG to PDF.pc3" plotter/printer for making PDF files of my AutoCAD 2013 drawings because it's quite a lot faster than using the "Adobe PDF" plotter/printer that I have been using up to now.
But today I noticed something very odd: After I create a PDF file using the "DWG to PDF.pc3" plotter/printer, when I go into Windows Explorer (the file manager) and click on a file to select it, the file shows the "Date Created" and "Date Modified" as being "11/27/2007 9:11 AM" even though the file was actually created today, 4/18/2013 at 3:01 PM. If I right-click the file and select Properties, the General tab shows this incorrect date and time for the Created and Modified data, as well as the Accessed data, which you can see in screen capture 1 attached.
Before you ask the obvious: yes, my computer's date and time ARE set correctly. This is as if AutoCAD has some sort of "internal" clock that's set to the wrong time, the wrong dthe wrong year, and is assigning that wrong information to the finished PDF file... very weird.
And then opening the file in Acrobat itself, when I click on the File menu and then on Properties, the Document Properties window appears and shows the data contained within the file: and it is the CORRECT Created and Modified date & time! You can see this in screen capture 2, also attached.
So it seems as if the "DWG to PDF.pc3" printer/plotter is creating the file correctly, and placing the correct Date and Time data inside the file for Acrobat's use, but is coming up with this bizarre time on a date over 5 years in the past as the data that Windows "sees" in the file's Properties.
I'm simply baffled by this. It wouldn't bother me so much except for the fact that we make many corrections and updates to files without changing or "dating" the file name, and my boss frequently asks me to sort the files within a folder by the Date Modified, so we can find the latest revision.
I have blocks in a drawing that were made using the 'retain' method. WHen I go to insert the block I cannot see the block preview at the crosshair cursor. The block only becomes visible once I have clicked the left mouse key at the insertion point.
This means I can't rotate it either as I can't see it until I have clicked to place it.
Which system variable (And what setting) will allow me to see the block as I'm inserting it?
Set up the settings tab in Toolspace to always skip to display the drawing that I'm not working in? I just spent half an hour creating expressions in the wrong drawing,
I am editing a drawing i have inherited from the previous drafter who is no longer working here. this drawing references 2 other drawings. one is the title block, the other is the engineering drawing. both of these drawings have white objects in them, namely, some text and some solid hatching.
Instead ot those white objects appearing as white in this drawing, they are appearing as a grey colour. i have double and triple checked that these objects are coloured by layer and the layer is white in both of the xrefs. they appear white in the xrefs but not in the final drawing.
since we are using colour dependent line weights in our printing, i would like to get this colour problem sorted.
is there a system variable to shut off the layer state preview? I would prefer to use the drop down and select the desired layer state, the preview slows this process down.
I am having an issue with drawing files. I have set views on assembly files. But on the idw file it is showing wrong views... And this is making problems when i am trying to give dimensions. I have attached jpg files.
We had a project folder named A. We created a new project folder named B and copied the AutoCad files from A to B. On one of our workstations if you open a drawing from folder B, then click save as, the dialog opens to folder A.
Not a big problem, but since the files are named the same it can be confusing...
Recently upgraded to Civil 3D 2013 and drawings opened up fine. Now today any drawing that opens shows the plan view as last saved but then after loading takes the drawing and shifts it into a 3d view similar to a crossection. Is there a setting somewhere that has been changed? I noticed after a windows 7 update was preformed.
I'm attempting to write a batch script to add some layers to a pre-existing image and save a copy. I've gone through the tutorial, and have run the demo code from Basic_Batch with no errors, but my (what I think of as simple) script throws an "Error: eval: unbound variable: ?" It also seems to cascade the error to other scripts, as I then get "unmatched parentheses: 2" errors from what I assume to be the script immediately following my own during Script-Fu load. This occurs whether running from batch or clicking "Refresh Scripts" from the Script-Fu menu.
What I could find on this forum and Google suggests that I may be required to 'define' one or more of my variables before using it, but for the life of me, I can't figure out which one that would be, and the error (reporting that '?' is undefined!?) I've quintuply (probably more ~_^) checked my parenthesis matching, but they look fine to me.
In case this was an encoding issue, I've tried saving my .scm file as both UTF-8 and ANSI. I should also note that I'm running Windows 7 x64 in English-US.
I have this heavy issue, i can't send to back a line, an object or a hatch under other lines. In 2012 i used this feature a lot but in 2013 it's not working very much, maybe 1 time out of 10 and i absolutely can't say why.
HPDRAWORDER = 1 seems to work with a new hatch.. but i can't redraw everything.
Let's say i put an entire floor plan into block then draw over it. (I don't want to start a Xref discussion please) i can't send the entire bloc to the back.I used to do that with 2012, 2008, 2007.. but it's 2013 it's not working, is there a way to correct that?
I recently added 2 monitors to my set up to bring my total to 3. I am trying to figure out the best way to work on one drawing, with 2 differant veiws on each of the 2 main screens.
I would like my main screen to have the plan view and the second monitor to have an isometric veiw (or whatever I need at the time) of the same drawing. Is there a way to have the same drawing opened up in another window, in one session of Autocad 2013. One on the main screen and one on the secondary.