AutoCAD .NET :: Changes To Form Not Visible While Debugging?
May 6, 2013
I'm using visual studio 2010 and autocad 2012 x64. When I make (visual) changes to a form in the editor between debugging, for example the width of the form, the changes aren't visible on next debugging, it's still the same width as it was before. Same thing for font size, when changed the changes are not showing when debugging again. Almost seems like autocad remebers the previous layout of the form. A new control added between debugging shows up fine.
inside the <PropertyGroup Label="Globals"> node. I switched Platform Toolset from v100 to v90.
Then I launched AutoCAD 2012, loaded my arx solution in VS2010 and from the Tools menu, Attach to Process… I tried to select Attach to Managed v3.5 but it does not exist! All I see is Managed (v2.0, v1.1, v1.0) code or Managed (v4.0) code.
Am I the only one having this much fun with debugging? After sifting the internet I found no similar issues.
I tried a lot of sample (mostly from spidernet) using EntityJig. My problem is always the same: I can't walk through "protected override SamplerStatus Sampler" method by single step debugging. If a Break Point inside this overritten method is reached, a new tab "No source available" is shown and debugging stops.
I am moving from VBA to VS2010/12 and I am having my first problem
Firstly, I read that I should install AutoCad 2013 DoNet Wizard to be able to compile and debug my code. After install it I managed to "debug" when I set the brakepoint but I couldn't change the code while debugging...
I did a fast search in this forum and I found some similar issues but they where old posts (before C3D2012 and VS2012). So, is it possible now to edit code while debugging as I was able to do in VBA? This will save me a lot of time. Mostly in my case once I'll make a lot of beginner mistakes...
In some post I found that we should install a virtual machine and run in 32bits mode to be able to edit. This is the best solution?
When I place a breakpoint inside a Windows form i get the message "No Source Available" from Visual Studio.
I'm using Application.ShowModalDialog(..) to launch the dialog.
How can people develop code without being able to debug? This has been an issue for some versions now and the NEXTFIBERWORLD=0 is not a solution for me since the whole AddIn acts strange when i do that. All I find when searching for this is the NEXTFIBERWORLD trick.
When running VS 2010 express in debug mode, for either AutoCAD 2010 or 2012, 64 bit, AutoCAD gets slower and slower loading with each subsequent debug session until it becomes intolerable. A system restart is necessary. Is this normal? I see this on a fast machine with tons of ram. During the waits there are patches of white screen in the various AutoCAD interface components. The performance hit is exponential with each session. The first debug is normal, The second is slightly slower. The third is noticeably slower and so on.
I am incurring a fatal error while i am running a plugin i have developed in .NET. I am using AutoCAD 2012 and .NET 4.0. Where the fatal error occurs is when i am filtering a list for specific colors and specific linetypes to populate a listbox with. I did a quite a bit of reading and the only thing i have found is ( in debug compiler is giving a little more memory space for said collection and when i run it in outside of debug it is not. ) Now i dont really understand how to fix this issue or can verify that it really is the issue. is there some type of setting i can change inside of autocad for debugging so it doesn't completely shut down?
Dev env: AutoCAD 2012, VS 2010, ObjectARX.Net 2012
A simple windows form command dll to test within the VS2012 + AutoCAD 2012
Bug: when debugging with VS2012, the first command runs fine and I can debug it with breakpoints etc etc. However, after the first debugging session, if I try "File"->"Open" or "New", file dialog will popup and then my AutoCAD 2012 crashs.
It won't happen if I compiled the dll, and load directly from AutoCAD independantly running instance.
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.
Since my Windows-7 PC went to the shop for a clean up following some suspect virus my CS5 Photoshop seem to have some components missing. I can get into CS5 (I had upgraded from CS3 earlier in the year and now I can't get into CS3 even though the icon is still there.) and upload a photo and use the basic tools but I can't use a lot of the ACTIONS: i.e. I get error messages like The command "Feather" is currently not available or "The command Channel Mixer is currently not available"
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?
I want to AutoCAD do not lock it's space, when my Form is shown on display. But I have an exception when I use modeless dialog.
public void MyCommand () { //------------------------------------------------- // Using this code, my program works fine, but locks modal space of AutoCAD System.Windows.Forms.Application.EnableVisualStyles (); System.Windows.Forms.Application.Run (new Form1 ());
// I want to use this instruction to do not lock modal space // Autodesk.AutoCAD.ApplicationServices.Application.ShowModelessDialog (new Form1 ()); //------------------------------------------------- }
If I use modeless dialog I can read and write from acad prompt and create block; BUT I can't create BlockReference.
I get an exception "eLockViolation" in the next code instructions:
Visual Lisper trying to migrate to .net! how to restore a form?
I have an "about" project which contains 3 forms.
Form1 is displayed by default when the command is called...it contains two buttons which both close form1 & open form2 or form3. What I would like to happen is that when form2 or form3 is closed, form1 will be restored.
This is the code which defines the command & shows form1:
Is there a way to get columns in form? I would like to put
Hole F Type { List the types} Hole F Location {input box} Hole N Type { List the types} Hole N Location {input box} Hole G Type { List the types} Hole G Location {input box}
I'm trying to enter a model parameter value with a VBA form, but I don't know which type of control to use neither how to write the code. I want to enter a number or a value with any control and use this value for modify a model parameter.
I have a simple code with a line:
oModelParams.Item("z").Value = 25
I want to make something like:
assuming that "TextBox1.Value" is a numeric value obtained with a control at the form
Am into Customization of AutoCAD and the project which I am doing is almost completed. There is a small problem. When i double click on Line Dimension i should get a form to change together Line and Dimension, like we have in Inventor.
When an macro of a Lisp is active I can zoom and pan in a drawing. I press Escape to quit.Why can't I do that when a form is active in vba? Is that only because Showmodal is on?
I don’t often used VB.net but I would like to know how I can create a form with a button that will send a command to AutoCAD. I’ve goggled but get nothing near enough to what I find understandable.
I have a ipt which is controlled via an ilogic form,this form is opened by ilogic code, which in turn is triggered when the ipt is opened.
my problem is when the part is placed within an assembly the said form is triggered and the same happens when the assembly is reopened!.... I would prefer if the form opened only when the ipt is opened or edited....
Is there a snippet of code for this? Or is it even possible?
I am creating a large form. The goal of the form means I am unable to break it down into smaller forms as there is a great deal of interaction between all levels of the form.
One of my first fields is a multi-value field (Foundation Type) with four options (None, Slab, Piers, Wall). Three of those options have a group of fields lower in the form with between 1 and 5 fields.
(Multi:Value Option: Example of fields specific to that option)
I currently disable all of the groups of fields that are not part of the active option in the primary multi-value field throught the (Enabling Paramter Name) option with a rule. This keeps the user from entering values that affect a Foundation Type that is not currently active, but the disabled fields take up a lot of room on my form and may confuse end user less familiar with the system,
The group function in the form has a minimize toggle next to the group name, but the Form Editor does not show any options to manipulate this toggle. Is there a way to automatically toggle this minimize/maximize function through a rule or other means)? Or are there any other means of hiding form fields that are not currently enabled?
I have created a basic add-on that shows a modal windows form. The only issue I am running into is that I am completely unable to capture any key events in the form. I just want to make the escape key close my form, but I'm having no luck. Here is my basic setup:
<CommandMethod("myCommand")> _Public Sub myCommand() Dim myForm As Form1 = New Form1Autodesk. AutoCAD. Application Services. Application.ShowModalDialog(myForm)End Sub
Then in the form code, I have this, for testing purposes:
Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress MsgBox("keypress") End Sub
I've also tried KeyUp and KeyDown. Key presses are working inside the form (I can use the keyboard to select an item in a combobox, for example), but I never hit the event handlers.