AutoCAD .NET :: Refresh Drawing When Modal Form Is Running?

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


ADVERTISEMENT

AutoCAD Inventor :: VB Form Auto Refresh Iproperties?

Oct 8, 2012

I'm creating a VB.exe (Visual Basic 2010 Express) tool that displays iProperties for Inventor using a running session of Inventor. How do I automatically refresh the display on the form when you switch the active inventor document tab within Inventor?

i7-2720QM Dell Precision M6600, Win 7 Pro 64-bit, 8GB RAM
Autodesk Product Design Suite Ultimate 2013
Autodesk Vault Professional 2013

View 4 Replies View Related

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 View Related

AutoCAD 2010 :: No Refresh After Closing Drawing Until Application Window Is Resized

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

Illustrator :: How To Get The Screen To Refresh When Drawing A Line Larger Than Artboard

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

AutoCAD LT :: 2D Wire Form - Any Way To Flatten Drawing So That Z Is Always Zero

Nov 19, 2012

AutoCad LT2003 I work in  2D wire form. When I cut and past elements together Z can be anywhere. It becomes a problem trimming , chamfering etc. Is there any way to flatten the drawing so that Z is always zero?

View 5 Replies View Related

AutoCAD 2013 :: Drawing Window Running Under Parallels

Apr 8, 2013

If there's a conflict between the UI for teh AutoCAD drawing window and Parallels?  There seems to be a consistent change in mouse behavior when the mouse moves to the AutoCAD drawing window when running AutoCAD ('11, '12, '13, '14) under Parallels (5, 6, & 7).

Since Parallels is now officially supported.

View 6 Replies View Related

AutoCAD Inventor :: Opening A Form When New Drawing Created

May 15, 2013

