AutoCAD .NET :: Break Points Not Stopping Code On Modeless Forms?
Mar 8, 2012
I am using acad 2012, and VS 2010 (C#) on win 7 64 bit.
I made a form, and showing it as modeless via Application.ShowModelessDialog... as recommended by everyone and that works fine.
I have a button that does something, and I set a break point right on the first line of code for its callback.
The button runs fine, but VS is not stopping at the break point.
Is there a different technique required when debugging modeless forms?
[URL]
View 5 Replies
ADVERTISEMENT
Apr 12, 2012
I have an ipart that uses a simple form to control its length. This part is used in an iassembly whic has other forms to control constraints.
I would like to be able drive the ipart form from inside the assembly.
View 1 Replies
View Related
Feb 27, 2012
I'm using VB.Net in Visual Studio version 2010 with AutoCad 2010. I haven't had a problem with this before, but now it seems that the program ignores break points that I set in the code when I'm trying to debug. I just want to pause the code and add a "watch" to a variable.
View 7 Replies
View Related
Aug 2, 2013
I have acquired a new Win 7 32bit laptop. Now when I debug in 2011, I can't use edit and continue. 2010, 2012 & 2013 are all fine. I installed all 4 from the installer with no changes.
View 3 Replies
View Related
Jul 13, 2012
I am building a new template for our office and just finished building my Description Key Code Set, and Figure Prefix Database. I stopped to do a quick trial run on one of our surveying files, but when I imported the file all of the figure lines imported correctly but the points all came in the default point style and label style. I went to the Settings Tab/Points/Commands and made sure my "Disable Description Keys" was set to False. This is not my first template and I have never had this issue before.
View 4 Replies
View Related
Jul 11, 2012
I'm trying to take a shape from illustrator and have the iOS graphics engine draw it without having to import the file. In order to do this, I need to somehow get a text break down of all the bezier paths / curves / points that comprise the shape so I can tell the iOS graphics engine the points that need to be drawn. Is there anyway to get a list of these points from illustrator?
View 1 Replies
View Related
Aug 18, 2011
We are using Civil 3d 2010.
In a description key code file, I would assume that a description key code of simply * would capture all points, but it seems this code gets ignored. How do we create a key code that captures all points?
For example, if I want to take advantage of the hierarchical processing of DKC files to assign layers, point styles, label styles, etc, I can theoretically create a 'design' DKC file that makes all points, regardless of their desciptions, to be sized relatively, and then move that DKC file to the top of the DKC file list.
I know this can be accomplished through the "_all points" point group, but I want to be able to control point layers as well, and as far as I know, neither point groups, point styles, nor label styles affect the insertion layer of a point, but DKC files do.
View 4 Replies
View Related
Nov 26, 2013
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:
//------------------------------------------------------------------------------------------------------------------------------
public void CreateBlockReference (string strBlockName, Point3d Origin) {
using( Transaction t = db.TransactionManager.StartTransaction () ) {
BlockTable btTable = (BlockTable)t.GetObject (db.BlockTableId, OpenMode.ForRead); // <--- EXCEPTION
[Code] ..........
View 2 Replies
View Related
Mar 19, 2010
Is it possible to change te Break command permanently in the Break at Point command?I never use break, only break at point.
Changing te macro for break ^C^C_break to the macro for break at point ^C^C_break \_f @ doesn't work.
To do it manualy at the command prompt takes to much keyboard entries and mouse clicking.
View 6 Replies
View Related
Dec 18, 2013
Is it possible to keep a modeless dialog box permanently open (aside) just like a properties or tool pallete dialog box?If Yes, by keeping permanently, can I work in autocad environment normally as usual, like save, edit, close and open other drawings?
Note: Just assume that I am making a calculator-like dialog box. I would like to keep it open till the autocad application closes? (even in zero document mode.)
View 2 Replies
View Related
Nov 11, 2013
I want to create a modeless dialog box that is associated with Excel instead of AutoCAD. The program will run in AutoCAD and then it will open an instance of Excel. I want the ability for the user to then select a button on the modeless dialog that will import in data from the Excel Worksheet into AutoCAD. My preference is for the modeless dialog to be shown in Excel and not necessarily be tied to AutoCAD.
View 1 Replies
View Related
Mar 20, 2011
how I could force a modeless form to keep focus. There is a sample on the ObjectARX docs but I can find anything for Dot Net.
View 3 Replies
View Related
Sep 8, 2011
I have modeless dialog. On dialog I have button on which user clicks, when he wants to pick insertion point. Problem is when I exit dialog the command line is still in command GetPoint (doesn't show usual Command.My code at the moment is:
// this.Visible = false;
AppServ.Document adoc = AppServ.Application.DocumentManager.MdiActiveDocument;
AppServ.DocumentLock dl = adoc.LockDocument();
Editor ed = adoc.Editor;
using (ed.StartUserInteraction(this))
{
[code]....
View 9 Replies
View Related
Jul 25, 2011
I am working on a .Net plugin and need to handle some events. The first one I'm playing with is the ability to prevent a block from being erased. My method for doing this was to add a handler to the database object of the current document, and look for blocks being erased and then check its name/attributes. I realize that the code is buggy and will only work for blocks - but it's currently just a proof of concept. I have hard-coded the block name, and set a check for if the attributes contain "123". It seems to work, but after I un-erase the blocks they don't redraw. I've gotten better results with calling .Draw on the object, but I still have to regen the drawing manually.
<CommandMethod("protectblock", CommandFlags.Session)> _ Public Sub protectblock() Dim currentDocument As Document = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument Dim currentDatabase As Database = currentDocument.Database AddHandler currentDatabase.ObjectErased, New ObjectErasedEventHandler(AddressOf callback_ObjectErased) End Sub
[code]....
View 4 Replies
View Related
May 22, 2012
Is there anyway to stop AutoCAD executing the command used to create a palette upon AutoCAD startup?
I know constructing the palette without a GUID prevents this behaviour but I'd like keep this to preserve the palette size, position, state etc given when a GUID is provided.
I had hoped I could just close / make not visible the palette just before AutoCAD exits and it wouldn't try and restore the palette upon the next AutoCAD started. I've tried doing this in the Application.BeginQuit event but the command is still called the next time AutoCAD is started.
View 6 Replies
View Related
Jan 22, 2013
I usually use my mbutton to pan dwg. Just started using AutoCAD 2013 and I notice it zoom extents everytime I press the mbutton (the middle scrollwheel button). How do I disable this zoom extents?
One more thing, how do I disable the annoying auto complete whenever I type in a command? It seems to be slowing my work flow.
View 6 Replies
View Related
Apr 24, 2012
I'had just met another matter for my Add-on. I noticed that when I instance a new drawing, while a first one is opened, when I load a new Form, this one keep all first drawing's properties. What could happen?
For example, I would like to add the layer list on a ComboBox.
My source:
Private Sub LayerBox_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load '***************************' '* Initialisation LayerBox *' '***************************' Using acTrans = acCurDb.TransactionManager.StartTransaction() acLyrTbl = acTrans.GetObject(acCurDb.LayerTableId, OpenMode.ForRead) For Each acObjId As ObjectId In acLyrTbl acLyrTblRec = acTrans.GetObject(acObjId, OpenMode.ForRead) ComboBox1.Items.Add(acLyrTblRec.Name) Next acObjId End Using End Sub
This source works, but if i instance a new form on a new drawing, the first drawing's layer list is kept and the new layer list on the second drawing is ignored!
View 4 Replies
View Related
Apr 30, 2012
What is the best way to make art forms with inventor?
View 9 Replies
View Related
Nov 7, 2012
how to delete iLogic forms from Inventor 2013 parts/assembly using VB.net 2010?
I am able to delete all the rule using "Activated_iLogic.DeleteAllRules(PartDoc)" but "Activated_iLogic.DeleteAllForms(PartDoc)" or "Activated_iLogic.DeleteForm(PartDoc, FormName)" does not give me the result I was expecting and Google is not showing any result related to this.
View 5 Replies
View Related
Nov 14, 2013
From iLogic i got a lot of information. And i want to configure or display this in a form.
But without having to make parameters for everything.
Example:
Display the stocknumber of an ipart/iassembly.
Configure the parameters from a part in the main assembly.
View 7 Replies
View Related
Dec 22, 2013
Can you round over existing solid forms in autocad 2010. My solid is 30mm thick and I want to round-over the edges with a 6.5mm radius.
View 2 Replies
View Related
Nov 16, 2011
I am just playing with iLogic forms and I have set a slider to move a part in 15 degree steps from 90 to 180 degrees, all is fine but the slider is on the left for 90 degrees and on the right for 180 degrees, I would like it to be able to be set so that 180 is on the left of the slider and 90 is on the right of the slider. is this possible?
View 3 Replies
View Related
Aug 3, 2011
I'm trying to build a simple ilogic form to fill out iproperty infomation for parts we generate. Our company only uses a few of fields that are available. The problem is that the Physical tab is not available in the form editor. I would like to add this field to my form to be able to select the material for the part. The style/standard editor in our part template file holds all materials we use. Summary, Project, Status, and Custom are all available, why isn't Physical?
View 9 Replies
View Related
Sep 9, 2013
I have a small problem with iLogic forms picture folder. Is there a way of seting the image by the selected tab ?
I want to update the image by the tab selection.
I have tried "if" or "select case" and neither one worked. as I am saying Stair_Properties = True it only makes the tab active. It doesnt indicate if it is selected, here is the code :
If Stair_Properties = True ThenImage = "Image 01"End IfIf Railing_Properties = True ThenImage = "Image 02"End IfIf Riser_Properties = True ThenImage = "Image 03"End If'Select Case Image'Case Stair_Properties'Image = "Image 01"'Case Railing_Properties'Image = "Image 02"'Case Riser_Properties'Image = "Image 03"'End Select
View 1 Replies
View Related
Oct 25, 2012
I would like to know if it is possible to make a form with multiple forms, depending on the selection a could build a rectangle, or a cilynder or a cone.
View 3 Replies
View Related
Aug 5, 2011
What is it for and how do I use it? Will it allow me to switch between different pictures for display on my iLogic form?
If so? How do I set which picture to display?
View 5 Replies
View Related
Aug 3, 2012
how to create a check box for parameters in forms in inventor 2013, i have modelling a door which contains to many types of locks and where they are placed so i need to create check boxes to pick multiple items so i need to know how to insert them.
View 8 Replies
View Related
Jan 10, 2014
I had some success transferring geometries, generated with an advanced math software, to Inventor using IGES files containing Manifold Solid B-Rep Object Entities (Type 186) (see the specification IGES5-3_forDownload-1.pdf). Now I would like to include several Type 186 entities into a single IGES file and form the geometrical unit of these (and them), for which the IGES Boolean Tree Entity (Type 180) seems to exist. I'll do some trial-and-error testing, but it would be very useful to have a (reliable) list of all IGES entities the Inventor IGES import function does or does not support (like these: Transcendata, MoldflowInsight). Unfortunately I could not find such a list anywhere.
Another question: Are the IGES import/export functions of Inventor written by Autodesk (and/)or are third-party libraries used? If the latter, which ones?
View 2 Replies
View Related
Oct 13, 2011
I set up a Form in Inventor using parameters that are driven from Excel. I cannot edit the form.
View 6 Replies
View Related
Dec 31, 2013
Aleays that I change the selection "MODO" ("D e i" instead of "Z1 e Z2" and vice-versa), I need run one more time for the rule sense the changing.. when the right is run one time.
iLogicForm.Show("FLAMA-GEARS", FormMode.Modal) If MODO = "D e i" Then iLogicForm.Show("D e i", FormMode.Modal) End If If MODO = "Z1 e Z2" Then iLogicForm.Show("Z1 e Z2", FormMode.Modal) End If
View 3 Replies
View Related
Apr 4, 2013
I would like to instantly launch an External Rule just by clicking on a button in the Global Forms area of the iLogic browser. Is this possible, and if so, how would I do it?
Product Design Suite Ultimate 2014 | Vault Basic 2014 (SP1)
Dell Precision M6600 | Intel i7-2820QM - 16GB
nVIDIA Quadro 4000M | Windows 7/64 Pro
View 2 Replies
View Related