AutoCAD .NET :: Get Fields To REGEN On LOAD
Apr 27, 2011
I am using Cad11, VS10 with VB.NET.
I have a simple function that breaks down the file name and populates 3 fields with the correct names. In my template they all get changed correctly, but when I make a new .dwg it takes a few (hopefully unnecessary) steps to get them to change. The very 1st time opening Cad, the fields do not get recognized ( !fieldname1 returns a nil). If I close the .dwg and reopen it the fields pull the correct value but do not change in model space (ex -- !fieldname1 returns 12345, but model space is still showing 54321 in the field). In order to get the value to change I have to type the Field command in Cad, I don't have to do anything in it, I can immediately close the Field form and then do a regen to get model space to show the correct values.
My idea was to hard code in the Field command and hope to be able to close that before the user knows it is even open, but I still don't think that will solve the 1st time Cad is opened problem, and I am having no luck with getting that lisp command to run (like it said, very limited experience with it). It could just be the syntax is wrong since it is so simple but here is what I thought would work.
[code]
ThisDrawing.SendCommand("field" & vbCr)
[/code]
I have a thisdrawing...("!fieldname1" & vbcr) that correctly returns the value in the command bar right above this.
In the command bar 'field' shows up but the form does not open.
View 3 Replies
ADVERTISEMENT
Aug 7, 2013
I have been creating new 2D dynamic blocks for our engineering department to use. I was able to combine our old "dynamic" blocks, similar in design, into one new block. There are attributes within in the block to display information regarding which block is selected and shown. This information is then extracted using a LISP routine to be used via Excel for manufacturing.
I have run into problems with some of the fields updating. At times they will update and other times they won't. The attached file has an example of the blocks I'm using. They are the same block. However, the block on the left was placed into a new drawing using CTRL+V. The lone field in the bottom left corner of the block updates correctly when the block properties table is changed and REGEN is run.
The block on the right was inserted into this drawing using the INSERT command. The same field does not update using REGEN. FIELDEVAL is set to 31 based on what I've read in other posts.
Not sure what the difference would be, but I've been seeing it for the past week while creating the new blocks. It's a bit frustating not knowing why it will work sometimes and not others. I've pulled my hair out for long enough trying different things to see if it will work, but to no avail.
View 3 Replies
View Related
Mar 20, 2013
I created a dynamic block to represent a room in a floor plan. It displays the dimensions and area of the room and can be stretched. But it's defeating the whole point of being dynamic. The area won't update unless I do a regen.
I've seen comments blaming MTEXT for the problem, so I tried putting the area field in a line of TEXT or DTEXT. It still didn't update unless I did a regen.
Infrastructure DSP '14 / Product DSP '14 / Vault Professional 2014
Dell Precision T1650
Windows 7 Professional SP1 64-bit
Intel E3-1270 V2 3.5GHz / 32G RAM
Nvidia Quadro 2000, Driver 331.82
Space Navigator, Driver Version 6.17.7
View 9 Replies
View Related
Jul 11, 2012
I was wondering if it was possible to say have a cover sheet of a project with fields and then have the other sheets in the project have their fields populate using information from cover sheet?
View 3 Replies
View Related
Oct 1, 2013
Is there any way to make print merge fields relative in position to other fields or to non-variable text.
For example if I am doing address labels and I have fields for City and State:
Their positions are absolute, and the state ends up overwriting the city for long city text, as does the comma.
What I want is for the comma to follow the last letter of the city, and then state to follow that.
And yes, I realize that I can combine all three into one field, but I am asking this as a general usage of the feature. One doesn't always have control over the source.
View 3 Replies
View Related
Oct 25, 2011
How do i disable regen and stop autocal lt 2007 regenerating layout and model space when opening drawings. This is a pain when opening and saving large drawings to older versions.
View 6 Replies
View Related
Dec 5, 2011
Attached is a drawing containing a big rectangular lwpolyline and two relatively small lwpolylines near the drawing origin. One of these smaller plines is on a layer that has a dashed linetype associated with it. That layer is also red. When I zoom in on that pline, however, I won't see the dashes unless or until a regen occurs. As of this writing, after trying a few things, I'm almost resigned to including a note telling the client they might have to REGEN in order to see non-continuous linetypes display properly.
View 2 Replies
View Related
Jan 22, 2013
I've noticed when I try to hatch something it will regen model every time after I select boundaries.
Below is from command line. How can I turn it off?
Command: BH HATCH
Pick internal point or [Select objects/seTtings]: S
Select objects or [picK internal point/seTtings]:Regenerating model.
Regenerating model.
1 found
View 1 Replies
View Related
Jan 19, 2012
I often need to work on big drawings having utility networks, topographic surveys and properties. Whenever using FIND command in such a drawing AutoCAD regens the drawing. This happens even if FIND command is cancelled and takes 2 to 3 seconds everytime. Can I disable this automatic regen and do only when I need.
View 3 Replies
View Related
Mar 29, 2011
difference between regen & update?
specially at the point of speed.
(thisdrawing.application.update) phrase can work exactly same with regen ?
which one is preferrable ?
View 2 Replies
View Related
Jul 6, 2010
After I edit a block in the block editor, It regens to a blank black screen. Then I have to zoom extents and zoom back to where the block is. Is this normal? I would think it'd be better if it just put you back to where you were working. I understand the regen probably is necessary to change all the blocks that need to be updated. Just wonder why it puts you to a blank space.
View 7 Replies
View Related
Dec 16, 2011
I am using ACAD LT 2012. I currently have 3 ucs viewports in my drawing. Each time I switch from one viewport to another using my left mouse button, the drawing regenerates. How do I stop this from happening?
View 6 Replies
View Related
Apr 16, 2013
Problem: occasionally when I copy an object (text, polylines, blocks etc) and then paste, it appears as though nothing has happened. However the object is copied, it is simply not visible. If I then regen all entities also vanish. I can save and reopen the drawing this fixes the issue. For me this is fine, but it is happening to others multiple times in one day.
View 5 Replies
View Related
Apr 17, 2013
I'm facing a problem that each time after I did Regen or Zoom, the system halted and then recovered only after several minutes. I guess maybe it is related to special drawings, because it only happened when working with the drawings which was transferred from an .iges 3D drawing.
View 6 Replies
View Related
Jun 25, 2013
Having a small issue with Civil 3D 2013 recently ( I think). The last month or so, it's been automatically running regen when I open a drawing. No problems there, where the problem comes in is if I open an exported drawing (from this computer) or a drawing from someone else computer any polylines in the drawing vanish.
I can just run an undo to get the polylines back, but any time I paste something into the drawing all my polylines vanish again. So my fix at the moment is to undo the regen, and then copy and paste my drawing into a new drawing.
Is this just something corrupted I need to do a reinstall to fix, or is there something I might be missing?
EDIT: Also thought I should point put that I'm using an Nvidia Quadro 600 video card running the latest drivers. I have not installed any patches or hotfixes for Civil 2013
View 6 Replies
View Related
Jan 9, 2013
What would cause AutoCAD to choke, ONLY when viewing a model from one direction? In my case, it's the right view, and it doesn't matter how I get to that view, ie "view, right" or "dview,clip". Views from other directions regen almost instantly, but from the right takes a full minute, while Acad tells me up top that it's [not responding].
Issue is only in single dwg. Tried audit, purge, etc. Wondering if there is some obscure (dwg specific) system variable causing this, before trying the WB to get rid of an offensive entity.
View 2 Replies
View Related
Sep 6, 2013
I realise this is an old thread, just wondering if any new tweaks have some to the surface to all the wheel-double-click action to be altered. Currently my mouse is set to ZOOM>EXTENTS like I imagine most people's is. Lately I've been getting a lot of "Requires a regen, cannot be transparent" errors while trying to zoom>extents, and I would like to introduce a REGEN call into the wheel-double-click macro. REGENAUTO is set to ON.
View 9 Replies
View Related
Dec 16, 2011
I just had to reinstall AutoCAD this week for being a very bad boy. Now, when I switch between open files, my screen goes blank. It takes a regen to get all my stuff to appear again.
It even goes blank in my viewport... I have to go into the viewport and regen separately from the main drawing.
View 8 Replies
View Related
Jan 2, 2000
I'm trying to regen a viewport with Visual Lisp, with this code
(setq acadobject (vlax-get-acad-object))
(setq activedocument (vla-get-activedocument acadobject))
when I issue the next code
(vla-regen activedocument acActiveViewport )
I get the following error
*** ERROR: AutoCAD: AutoCAD is currently busy.
What is missing in my code?
View 1 Replies
View Related
May 23, 2012
This happens with a number of drawings, I believe all the files are very large approximately 8mb+. The issue is that by using the REGEN or the Zoom - Dynamic command, it will freeze AutoCAD. I will have to conduct a force shutdown than restart the program.
My question is; where do I start to determine what is the cause? Where do I find an error log?
View 1 Replies
View Related
May 20, 2011
Since upgrading to AutoCAD 2012, everytime I open an xref using xopen, then close the xref, when I go back to the parent drawing the screen is totally blank and I have to regen to get it back. This happens almost 100% of the time in this scenerio. Easy to do a regen, but I am in and out of xref's a lot, and it's getting really old.
View 5 Replies
View Related
Apr 22, 2010
When switching from layout to model space, and back again, and when switching layouts the regen is slow to an extreme, upwards of (3) minutes. Using Renenall in layout, the regens are quite slow as well. Windows 7, AutoCAD 2011, NVIDIA Quadro FX1800, most current driver.
Additionally, when publishing, the regens are equally slow. LAYOUTREGENCTL setting seems to have no affect.
View 9 Replies
View Related
May 8, 2012
My layers in layout viewport are displayed in wrong order even after I use REGEN or REGENALL command.
I am working with drawing file with quite big amount of layers (about 100+ including layers of 7 xrefs) and because I want to use different layer settings for each printed drawing I work directly in the layout viewports instead of model space so I don't have to switch on/off countless layers all the time.
The problem is that quite often layers just turn into wrong draw order and don't come back even if I hit REGEN or REGENALL command. To solve this I have to zoom out, jump out of the viewport by doubleklick outside, use REGENALL command and then jump back to viewport so I can keep on working. This is extremely time consuming especially if it happens every 3 minutes, over and over again.
View 2 Replies
View Related
Dec 18, 2013
If I do a command such as regen, or switch between tabs/modelspace, generally anything that seems to involve a screen update, then immediately following that if I try something like a Shift-Tab type of operation, there is no response from autocad until I move the mouse. This is consistent if hardware accelertion is turned on or off, so I can't go blaming the video drivers just yet.
ACad, MEP, 3DS Max
Windows 7x64
X5482 @3.2Ghz 8Gb Ram
Quadro FX1700
View 4 Replies
View Related
Jun 30, 2011
it seems that whenever I input .SAT files into my drawing it really slows down AutoCAD. This is especially true whenever I switch views. It appears to be the regen operation. The drawing is only 10 MB. I can work in much larger drawings that are 2D and not have a problem. I've eliminated all other background tasks and processes that are eating memory.
Is there some sort of work-around/setting I can adjust to reduce quality of the 3D views in order to speed up the regen process?
View 6 Replies
View Related
Jun 4, 2013
Is it possible to use a load statement in a profile to automatically load/unload a cuix?
View 7 Replies
View Related
Mar 14, 2012
Any short cut to update the fields in the attribute without double clicking on the block attribute to change.
I'm looking for something to write in the command line.
View 9 Replies
View Related
Mar 18, 2011
ACA 2011, 64bit.Trying to create fields that link to my aec project name, and number, and description. I'll use the AEC fields in my titleblock to make my titleblock management quite a bit easier.
If I open my template file and try to create a field that links to the AEC project "Project Name". It will come up as ####. I do not want to have a bunch of number signs in my titleblock. project number, and other fields show up as the same #######.
But if I create a new construct from the project navigator, open the new construct, and create a field that links to the AEC project "Project Name". It will come up as Project52. Autocad is now picking up the proper name, and number and everything works fine.
Shouldnt files that are opened in the old fashioned way be able to link to AEC fields? Or should I create & open all files from the project navigator from now on?
View 1 Replies
View Related
Nov 22, 2011
I'm using AutoCAD 2012 LT and have having problems inserting/updating/editing fields. This is the error that appears
"There are no registered modules to edit fields or demand loading is currently disabled". When I click OK the Field pop-up appears empty! (see attached)
The BEDIT command is also not working. It was all working up until a few days ago! I have downloaded the most recent Service Pack and it's still not working.
View 1 Replies
View Related
Oct 4, 2012
Is there a way to add a field within a label style? I made a custom alignment label and I would like to add a field that references a sheet (I'm using SSM) i.e. "See Sheet 1-2".
View 6 Replies
View Related
Feb 25, 2013
The insert fields dialog box contains several fields that must allow the user to define the values for those fields but I cannot find where. For example, in the documents fields category there are fields named "comments" "keyword" "author" etc. Where do I enter the value for them so that when I insert the field I get more than just "---" returned?
View 5 Replies
View Related