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:
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.)
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.
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]....
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.
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?
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 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.
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.
I have created a form in which I need to see the volume value. For that I created a User Parameter that is set to be equal with part's volume:
Volume=iProperties.Volume
What I don't like is that the precision for the parameter is too long and I can't change it. I changed the precision in Document Settings and also for the parameter itself in the Parameters window, but these changed don't affect what is the form.
I have a form for adjusting center distances between several posts, up to a total of 20 posts. The number of posts is adjustable depending on how many I need. If there is 10 active posts there will be 10 suppressed post. When there are 10 suppressed post, I don`t need them in the form. Is it possible to hide the center distances I don`t need?
I have a global form which is exactly made for a specific assembly for configuration of this very assembly. To make things easier for the user I call another external rule which only opens exactly this assembly.
Now when the user opens the form the assembly is not open and obviously can´t reference the used parameters.
Even after loading the assembly the parameters are not available, which results in something like this:
So this is a really simple question, is there a way to update a form so that it rereads the parameters from the assembly?
What I tried is using iLogicForm.CloseGlobal("Name of form") to no availability and then open it again with iLogicForm.ShowGlobal("Name of form").
But I couldn´t find any further info on the iLogicForm Commands.
I have a iLogic Form which includes several Tabs. Can I control which Tab is active if I select a radio but which controls which feature is active in the part? I have attached a picture of the Form.
AutoCad LT2003 I work in 2D wire form. When I cut and past elements together Z can be anywhere. It becomes a problem trimming , chamfering etc. Is there any way to flatten the drawing so that Z is always zero?