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?
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.
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
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?
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 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.
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.
I am working on getting some settings done, moving from 2008 to 2012. How do you set the Middle Mouse Button (wheel) to either Zoom All or Zoom Extents when you double click it? I thought it was set in the Main CUI file.
My keyboard has a zoom key with + and - selections. I use to use this key in drawings to zoom in and out when in the AutoCAD application when we had Windows XP. Now that I have Windows 7 I can't do this. I can't find out how to assign this key on the Microsoft Keyboard interactive software either. I have the other keys assigned as desired.
Can I still use my keyboard zoom key to zoom in and out in drawings? If so, how do I set this up in AutoCAD, or do I need to do this through a Microsoft keyboard application?
I am having problems with zoom, pan and rotate at high zoom level. The movements becoming jerky and delayed. But for whatever reason the problem exists in some assembly files and not in the others.
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.
I use Photoshop CS2 to create Designs for webpages. These designs have pixel-exact elements, e.g. a 1-pixel-line from top to bottom.
Now when I zoom in (>100, then I have sort of anti-alias, so that the 1-pixel-line isn't only one blue anymore, but it has different blue tones. I guess for photo manipulations etc. this anti-aliasing zoom is great, but for webdesign it sucks because I don't know if only the zoom make the line "corrupt" or if it really is corrupt.
I am attempting to execute a set of actions containing two "Save" commands. The first works fine while the second does not. (The destination folder is ignored and the file is saved in the same folder as the first Save.) The only difference I can see is that the second "Save" is modal and the other is not. The fact that the destination folder is contained in the action makes me think this ought to work and I'm missing something obvious.
I have a JPG of the action set but I can't see how to attach it....
I can't find in new max (2013) settings for zoom. I want to set Zoom about mouse pointer and adjust a bit zoom speed (now it is too much for one mouse wheel step).
I can't find zoom settings in 3ds max 2013. Where they are? I think that in previous max it was in Customize -> Viewports tab. But now it is not there.
I tried searching the forums for this topic but the search thing didn't seem to work.
A friend of mine installed Photoshop CS for me (an upgrade from 7.0) and for some reason I can't use CTRL + and CTRL - to zoom in and out, I have to use the mouse with the zoom tool which slows me down quite a bit over the course of 20 or so photo edits.
Can anyone shed some light on this? I checked Keyboard shortcuts in the preferences menu and they were correct. I've made no other changes to the program.
I just thought of something that would be really cool if it were possible. I use a mouse all the time for CAD on my laptop. It's a Dell Precisiom M6500 so it is "designed" for CAD and other production work. I would like to set it up so that any time I drag on the touchpad, it pans around the drawing. Essentially just one finger scroll. Maybe pinch to zoom in and out would be cool too. This should work without clicking.
I already have the middle button on my mouse for press and hold to pan, but I like options...
I use AutoCAD 2011 LT and I would like to put a pan and zoom (even a pan only window would be very useful) window on. Is that possible in that version?
Or alternatively can I go back from the annoying new menu design to the ordinary one?
I'm playing around with the walk and fly functions. I'm able to navigate around the model, but if I stand in a room the zoom is much to great. It's like I'm looking around the room through binoculars.
I have a georeferenced drawing with aerial photos and linework that I have Xref'd in a recent survey drawing. I checked that the coordinate systems match and the xref shows that it is loaded and the layers are listed as on and thawed.
However, the xref is not visible.
I tried a new blank drawing using the Map 3D template, same coordinate system. Same thing happens. However, this time, I noticed that the xref is visible when zoomed out. When I zoom in, it disappears. Screen shot attached.
If you attach a shapefile through "Connect to Data" and try to zoom to extents by right clicking on the shapefile under "Task Pane" it zooms to a different location. The shapefile and drawing PRJ is in LL84. It works in Civil3D2010 but not in 11 or 12. I have Service pack 3 installed. Why?
If I zoom to page in an IDW the paper space does not fill the screen. On my screen I have 15mm of space between the paper and edge of workspace.
Is there a way to make this fill the workspace by whichever is the greater size (height or width) of paper? I just want the page to fill the screen more.
I have a county wide aerial image in jp2 format, connected through Data Connect and every time I pan or zoom it says "executing query". It is very slow getting around in the drawing (tracing over tree line, roads, etc.). I have a Windows 7 64-bit machine with 6 GB of RAM. Is there a setting I can turn off to make zooming, panning, changing layouts, etc. faster?
I have some layouts with one viewport per page, and i am trying to make a small program to zoom to an incremental window from left to right for some model space cross sections for highways.
Any code to go into each layout, find the viewport and zoom by a window? i can derive from there.
Civil 3D 2012 Work: Xeon W3503, 12GB, Quadro 2000, Dell P2211H x 2 Home: 3930k, 12GB, GTX 590, U3011, QX2710