AutoCAD .NET :: Transparent Commands During GetPoint?
Sep 25, 2012
I'm using Application.ShowModalDialog to display a modal form to the user launched from a button on a tab in a PaletteSet. The modal dialog lets the user click a button to select a point. Is there any way that I can let the user run transparent commands and still return to the modal dialog?
The ideal would be for the user to be able to zoom and pan transparently from the GetPoint prompt. I could also provide a button to allow the user to reposition the drawing.
Using edUsrInt As EditorUserInteraction = ed.StartUserInteraction(Me.Handle) ' Get the insertion point from the userDim prPtOpts As New Prompt Point Options(vbLf & "Select center point: ") prPtRes = ed.GetPoint(prPtOpts)transientGraphic = DrawTransientGraphic(prPtRes.Value, BlockScale) edUsrInt. End()Me.Focus() End Using
We have lost the use of the two transparent commands 'spe and 'sse. When I either click on the toolbar or type 'spe or '_spe in the middle of a command, they don't work like the other transparent commands. When I click on toolbar by itself, I get an error "Unknown comment "SPE". The other transparent commands say something like "PSE must be called from within another command".
Also, is the actual comment 'spe the command name or is it an alias. I was thinking that if I knew the command name, I could create another allias as a work around.
I am trying to limit the input that can be processed when using the getpoint lisp function. So the code below prevents the user from entering null input (i.e just hitting a carraige return) as specified by the initget bit code of 1, or a non-numeric entry (i.e. for instance, typing S and hitting a carriage return) as the getpoint function does not allow for a non-numeric entry.
(initget 1) (setq PT1 (getpoint " Pick Location of First Point: "))
However, the issue is that the code does NOT prevent the user from entering a number and hitting return. For instance, if I enter the number 100 and hit return, getpoint accepts this as a valid entry and returns a point value that is projected, in some form or fashion, from I believe the last entered point or (0,0,0) if a point was not previously entered. I only want the user to be able to select a point with a mouse click and not type in a number or point coordinate.
So is there some way with AutoLISP or Visual Lisp that you can prevent the user from typing in a numeric value and hitting a carraige return in conjuction with the getpoint function? Or is there some other function that will provide the getpoint functionality while providing the entry limitations described?
I have created a hatch with a Transparency of 30% so I can see what's underneath.
All looks good in Model Space but when I do a print preview from Paper Space the hatch appears to be completely solid in color again and has no transparency.
I have set up my standard commands to use a certain layer, ie
~Dimension command switches to my Dimension layer ~Leader command switches to my Text layer
I don't have my Line command set to any layer. I switch layers before drawing a line. I like drawing lines on different layers as needed. I don't like the default to be the Object layer.
Is it possible to have a pop menu open when I select a command to choose a layer? I would like to set a second line command with that feature.
The issue I am having is I can't see some of my commands. For example, if i paste from the clip I cannot see whatever it is I pasted until I say where I want it.
I haven't had enough of an application to justify trying to figure it out. At this point however, i've designed a small conversion form that can be called by our engineers and allow them to convert between various units. I'd like to have a button though that allows them to call up the Quick Calc application from within AutoCAD. What i'm wondering is how do i actually call a native autoCAD command? Is it possible and if so where could i find documentation on the syntax. For what it's worth i'm working in C# in VS 2010.
Initiated a project with the AutoDesk .net templates for VB.net. I've kept the Extension Application loader that's part of the template, however commands that reside within my other classes aren't recognized. The extension is running because it's responding properly to events that trigger, however I can't call my custom command names from the command line. Could this be a function of the namespace that the commands are in?
Namespace IWC ' This class is instantiated by AutoCAD once and kept alive for the ' duration of the session. If you don't do any one time initialization ' then you should remove this class. Public Class MyPlugin Implements IExtensionApplication Public Sub Initialize() Implements IExtensionApplication.Initialize Dim NewLayer = New IWCLayer NewLayer.IWCLayerSysStart() End Sub Public Sub Terminate() Implements IExtensionApplication.Terminate MsgBox("Layer System Terminating", [code].......
1. When I attempt to COPY or MOVE an object that has a line attached to it the line also moves with it. It seems as though AutoCAD is considering them as one unit instead of separate objects. This is especially frustrating when using lines to mark Datum placements.
2. Also, I notice that the above occurs when moving objects, but instead of moving a line with the selection it stretches it. I must have an option selected, but would like to change that.
I found out that my current autocad architect 2011 move command are same with copy command. And also i found out everytime went i start my autocad programe that is an error message like #@%&*&%#@ that i cant even understand.
I've got most of my most commonly used keyboard commands changed to simplified versions that suit me, however, I have not figured out how to change the snap commands. I still type "nea" and "per" to snap to nearest and perpendicular. How do I change these?
one of the pc at my work place seemed to be working funny, compared to the other pc.
For example, the command CO won't work, but instead i have to type CC to copy. The command MA doesn't work at all, and i don't know how to match properties.
Along the way, there are other commands that I encounter before. Basically, it jus feels funny for this PC.
Is there any way to restore every single setting without re-installing the autocad?
AutoCAD is constantly losing settings and commands that I give it. The Undo command is one of them. I'll set it to undo [ALL] and after a while (a couple of days maybe) I will find this command on a different setting. This has been happening to many other commands as well.
We recently upgraded to AutoCad 2014 and the acad.pgp file does not seem to load correctly on one of 3 stations.The other 2 seem to be working just fine.
I located the file it is referencing with the (findfile "ACAD.PGP") command, to be sure I am looking at the correct one.
What happens is when I type PS in the command line it should initiate the Paperspace command. It clearly states in the .pgp file " PS, *PSPACE ". However what shows in the command line is "Pick line"! To be sure it is loaded I ran the REINIT command.
I have been having a problem with AutoCad 2012 LT when a am working in the model space I can you the ctrl c and ctrl p commands for a short amount of time and then they will not work. I can open a different model space and they will work in that one, but when I go back to the original one the will not work. I have tried shutting down autocad and the computer, but when I open everything back up the commands still will not work in that model space. I have reinstalled autocad and that brings them back for a short amount of time.
I have snap on, and Im drawing as usual. At some point I want to mirror something:
MIRROR -select object, done, enter, -select two dots of the axis
in this phase, where I'm supposed to pick the points, snap turns off, or stops working. I turn it on and off, I uncheck all the options, check them again.
I am trying out autocad 2012 for mac. I can't find the 3d commands like I could on the windows version. I don't know if it because of the new 2012 version but I can't find the tool pallettes for the 3D tools.
When I try typing "L" for line and hit enter (space bar), then click the mouse to draw a line nothing happens. The command is active and the grips are active like the command is ready for me to click mouse to draw a line. Also, hitting the space bar again does nothing.
It seems that the 'combine zoom and pan commands' option doesn't work correctly. Let's say it doesn't react as i am used to in previous version. now i have to do the undo command or 'ctrl z' many times before i am back at the point where i want to go. I using the middle mouse button often to zoom in and out, and for panning. but now there are a lot of steps to undo if you want to go back.
I tried to switch of and on this option in the options dialog but no difference.
I have been working on an extensive template and wanted to add some layer filters too it. I was wondering if there was a list anywhere that outlines what different characters mean to the fillter? What I mean is... I know that ~*|* excludes xfref layers because ~ means 'not' and * means "anything" and | is the character we are looking for. But what are all the other things that filters understand?
I have AutoCAD LT 2011 running on Windows 7 64. I'm using it since long time.
Two weeks ago I started having this problem: as soon as I select any command from the File menu that should open a dialog (Open... Save As... Import...) the program freezes and I see (not responding) in the upper left title bar.
No way to go on. The only solution is to close the program.
Reinstallation from scratch included. System recovery to factory image included. No solution.