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.
Point2d min2d = (Point2d) Application.GetSystemVariable("LimMin");
Point2d max2d = (Point2d) Application.GetSystemVariable("LimMax");
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
View 4 Replies
ADVERTISEMENT
Nov 19, 2013
I just made the transition from AutoCAD 2009 to 2014 last week so I am unfamiliar with this version.
1-It's possible to have variables that are attached to the file?
2-It's possible to insert a block of ToolPalettes by "forcing" the layer and size with the variables created.
ex : block outlet created on the layer 0
Drawing A:
variable layer = power
variable size = 1/4
When I insert the block outlet from my Tool palettes it will be on the layer "PPOW" and perform a scale of "48"
Drawing B:
variable layer = LowPower
variable size = 3/8
When I insert the block outlet from my Tool palettes it will be on the layer"LPOW" and perform a scale of "32"
View 9 Replies
View Related
Sep 6, 2012
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.
View 2 Replies
View Related
Jun 21, 2012
At work I am using AutoOrtho (part of procad suite)
tell me which variable contains the scale of drawing?
View 2 Replies
View Related
Jun 7, 2013
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"?
View 1 Replies
View Related
Feb 17, 2012
I accidentally did my drawing in the xz plane and y is always 0, is there a way for me to get the drawing into the xy plane?
View 9 Replies
View Related
Nov 23, 2012
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.
View 1 Replies
View Related
May 3, 2012
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.
View 1 Replies
View Related
Oct 17, 2013
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?
View 5 Replies
View Related
Jul 3, 2012
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.
View 9 Replies
View Related
Dec 11, 2012
See the jpeg: 1.345 is a regular dimension, .875 is a hole note. The hole note is wrong.
(the part doesn’t have to be scrapped. It can be dis assembled, sent back for rework, refinished and reassembled.)
View 9 Replies
View Related
Aug 2, 2011
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
View 4 Replies
View Related
Aug 29, 2012
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?
View 2 Replies
View Related
Aug 4, 2013
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?
View 3 Replies
View Related
May 3, 2013
my dynmode is set to 0 so this obviously isnt the variable to turn this off. how to turn this off (see attached pic)
View 8 Replies
View Related
May 22, 2012
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.
View 2 Replies
View Related
Jun 14, 2013
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.
View 2 Replies
View Related
Oct 12, 2012
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?
View 5 Replies
View Related
Apr 18, 2013
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.
View 9 Replies
View Related
Aug 17, 2013
I'm having trouble finding a system variable.
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?
View 9 Replies
View Related
Aug 13, 2013
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,
View 2 Replies
View Related
Sep 15, 2012
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.
View 7 Replies
View Related
Mar 25, 2013
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.
C3D 2011, 2013 (latest updates)
Win 7 Pro, 64-bit
16 GB RAM
View 1 Replies
View Related
Jan 2, 2013
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.
View 7 Replies
View Related
Feb 28, 2013
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...
View 7 Replies
View Related
Apr 19, 2012
The icon dispayed on the ribbon for my addin seems to be the large (32x32) icon and i'm not sure how to fix that.
In IV2012 it was fine and i can't find anything in the programming that suggests anything was changed.
Using IV2014 Pro SP1 update 1, Win7-64bit
View 3 Replies
View Related
Aug 3, 2012
Since version 2013 we got problems with how colours appear in the drawings.
They turn very dark. See the attached files.
It's important to us that white really shows as white.
View 4 Replies
View Related
Nov 28, 2012
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.
View 7 Replies
View Related
Nov 5, 2013
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.
Script:
(define (script-fu-build-imagebasefilemytext)(let*((image (car (gimp-file-load RUN-NONINTERACTIVE basefile basefile)))(drawable (car (gimp-image-get-active-layer image)))(title (car (gimp-text-layer-new image mytext "Courier" 18 UNIT-POINT))))(gimp-image-add-layer image title -1)(gimp-image-clean-all image)(gimp-file-save RUN-NONINTERACTIVE image drawable "K:\\Images\\Temp.gif" "Temp.gif")));
Since I intend for this script to only be run from batch, I haven't bothered including the typical register stuff.
View 6 Replies
View Related
Apr 17, 2013
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?
View 9 Replies
View Related
Nov 21, 2013
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.
View 1 Replies
View Related