I have created a new drawing template using an iLogic Form and Prompted Entry.  What I would like is a Rule that is generated when a user opens a new drawing template.  The rule that is created would open up the new iLogic Form I created where various Title Block information is entered (Client Name, Client Address, Date, Drawn By, etc...  I know you can manually open the iLogic Form that I created via the iLogic tab, but I would prefer the form open upon opening the new drawing.  Once comlpeted, the user than imputs the Prompted Entry values (Drawing Name, Drawing Number, etc...). 

View 4 Replies View Related

AutoCAD VB :: Make A Form Which Contains Some Shapes To Be Added To Drawing

Jun 26, 2011

How should I make a form which contains some shapes to be added to my drawing? by user pointing of course.

View 6 Replies View Related

AutoCad :: 2013 On Mac Running Slow When Drawing And Copying Lines And Objects?

Sep 15, 2012

im currently using Autocad 2013 and it is running painfully slow when drawing lines and copying lines and objects... my experience on autocad is very minimal and how to speed things up a bit. also icons appear next to lines when i join 2 or more line, one for each join, but i suspect they may also be causing my drawing to lag.

View 4 Replies View Related

AutoCAD Inventor :: Using ILogic To Retrieve IProperties Form Model Into Drawing?

Jun 7, 2012

I'm trying to put a little iLogic rule in my drawing template which triggers as soon as the drawing is opened.  The rule asks the user whether the component he's making a drawing of needs to be painted or not.  If it gets painted, the paint area (one side only or both sides) needs to be calculated.  The result of this is then referenced by a text note in the title block.

I can do the radio boxes with the questions, as well as their If loops, but only when I'm in the model.  Due to our, admittedly inefficient workflow, we never have time to specify "minor details" like paint area or spec during modelling, only when we get to drawing level.  I'd like to put the iLogic rule inside the drawing template.  I'm having trouble referencing the iProperties of the model from within the drawing's iLogic interface.

What I have so far is this rule, which I can run inside the model:
 
'set dummy variable equal to total areatotal_area = iProperties.Area'start radio box with questionsText1 = InputRadioBox("Will this component be painted?", "Yes", "No", Text1, Title := iProperties.Value("Project", "Description"))If Text1 = True ThenText2 = InputRadioBox("How many sides will be painted?", "Both sides", "One side only", Text2, Title := iProperties.Value("Project", "Description"))If Text2 = True TheniProperties.Value("Custom", "Paint Area") = total_areaElseIf Text2 = False TheniProperties.Value("Custom", "Paint Area") = total_area/2End IfElseIf Text1 = False TheniProperties.Value("Custom", "Paint Area") = 0End If

adding a line or two so that I can run the same rule, but from the drawing.

View 9 Replies View Related

AutoCAD Dynamic Blocks :: Visibility Change When Copying Form One Drawing To Another?

May 18, 2011

Is there a reason why my dynamic blocks are changing back to the defaut visibility when i copy the blocks from one file to another?

View 3 Replies View Related

AutoCAD .NET :: Zoom From Modal Dialog

Dec 28, 2012

I have an app that uses a paletteset.  The paletteset displays a modal dialog on a particular action.  From the modal dialog, the user needs to be able to click a button to zoom to a particular coordinate.  I have it all working, with one problem.  The Zoom doesn't occur until the user closes the modal dialog.  I know this is related to my limited understanding of contexts in AutoCAD.

I've tried calling my Zoom method from the modal dialog, from the parent paletteset, and asynchronously using doc.SendStringToExecute() back to my main commands class, with the same result.  The Zoom occurs after exiting the modal dialog. How I can make the zoom occur while remaining in the modal dialog?

View 9 Replies View Related

AutoCAD .NET :: Loading Modal Dialog

Aug 22, 2012

I'm trying to load a modal dialog, at the first loaded/created drawing. How can i find out when autocad is done with loading to activate the form. I have event handlers for document created but it gets called to early.

View 1 Replies View Related

AutoCAD Inventor :: Anisotropic Materials In Modal Analysis

Nov 26, 2013

I need to get normal modes for an electronic board. It is made of FR4 laminate. Does Inventor Professional 2014 supports transverse isometric materials in a modal analysis?

View 6 Replies View Related

AutoCAD Inventor :: Drawing Tools Form User Tools - Ribbon Without Any Add-on?

Sep 10, 2012

I instal form SDK User Tools because I need in Inventor Drawing Tools (Revision cloud). I do this install like on website Autodesk show and I didn't get it on ribbon. I do also registry of this plugin but I also didn't get it. 

I used Invenbtor 2013 with servce pack.

View 2 Replies View Related

InDesign :: Submit Form Button Doesn't Work In Interactive Form Opened In Reader Created In 6

Oct 8, 2012

One of the features I was really looking forward to  in CS6 was creating fillable forms with ONE application. I created a form following the step by step instructions in classroom in  a book for CS6.  When I opened the exported form in Reader X, I get a "This operation is not permitted" error. I opened the completed "end" document in the lesson to make sure  I didn't commit an error, and I got the same message when exporting. I have looked for places in menus to modify security restrictions and I can't find any. I installed the updates and that didn't solve the issue.
 
I saw one solution posted which is to open the document in Acrobat, then do a "save as" option.   Is there anything we can do that doesn't involve buying additional software? If this is not the case, then Adobe seriously needs to change its training and advertising about this functionality.

View 11 Replies View Related

Photoshop :: Modal Error

Dec 21, 2007

I'm developing an automation project using Photoshop

The project will open several files, do some resizing and change of formats, save the new files and presto.

The trouble is that sometimes Photoshop has problems opening the source files (i.e. the original images). When this happens the Photoshop opens a modal error dialog and gets stuck there.

This program runs unattended and I NEED to be able to detect (or even prevents) this dialog to display in order to not halt the program.

This program needs to handle 1000+ images daily and every time one image gets stuck is a royal pain in the butt...

is there any way to avoid this?

View 6 Replies View Related

Photoshop :: Modal Dialogs Opening Behind Palettes CS6

Jul 26, 2012

Is there a fix for modal dialogs open behind palettes in Photoshop cs6 13.0 (creative cloud update) + OSX 10.6.8 Snow Leopard on MacBook Pro?  ( I am using 2 monitors where the second monitor is set to be the menu display.  cs4 does not exhibit this bug. )
 
Toggling the Application Frame off improves the hiding 'feature' but this does not include the desired continuous floating in front of palettes in all circumstances.
 
An example is Blending Options, then chose Stroke, then chose the Color Picker.  After clicking OK, the Blending Options dialog now sits behind the palettes.  One trick is to click on another app, then back to cs6 to force a window redraw.

View 5 Replies View Related

AutoCAD Inventor :: Form Picture - Parameter Driven Picture On A Form

Apr 10, 2013

I am working on a form (global) and have added a picture with a parameter and a picture folder underneath. So that the picture displayed on my form will change depending on the parameter value.Here comes the trick. Only text parameters can be used!On the form editor only 'Text parameter' can be selected to drive the picture selection. I actually need an integer, so that i can use my User/Excel parameters from Inventor.

I can work this around with an iLogic rule to equal the value of my string Picture Parameter with the relevant integer Inventor parameter, but the rules need to be run before the pic and the form updates (by pressing the 'Apply' button at the bottom of the form and then the assy updates too. So this takes a couple of minutes)... whereas if it was an option on the form editor then the update would be instant without waiting for everything to update...

Is there a particular reason why the Picture Parameter only can be a text parameter?

View 2 Replies View Related

Lightroom :: Just Updated To 3.6 Images Won't Open In Develop Modal

Dec 13, 2011

I just update lightroom to version 3.6 from the last current version. I am on a Mac pro operating system 10.6.8. Everything appeared to be normal until I tried to open an image in the develop module and nothing happens and the program freezes with the lovely spinning rainbow wheel and the program must be forced to quit.

View 21 Replies View Related

Edge Animate CC :: Create A Modal Window In Adobe?

Jun 1, 2013

how to create a modal window in Adobe Edge Animate?

View 2 Replies View Related

Photoshop :: Actions Ignoring Modal Control For Layer Renaming / CS6?

May 29, 2012

I often run actions that have modal control for certain steps turned on, in particular, when I want to give a layer a custom name. Prior to CS6, I'd run my action, the window would open allowing me to rename my layer, and then it finishes my action. However, in CS6, it seems to ignore the modal control button selected, puts in whatever the default info is and continues on.

View 2 Replies View Related

CorelDRAW Graphics Suite X6 :: Apply Color To Form Command Button Loop Form Controls And Save And Get The Color From Registry

Sep 25, 2012

In this lesson we will consolidate code to prevent code reuse. Follow along as we demonstrate by doing the following and more:

Apply a color to a form command button, loop form controls, and save and get the color from registry

Part 2 of  7

cs_setInnerHtml('video_43f4e134-ee93-489d-ba2f-80042d243821','');

[URL]

View 2 Replies View Related

AutoCAD Architecture :: Tool Palettes Will Not Refresh?

Dec 18, 2013

When I start AutoCad and also if I try to select the Refresh icon on the Pallett, I get a pop up that says "There was an error while refreshing.  The palette could not be refreshed"  Could there be a path that is broken, if so where would it be?

View 2 Replies View Related

AutoCAD Inventor :: Vault Files Won't Refresh

Oct 2, 2013

I search for a file in Vault 2014 and find it needs refreshing i.e. the double red arrows icon in "Vault Status" column. I hit the refresh button in the ribbon and the file still has the double red arrows icon and doesn't appear to refresh.

Inventor 2014?

View 1 Replies View Related

AutoCAD Civil 3D :: Force Refresh Is Not Working?

Dec 10, 2011

I am trying  to make a simple app using .NET classes.

I made a simple Windows.Form in which are check boxes (on for each layer of the CAD drawing).

Just to set the visibility of each layer. Everything is working fine, but I have a little problem with refreshing a drawing.

Changes of visibility settings are applied  after a form is closed.

I need the drawing to be refreshed after every check box check change.

 I enclose a method with handles check boxes changes. 

private void LayerCheckedChanged(object sender, EventArgs e)
{
CheckBox s = sender as CheckBox;

[Code].....

View 6 Replies View Related

AutoCAD Inventor :: Refresh Sheet After IProperty Changes

Dec 4, 2012

is there way to refresh sheet of drawing when an iProperty is changed trough API? When I change for example revision Number, the sheet still show old number. The value is changed, because if I open the iProperty dialog, there is new value and also when iProperty dialog is close then the sheet (title block with this property) is immediately correctly updated. I know that I can use ActiveSheet.Update method, but this update whole sheet and it take long time. There nust be something better because dialog iProperty doesnot update whole sheet and it is vvery quick.

 Dim oISI As Inventor.PropertySetDim oDrw As Inventor.DrawingDocumentSet oDrw = ThisApplication.ActiveDocumentSet oISI = oDrw.PropertySets.Item("Inventor Summary Information")oISI.Item("Revision Number").Value = "test"oDrw.ActiveSheet.Update ' I would like to replace this line, this take long time

[URL]

View 3 Replies View Related

AutoCad 2D :: Refresh Memory On Ordinate Dimensioning?

Jul 26, 2012

I haven't done this in several years, and my notes are apparently incomplete. Enclosed is an image of the type of ordinate dimensioning that I want, and also my faulty notes. Maybe someone here can add the missing pieces. When I follow my notes, for some reason the UCS is displayed, whereas in the past it wasn't. I am using Version 2000 if it matters.

Notes: Tools/New UCS/Origin this yields small selection square select top right hand corner, for the zero point, then from the Tool Bar: Dimension/Ordinate, to mark the corner with zeroes.Image00256.jpg

View 1 Replies View Related

AutoCAD Inventor :: Display Randomly Freezes And Won't Refresh

Feb 8, 2011

Anyway, I just updated to the Factory Design Suite Advanced package for 2011 which, of course, includes Inventor.  I have downloaded and installed all updates, service packs and hotfixes I could find btw.  What happens is I'll be working in Inventor on a solid model of ANY size (even a single part) and with absolutely no warning, the display window will freeze up and won't refresh.  What's really weird though is that Inventor itself is not locked up.  I can click on any of the buttons or any of the items shown in the browser as though the program's running normally.  I can check the task manager and it shows Inventor to be running normally.  The memory status bar in Inventor shows lots of available memory.  I can even hover over the display window in the area where the view steering wheel is located and the icon will change appearance as though it's working normally.  I can even save the file.  If I close the file, it responds like normal and goes back to the default screen.  If I try to open ANY file after that, however, the screen will not refresh or show me the file I opened, even though everything else works fine and the program isn't frozen.  The only way to restore full function is to completely close and reopen Inventor (on average I have to do this about once an hour).  Btw, I'm also working in a local directory stored on my hard drive, not a network.

My first inkling is that it's a graphics issue but I have played with all the display settings to no avail.  I ran a diagnostic on the video card and Inventor says that I'm running an Autodesk Certified driver.  All the specs are within reason I think.

My workstation specs:

Dell Precision M4500 laptop

Intel core i7 processor, 2.67 GHz

4 GB RAM

Windows XP Professional SP3, 32-bit, running in 3 GB mode

NVIDIA Quadro FX 1800M, 1 GB graphics card (just updated the driver too...no change)

230 GB hard drive, 136 GB free space

View 5 Replies View Related

AutoCAD Inventor :: Virtual Memory Counter Won't Refresh

Jan 3, 2012

I'm currently using Inventor Professional 2012, and have been experiencing problems with virtual memory usage.  In past versions of Inventor, the small bar graph counter at the bottom right-hand corner of the screen (Virtual memory counter?  Not sure what to call it...) would "re-fresh" after closing a model, drawing, etc. (i.e. Once closing the file, the counter would change from yellow to green, bringing the virtual memory usage back to zero).  However, this isn't happening with 2012, and I'm not sure if the problem is the way Inventor was installed onto my workstation, or if it's a problem with the hardware.  A temporary solution has been to shut down Inventor when the bar graph gets too far into the yellow range (or red), and then starting up Inventor again.

Specs for my workstation are as follows: Windows 7 (32-bit), processor is Intel(R) Xeon(R) CPU W3503 @ 2.4GHz 2.39GHz, 3GB RAM.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved