AutoCAD .NET :: Redrawing Screen During Execution Of Command Method
Dec 19, 2012
I would like to be able to have the screen refresh periodically to show the new objects I have added as a command method proceeds to execute. I am hoping to be able to achieve a kind of simple animation by doing this, and also to show progress while a computationally intensive operation is under way. Is there a way that I can do this?
I have tried using AcadApp.DocumentManager.MdiActiveDocument..Editor.Regen() and also .Editor.UpdateScreen(), but it only seems to work once and not multiple times. Do I have to commit the transaction and then .
I am using editor.writeline to send information to the command line during the execution of a command. Unfortunately, it will only display the last message written when the command ends. Is there a way to display all the messages when the command ends? Below is the code that I am using.
Public Sub CreateVentilationLayers() CreateTrimbleLayer(VENT375) CreateTrimbleLayer(VENT500) CreateTrimbleLayer(VENT625) CreateTrimbleLayer(VENT750)
First I will state that everything within the program, to my knowledge, works just fine. Although..
I'm having a really strange issue when I try to type a command. It's an intermittent problem that occurs very often and can be extremely frustrating.
If I try to type a command, i.e.. M followed by enter to move an object, often times the command will repeat "MMMMMMMMMMMMMMMMM" and the command entry will fail. This happens for every button I press too. Letters, numbers, and even the Enter key will be repeatedly entered into the command prompt. Often times I've already pressed enter to execute the command. During this process the whole program seems to freeze, but not for too long. So I often have to enter the command multiple times, regardless of which button is repeating itself.
The repeating of a keystroke only lasts between 1-2 seconds but as I said has a very frequent occurrence.
I'm almost positive that this has nothing to do with my keyboard, as I've never experienced this kind of problem elsewhere. This is my machine at work and I've never encountered an issue as frustrating at this. Could it be something that my machine is doing?
I am a newbie having trouble getting the sample batch programs to run. I placed simple-unsharp-mask.scm in C:.gimp-2.6scripts and put the .bat file in the E: drive directory with the image file foo.png. When I run the .bat file on my PC running Vista, I get "batch command experienced an execution error." Here is the .bat file:
It's a shame that Illustrator's scripting ability isn't as robust as InDesign's.
I have a script that goes through every path in a file and records all of the colors used in it. The problem is that it stumbles when faced with certain types of "PluginItem"s. I've been able to fix some of it, such as when it comes across a "Compound Shape" (as opposed to a Compound Path or other normal Illustrator object). In such an instance I can select the path, then call a menu command to expand that selection:
I had to do some scrounging to figure out how to execute that "Expand Appearance" command that is in the "Object" menu in Illustrator. In fact, the only resource I discovered was a list that is partially in Japanese. By the way, that last item in the list is a recursive call to the same function in which this if statement resides.
So, the above code works for "PluginItems" that can be rectified with a call to the "Object -> Expand Appearance" menu item. What about those that don't, such as an enveloped object? With those, I'd normally just run the command above "Expand Appearance", called simply "Expand…" Well, that menu items pops up a dialog which, when the user clicks "OK" on it, will properly expand the enveloped object so that the script can continue reading the paths that made it up and get fill & stroke colors.
I can call this menu item with a simple "app.executeMenuCommand("Expand3");", but my problem is that dialog which appears. I don't want the user to have to click "OK" on it every time it pops up when the script wants to expand that object, but the traditional "app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;" method doesn't work.
Is there any way to expand enveloped items without having a dialog pop up on the user?
For some reason I now have to enter a path name at a command prompt in order to open another drawing. I also have the same situation when trying to attach a pdf or jpeg file to my drawing. how to revert back to the standard window of opening or attaching options?
Gimp 2.6.6 on Ubuntu Linux 8.04.Scanning using VueScan Professional 8.5.20 with an "Epson Perfection 4490 Photo" scanner. Color profile has been built for the scanner using available photo color target from a well-known German source (can't remember name).Almost all my scanning is of postage stamps and related items -- scanning the actual physical objects, not photos of the objects.
Problem:
The stamps are currently scanned on a black background (for lack of other color possibilities; the final goal is on a black background). After scanning, the background is selected and turned to 100% black to have greatest contrast for the object. When a stamp has a postmark that crosses the edge of the stamp paper, the color of the postmark (usually dark or black) is very close to the color of the scanning background and thus when the background is selected, the selection "leaks" and "follows" the postmark onto the stamp. We have to manually exclude those "leaks" from the desired selection area.
Goal:
To be able to select the background (for change to 100% black) without any "leakage" of the selection onto the stamp objects AND without ANY non-black color artifacts remaining after changing the selection to 100% black.
Attempted Solutions:
We have tried scanning on many different non-black background colors and surfaces, but there are always some extreme-edge color artifacts remaining ... leaving a sort of "halo" effect around the stamp object.Some of this could be attributable to the particular model of scanner, though every scanner I have ever owned had a similar problem to a greater or lesser degree. The width of the "halo" usually depends upon which side of the object it is on vs the direction of travel of the scanner device.
In television broadcasting it is extremely common for somebody to stand in front of a "green screen" and for the green to be electronically replaced with some image or video, etc. (For example, the weather person standing in front of a weather map.) It is rare to see a green "halo" if everything has been done correctly and if the person is wearing the correct type of clothing fabric.
Is there some Gimp method or plug-in or other tool that will better handle this type of use?Recently poster Ron Guilmette discussed his use of "Darla-PurpleFringe.scm" plug-in to remove an artifact caused by a digital camera and subsequent processing.
Is there something like that which can be used to remove a color "halo" that results from using a "green screen" approach to scanning? (I would likely have to select different colors of "green screen" so that such colors are not included in the design of the postage stamp.
I have an upcoming job which requires me to design a series of icons for screen usage (32x32 pixels). I've had plenty of experience designing icons and logos for print, and would appreciate some tips on the method for designing them for screen.
Is the process just a matter of designing the logos in a vector program, importing them into a 72dpi PS file (32x32 pixels), and then optimising the file in Image Ready? (batch process?).
I have a Command Method which has a loop that opens and commits transactions until the user is finished with it and exits.
I would like each transaction to be undone separately but the undo command undoes the CommandMethod (along with all the transactions that occurred while in the loop)
Do I need to use the COM StartUndoMark and EndUndoMark to get this working?
I have to redraw 19th century raster maps that cannot be vectorized automatically.
The borders of the parcels are heavily curved.
I insert the raster map and start to trace/draw on a new layer.
1. Now, if I want to draw a second parcel that has a common curvy border with a first parcel how do I best trace the common border? What I would like is that the vertices along the common border are all displayed so I could just click them rapidly to draw the common border of the second parcel. However I cannot find a way to display all vertices. Is there a solution for this?
2. For drawing a new parcel alongside multiple existing parcels, a beter/faster option would be that I just click the vertices on junctions of the common border and the software would automatically trace the line between the junctions, create all vertices and snap them to the existing vertices on the common border of the existing parcel.
My command line is partially off the screen as shown in the attachments below. It started doing this after a reboot this morning. I can't drag it, select it, or find a way to move it in any way. I tried changing the resolution of my monitor thinking it might "bump" it back on the screen. I'm probably missing something easy but I can't seem to make any difference. Is there a command to prevent the floating option?
My command line is partially off the screen as shown in the attachments below. It started doing this after a reboot this morning. I can't drag it, select it, or find a way to move it in any way. I tried changing the resolution of my monitor thinking it might "bump" it back on the screen. I'm probably missing something easy but I can't seem to make any difference.
Controls the filling of TrueType fonts while plotting and rendering. 0 Displays text as outlines 1 Displays text as filled images
Q1) It doesn't affect the text visible on monitor? Does it? I was expecting to see the result in Print Preview or Print to PDF before plotting to paper but I couldn't. Does it mean there is something wrong or still it will be OK if I plot to paper?
Q2) It is only for TrueType fonts so it doesn't affect other fonts (what other fonts could be? because all fonts in my ACAD are TT)
When entering a command with autocomplete on and the List option on, the list dropdown only displays two or three of the possible choices, because the list box opens below the command line, which is at the bottom of the screen. Unless I minimize acad and adjust the window to only fill part of the screen, I can't see the list. This is a shame, because it is a cool feature. Having a dialog box display off the screen? how to get this to either display on the screen? Here is a screen shot of how it looks at window max and window minimumized.
i just installed the 2012 autocad on my laptop and everytime i use trim or rotate or anything else the screen just goes black and the computer freezes for a few seconds and then it comes back and tell me that its trying to adjust the program with the monitor but it never ends and it keeps doing the same thing. btw my laptop specs are: windows7 home premium, intel i5, 6gb ddr3, intel HD3000 graphics.
SO what is everyone say, trick about speeding up constrain execution. I have started working on this new project with 2013. And i'm finding myself losing alot of time. Basicly what i do is insert part from our database or content center and assemble them. So 80% of my activities on inventor are constraints. Right now i have this assemblies 175 / 156(small to me). And executing a constraint is minimum 4 seconds each time. If you consider that about 3 contraint is needed for each piece and final total part will probably be around 1000. i'm losing alot of time here
Yeah, i am not using preview. Why is inventor recalculating that much each time? Is it doing a rebuilt after each constraint?
What have you done that really increase the excution time of constraints?
Workstaion is Windows 7 64bit Intel Extreme i7cpu I975 @ 3,33 12bg ram 4 ssd in Raid stripping.Nvidia FX3800 Inventor 2013 SP1
For some reason, recently, when i paint in pshop CS2, every 10 or 12 strokes, my computer lags and I have to sit here and wait for it to catch up, and draw the last couple of strokes I made. It is REALLY irritating when painting for he obvious reason that it delays creativity. I have a dual 2 ghz G5 with 7 gb of RAM AND 550 GB of space, so it CAN'T be my comp. Any Ideas why it's laging so badly.
Also, in the last couple of weeks, for some reason, pshop is redrawing my pixels on the screen, making it very difficult to paint. Basically, when I paint, or drag the screen around, it keep residual pixels from my last angle, and they don't move until I drag my brush through them, making it impossible to paint accurately. I have to zoom out and then back in to clear it.
After updating to GIMP2.8.4 I am seeing a constant problem with the canvas not updating after any change unless I move the cursor out of the image area. It starts updating immediately but if I move the cursor back it stops even if it hasn't finished redrawing. This is not just for image changes; the selection outline does not update either unless I move the cursor out of the image area! There's another problem with the selection outline - sometimes it just stops displaying, period, and I ave to use quick mask or save and close GIMP.
Delaying a rule execution in inventor 2012 iLogic. I have a large number of rules that are supposed to be run sequentially. I have noticed rules that quite large numbers of suppression commands takes longer than others, so what's been happening is ilogic runs a rule while its still going through suppressing or unsupressing, it also tries to execute the next rule and results in errors.
A way to put time delay between execution of rules to ensure the preceding rule has finished its task, before the next one is executed.
When I first use the mouse to open a menu (Editor mode) it takes a while for redrawing the menu rectangle. Not a great deal because this only happens the first time I open a menu after launching the application. On the other hand, X3 seems to redraw menus just fine and fast.
I am using PS CS2 an Dell Dimension 9150. 2 Gig of Ram and a Nvidia Gforce 7800. I am having some strange thingws happen when I have several imags open.
If I open one image or possibly two, everythign seems fine. However, if I have several images open--maybe four or five--everytime I issue a command it seems as if teh program looks at or does something to every image that is open. I can see the title area of each window flicker in succession.
So 2011 had some issue and I though 2012 would get those fixed. I was wrong. More problems occur. With 2011 I was able to open assemblies directly through vault. Now with 2012, since the vault issue updates as it opens, I crash on any sizeable model or assembly. So now just to open a file, I must get it, then go to inventor and open it, and hit no when the refresh window come up. If I hit yes, it crashes. If I hit no it open, then if i hit local/global update it crashes. So technically I cant do any new work with any of my larger assemblies (2000+ parts) I have sent out numerous error reposrt, only for autodesk to say that they can replicate the problem. I have SP1 installed, and this is happening with other users at my company as well.
System:
Windows 7 64 Bit Solid State HD 24GB RAM Xenon Processor Nvidia Quadro FX 580
I'm here with 2013 SP2 64 bit Build 200 and two screens. Left screen is graphics area, Browser is on the left of right screen. Graphics is ATI Fire Pro V7800 with driver 9.3.3.3000.
In video (zipped MP4) you see a cutout of both screens, think of screens changing at the left of the browser.
Now, in many cases, after doing an operation, the browser is jumping back to the middle of my graphics in the left screen.