AutoCAD .NET :: Refresh Drawing After Block Modification
Nov 26, 2013
My code mirrors a selection by either the x-axis or the y-axis. It is working fine. Except, the drawing shows the result, when I move my cursor to the active dwg.
How can I refresh my drawing, direct after modification of a block? I use the code below to mirror a selected block by a button on a docking pallette:
private void btn_Vertical_Mirror_Click(object sender, EventArgs e){(new Modifikation()).Mirror("v");}
the code, which is called is:
public void Mirror(String axis = ""){//---------------------------------------------------------------------------------------------------------------------------------------Document dwg = Application.DocumentManager.MdiActiveDocument;Database db = dwg.Database;Editor edt = dwg.Editor;//---------------------------------------------------------------------------------------------------------------------------------------try{Auto
[code].......
View 6 Replies
ADVERTISEMENT
Jan 3, 2012
Is it possible to refresh drawing content when modal form is running?
I placed sample project in attachment.
There is simple form with only one button.
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click Class1.DrawLineOnScreen() End Sub
After button is pressed, application prompting user for picking 2 points, and draw a line (based on picked points).
Public Shared Sub DrawLineOnScreen() Dim editor As Editor = Application.DocumentManager.MdiActiveDocument.Editor Dim pFirst As PromptPointOptions = New PromptPointOptions("First point: ") Dim rFirst As PromptPointResult = editor.GetPoint(pFirst) Dim pSecond As PromptPointOptions = New PromptPointOptions("Second point: ") Dim rSecond As PromptPointResult = editor.GetPoint(pSecond) If rFirst.Status = PromptStatus.OK AndAlso rSecond.Status = PromptStatus.OK Then Dim line As Line = New Line(rFirst.Value, rSecond.Value) Dim tr As Transaction = Application.DocumentManager.MdiActiveDocument.TransactionManager.StartTransaction Using tr Dim modelSpace As BlockTableRecord = tr.GetObject(Application.DocumentManager.MdiActiveDocument.Database.CurrentSpaceId, OpenMode.ForWrite) modelSpace.AppendEntity(line) tr.AddNewlyCreatedDBObject(line, True) tr.Commit() End Using End If End Sub
Problem is that line had been added to transaction (to Model Space block table record) but nothing change on a drawing. Line will appear on a drawing after closing the form.
In opposite situation, without using modal form (only console) everyting works fine.
<CommandMethod("DrawLine", CommandFlags.Modal)> _ Public Sub DrawLine() Class1.DrawLineOnScreen() End Sub
View 2 Replies
View Related
Apr 10, 2012
My AutoCAD 2012 installation has been doing this for a while, but I don't remember it always doing this:
After I close a drawing (if it is the last drawing open), by using either the "close" command or by clicking the "x" on the window, instead of going to the generic gray-stripe background it just shows what the drawing looked like before close. This keeps messing with my head, as I think AutoCAD has just stopped responding.
If you look closely, though, you can see that the "AutoCAD" and "Autodesk" labels appear on the drawing, but I don't immediately notice this because my drawings are more complex than the sample drawing I've attached.
See images below.
However, when I manually resize the application window (either by restoring or maximizing, or by draging the window edge, the application window refreshes to show the proper generic gray-stripe background.
System specifications: AutoCAD 2014 64-bit SP1, Windows 7 64-bit SP1, Intel Core i7-2600K, AMD FirePro V4900
16GB RAM, Crucial M4 SSD, 3 Dell Monitors (2 30" 2560x1600 & 1 20" 1200x1600)
View 9 Replies
View Related
May 13, 2012
How do I get the screen to refresh properly when drawing a line larger than the art board when the screen scrolls? Everything turns white in CS6, CS5 and CS4.
View 12 Replies
View Related
Mar 28, 2011
My drawing- block is a little bit complicated, it contains few actions and parameters and everytime i open block editor to add, or to modify some action I can't see my drawing because actions grips and parameters grips obscure my drawing. I tried to refresh layout but it doesn't work.
please take a look on attached jpg.
View 1 Replies
View Related
Oct 4, 2013
I have had a dwg. template that I have used for quite some time. I recently decided I needed to update it. In doing do I added a new sheet and modified an existing title block to use on the new sheet. Now the new sheet is there when I start a new dwg. but the names are still there from the modified title block. If I open the template directly its all correct, if i start a create a new dwg only parts of it are correct. I've tried changing my styles to read/write and tried to save it as many different ways I can think of but it just won't cooperate.
Windows 7 64 bit
16 GB ram
Intel i7 2600 3.4 ghz
AMD radeon HD 6450
PDSU 2013
View 7 Replies
View Related
Nov 21, 2012
When an alignment needs to have stationing modified, what is the best process for this when a proposed grade line and corridor have been established? I know the proposed grade line can be edited via edit profile geometry>profile grid view.
But what from I have found each station has to be modified individually, which is cumbersome. I would hope to be able to modify the proposed grade line by changing only the beginning station and the rest would update, similar to the alignment.
C3D 2011, (latest updates)
Win 7 Pro, 64-bit
16 GB RAM
View 8 Replies
View Related
Feb 4, 2011
I have 4 computers sharing tool palettes on a network. Whenever a user updates the palette with a new block, he has to export the .xtp file on the network and every other users has to reimport the palette in order to see the changes.
We're in the middle of a big clean up since we just got our new Autocad 2011 license and the palettes change pretty much every day, whenever we find time to reorganize it.
Is there a way to skip the export/import part when modifying a tool palette? I mean we are all using the file on the network right, so why doesn't it update on modification? At first I thought the palettes would update on startup, at least, but it seems that every single user has to export first and then import the .xtp file every morning or so.
It feels like once the palette on the network has been imported, the modifications we apply on the said palette are local, as if autocad would copy the one on the network instead of running it live, which makes it harder to keep it synchronized on every machine.
there's a way to work around that export/import sequence and get this whole palette thing to work in sync.
View 9 Replies
View Related
May 18, 2012
Is there any easy way of adding custom Iprops to previously created parts and assemblies? A macro or something that could set up additional lines without having to go in and type them out all the time?
View 5 Replies
View Related
Jun 25, 2013
Is it possible to change the parameters of a subassembly - for example in an assembly comprising several subassemblies, can I change a parameter in Subassembly.LaneOutsideSuper, for example, to vary the Lane Width from 4m at CH90 to 3.25m at CH160m and keep it at 3.25m for the rest of the corridor.
I am new to Civil3D.
View 3 Replies
View Related
May 4, 2012
i just come across a lisp and i find it quite usefull,but then i wish to modify it abit. I have attach a sample of the lisp and jpeg to show what i require.basically all i need is the leader to be in multileader type. Is it possible? Additionally, can i set by default the coordinates to be shown in just 2 decimals?
View 9 Replies
View Related
Apr 12, 2012
In trying to establish the tongue weight on a trailer modification, which inventor analysis tool would I want to use. I tried Stress analysis employing a teeter block but that only showed deflection caused by the various weights and not the affect of gravity. The gravity feature required data I don't have at present but before going through another learning curve I think it best to verify the appropriate direction.
View 8 Replies
View Related
Jul 19, 2012
I've run into an issue with the Content Center customization. I easily understand how to manipulate the table to create parts with our part numbers, different material spec, & other predetermined aspects of the included templates that were included with the Inventor 2012 update. The issue I'm running into is that we would like to add or modify the original part the table is referring to.
In my example pics there is a bushing that I would like to control the hex nut size on. In the model it was created with a tangent constraint within the sketch instead of a linear dimension from the two flat surfaces. I would like to change that, but keep getting error messages stating:
View 1 Replies
View Related
Dec 7, 2012
Found this routine online and am hoping to modify it to my needs, just not sure how to proceed.
It exports the text out of the dims into an excel file, the issue I have is that it automatically opens a new book every time you run the lisp with the original workbook open.
I am trying to get it to automatically insert the next set of numbers on the row below the first pull.
View 9 Replies
View Related
Dec 22, 2011
Drawing A has a grid system Xref-ed into it. It also has a block reference in it, repeated in various places throughout the drawing.
I Xref-ed the grid into the block to check something, and now I can't get it out. This means that the grid now repeats all over Drawing A as well and is generally being a nuisance.
If I try to unload the Xref within the block, it unloads it in Drawing A too. If I try to detach it from the block, it returns this message: Xref [Xref name] has multiple references. Not detached. If I try to detach the Xred from Drawing A, it returns the same message.
How do I unload the same Xref that occurs in a block in a drawing, and in the drawing itself, independently of each other?
View 1 Replies
View Related
Mar 29, 2013
I need to get list of all block reference in a drawing without iterating through all entities in the drawing.
View 7 Replies
View Related
Jun 22, 2011
I am trying to insert a block from another drawing, the only way I have been to acheive this has been to open the drawing
Set ObjDocument = ThisDrawing.Application.Documents.Open("D:ACADBlocksGENERAL.dwg")
For Each ObjBlock In ObjDocument.Blocks
If InStr(ObjBlock.Name, "LOGO") <> 0 Then
CopyObjects
End If
Next
ObjDocument.Close
I would prefer not to open the drawing to access the block, is this possible in VBA.
View 1 Replies
View Related
Nov 1, 2012
I recently changed a block that i then re-saved to a different palette on my tool palette. i deleted the old block out of a current drawing and when i go to insert it i get the old block back and not the new one. if i open up another drawing and insert the block its the new one.
View 3 Replies
View Related
Mar 8, 2012
for some reason when i select a layer and draw a line (lets go with blue) it draws a white line, though in layer manager it says i'm drawing a blue line. when you click, then rt click the line, go to properties it says the line is drawn "by block" once i switch it to "by layer" the proper colors come up. I am altering a drawing so its easier for me to draw in a different color to see what i've done and what was already there.
View 9 Replies
View Related
Mar 25, 2012
Is there a way to remove blocks from a drawing without having to explode or burst? I'm trying to clean up backgrounds for a hospital and every drawing is driving me mad! After I explode them, all kinds of new entities appear making the problem worse. There has to be a better way. I've tried bursting, but - same effect. On another note, my office is trying to move us to Revit, which appears to have a ridiculously steep learning curve.
View 9 Replies
View Related
Nov 30, 2011
I'm using blocks inserted into drawings to provide the background for the drawing which I'm working on. e.g an architects building layout inserted as a block and then used as the background in an electrical layout drawing.
This drawing being used for the background has been edited to remove various details and layers and give a cleaner background to my drawings, and is saved as its own dwg file. It is then insert as a block into numerous drawings for use as the background.
My question is - is there a way the block can be redefined once inserted into a drawing, without having to re-inserting it via the normal insert > block route, which would prompt the 'redefine block' option. I want to do this so that I could make further changes to the dwg file used as the background (such as the architects building layout), and quickly update drawings with this inserted as a block.
I'm currently working in autocad 2011.
View 6 Replies
View Related
Dec 25, 2011
how to get same block in a drawing with different names????.
i tried if i rename it all blocks are changing???
View 1 Replies
View Related
Feb 6, 2012
I'm trying to use remove many of the same block from a drawing and know that I can use the quick select to `grab` the blocks in one go but only seem to be able to erase them. I could do with freezing them for later. Perhaps it might be better to move them to a new layer?
View 5 Replies
View Related
Jan 5, 2013
1. SUBJECT: Corel Video studio crashing at sound modification
2. Describe your problem: I just installed corel VS pro 5x ultimate, I also updated with service pack 1. However while making my first video corel keeps crashing when I try to modify "clip volume" then click "play" or click on sound mixer. I get the windows popup stating "corel has stopped responding".
3. What devices are involved and their mode of connection? N/A
4. The Version of program is being used VS X5
5. list all patches/updates that have been installed relating to that version of the program. service pack 1
6. Details of the source files. .avi files captured via the bandicam video capturing software. Music is a simple mp3 downloaded from internet.
7. Project Properties (Alt+Enter)
NTSC non-drop frame (30 fps)
Microsoft AVI files
24 bits, 320 x 240, 30 fps
Upper Field First
Uncompressed
PCM, 44.100 kHz, 16 Bit, Stereo
8. PAL or NTSC
NTSC
9. Error Codes (if any): At what point did the Error occur, during the Editing stage, or after Share – Create Disc The error occurs when I modify the "clip volume" and then hit play or just simply click on the sound mixer.
10. What are you trying to make, burn a Standard DVD, a HD Bluray or Avchd DVD, or Video for the internet. video for the internet
By following these simple rules, you will increase your chances of obtaining a solution to your problem.
If you have not already done so, click on User Control Panel, then go to the Profile tab in the forum header and fill in the fields titled: update your user profile to include your PC specification
System Manufacturer: Alienware
System Model: M18xR1
Operating System: Windows 7 Home premium
System Drive: C
32bit or 64bit: 64bit
Motherboard:InsydeH2O Version 1.0 A04
Processor:Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz (8 CPUs), ~2.2GHz
Ram:16GB
Video Card:NVIDIA GeForce GTX 560M
Sound Card:
Hard Drive Capacity:455GB
View 5 Replies
View Related
Feb 22, 2013
I have a user that isn't getting the modify tools when it comes to Profile modification or adjusting such items as curtain grids.
I'm aware of all the standard ways of hitting TAB, etc, but selecting the proper item isn't the issue. When the profile edge (of anything) or curtain grid line (unpinned, of course) of curtain walls are selected the tools for modification (add-remove segment, edit profile, etc) simply don't appear on the ribbon.
View 8 Replies
View Related
Jan 19, 2013
When I insert an xref it's to scale 12!; in my model space I have blocks scaled 0.0833 and others to 1 scale! this is weird, every time I insert a block I need to scaled it in the way to adjust it to my drawing. If my drawing it's supposed to be 1 scale.
View 4 Replies
View Related
Jul 4, 2012
I recently start to use ilogic in inventor and discover this powerfull tool for all the daily task to be done...
I would like to add an autocad block in a drawing with some ilogic coding. Through this forum i found how to insert a sketched symbol but no how to insert a block. And convert my block into a sketch would be quite difficult...
where could i found a list of all the ilogic command??
Autodesk Product Design Suite Ultimate 2013
Win 7 Pro 64 bits SP1
Bi-Xeon E5520 (2x Quad-core @2.27GHz)
Quadro Fx 1800 768Mo GDDR3
6Go Ram DDR3 667MHz ECC
View 1 Replies
View Related
Mar 27, 2012
Un-purgable blocks? Is there some way to designate a block within a drawing so that it canNOT be purged even if it is not being used at the moment?
Windows 7-64
8GB RAM
AutoCAD Civil 3D 2013
View 5 Replies
View Related
May 10, 2013
dynamic block in a drawing - when i make a change in the block editor, it doesn`t apply in the model space although i save all the changes. There is also another dynamic block and this time everything is working properly - all the saved changes appear in the model space. The only difference between the two blocks is that the first one has attributes. I think attributes should not be the reason for not applying changes, but i just don't know.
View 1 Replies
View Related
Apr 5, 2011
I created a standard title block template drawing for my student classwork exercises, and when I constructed the title block I keyed in real dimensions to ensure the title block would completely print on a piece of 8.5 X 11 paper. Now whenever I attempt to draw a large scale drawing (say a 36" dia circle, it draws the circle well outside my title block. I know why this is happening, I just need some tips about how to allow a title block template to be constructed around my current drawing reguardless of the drawing scale.
View 5 Replies
View Related
Jul 7, 2011
There doesn't seem to be an issue with this block when I open it with the block editor in the drawing where it was created. However, if I insert it into another drawing, it comes in as a block but when I select it, only the insertion point grip is visible. What happened to the parameters and actions? Oh they're still there but I have to open the block editor again for that block and then they display a great distance away from the block itself. This is all in model space with no change to the scale of the block upon insertion.
If I erase the parameters and actions and recreate them, the block behaves correctly in that second drawing but there is still the problem with the original block in my library.The attachment is supposed to be for a portion of metal deck that can be arrayed to whatever length is requied.
View 9 Replies
View Related