AutoCAD VB :: How To Use Commands In Macro
Jan 31, 2012How can I use the commands in macro .
View 4 RepliesHow can I use the commands in macro .
View 4 RepliesI am trying to create a short cut button with a macor code.
I want it to set up a new orgin and set a base point in xrefs i am creating
The commands i want to combined are the follwoing
UCS enter
3P enter
BASE enter
The macro i am using is the following
^c^c_ucs 3p \_base
but it wont run the base command after it finishes the 3P command
This is whats show up in my commands bar
Command: _ucs
Current ucs name: *WORLD*
Specify origin of UCS or [Face/NAmed/OBject/Previous/View/World/X/Y/Z/ZAxis]
<World>: 3p
[Code]....
I have recently upgraded to ver 2012 from ver 2000. I have numerous macros that were written for the older version that I need to utilize in ver 2012. I manually recreated them in the new version by typing in the commands from ver 2000. As I expected I am getting errors when I try to run these macros in Ver 2012. The mlayer command, for example, does not work. I am pretty sure I need to use the -layer command and have tried this but I still get errors. While I am relatively proficient in ver 2000 I am having some trouble finding commands in ver 2012 that match the old version. Below is an example of a macro from ver 2000 as well as my attempt to rewrite it in ver 2012.
^C^C(mlayer "notes" "cyan" nil) -insert;B6;insert;;;;$S=NUMB0
my rewrite:
^C^C(-layer;m;"notes" "cyan" nil) -insert;B6;insert;;;;$S=NUMB0
I have been using the addin "Save Run Macro" to automatically run a macro every time the "Save" button is pressed.
Any of the following questions about "Save Run Macro"?
1] When I protect the macro from viewing (so I can protect my code) "Save Run Macro" does not see the macro.
2] When I save the part for the first time (ipt, iam or idw/dwg) the macro does not run. I always need to run the macro again.
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.
View 9 Replies View RelatedCan you change the commands in Lt 2014. I want to change the copy command (CO) to (C) and make circle (CC)?
View 5 Replies View RelatedI'm trying to do something like this:
[Autodesk.AutoCAD.Runtime.CommandMethod("REFEDIT", Autodesk.AutoCAD.Runtime.CommandFlags.UsePickSet)]
public void RefEdit() {
Document doc = AcadApp.DocumentManager.MdiActiveDocument;
[Code] ......
I haven't undefined the default command, my definition of REFEDIT executes anyway. I wanna be able to run the default command from my definition.
doc.SendStringToExecute(".REFEDIT ", true, false, false); will loop forever.
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.
View 4 Replies View RelatedInitiated 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].......
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
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 am using R14 autocad.
i have created a project drawing , i have saved it as dwg file. But when i open it all my commands are gone, How to get Commands i have used
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.
View 6 Replies View RelatedI'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?
Also, how do you change the F keys?
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?
How can I restore my commands to the same place? Look like they are on the sides of the screen and they are shrinking.
View 2 Replies View RelatedAutoCAD 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.
View 7 Replies View RelatedWe 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.
View 5 Replies View RelatedI 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.
View 1 Replies View RelatedWhen 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.
View 9 Replies View RelatedIs it possible to view the list of commands that we input in AutocadMechanical in order to consult what we had done until that moment?
View 2 Replies View RelatedI've just installed ACA 2010 on my laptop on Windows XP64 bit
When I select a command such as the wall or door command. The command starts then exits out before I can draw anything.
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?
View 2 Replies View RelatedI can't see the area where I write commands any more, may be a configuration thing because never happened to me before.
View 2 Replies View RelatedI 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.
An older gentleman at our company is very much used to having F12 as endpoint, F11 as intersection and F10 as dist. Now that I've upgraded him to 2011, his life is pretty much ruined.
No matter what I try, I can't get the temporary override buttons to work. F10 always does POLAR, F11 always does OTRACK and F12 always does DYN.
How can I kill AutoCAD's default behavior and implement what he wants done?
I'm really curious, is it possible to call or modify/inherit any autocad command? I'm looking to create a command that hatches the area between an offset, but I can't find any material on how to even utilize existing commands.
View 6 Replies View Related