AutoCAD Inventor :: Get Value From A Control At VBA Form
Apr 4, 2013
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
oModelParams.Item("z").Value = "TextBox1.Value"
View 1 Replies
ADVERTISEMENT
Mar 21, 2013
I am trying to create a windows form within iLogic. Everything works except the lines defining the location on the controls. I keep getting the following error: 'New' cannot be used on an interface. The error refers to lines in the code that try to set the control location on the form. (i.e. "button1.Location = New Point(10,10)") Ihave pasted the code below and have it attached as well. I am in Inventor 2013.
AddReference ("C:WindowsMicrosoft.NETassemblyGAC_MSILSystem.Drawingv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Drawing.dll")Dim oOccurrence As ComponentOccurrenceTry oOccurrence = ThisDoc.Document.SelectSet.Item(1)Catch MessageBox.Show("Please select a component before running this rule.", "iLogic")
[Code] ........
View 1 Replies
View Related
Apr 10, 2013
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?
View 2 Replies
View Related
Jul 27, 2012
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}
If not this form will be off the monitor.
View 9 Replies
View Related
Sep 26, 2013
how I can get a form onto the ribbon or create a custom Icon to run it.
I have read up on afew forums that VB needs to be used in order to achive this but I want to double check.
I dont have VB but if it is the only way to get this to work I will download it.
View 1 Replies
View Related
Nov 6, 2012
Ok so where are Global Forms saved in 2013?
Inventor Pro 2013 (PDS Ultimate)
Vault Pro 2013
Windows 7 64
Xeon 2.4 Ghz 12GB
View 3 Replies
View Related
Nov 29, 2012
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?
View 2 Replies
View Related
Dec 10, 2013
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)
Slab: Thickness, Edge Depth, Edge Width
Piers: Diameter, Depth.Offset
Wall: Footing (T/F), Depth, Width,
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?
View 2 Replies
View Related
Apr 11, 2013
I have the following problem:
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.
View 5 Replies
View Related
Dec 13, 2011
Why can't you show the file name on a form (without using iLogic to link it to a property)?
View 2 Replies
View Related
Feb 10, 2013
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?
View 2 Replies
View Related
Sep 13, 2013
I´m having a bit of an issue with a form.
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.
View 3 Replies
View Related
Apr 17, 2012
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.
View 1 Replies
View Related
Aug 17, 2012
I am trying to put an immediate update box on my form in ilogic. I want to be able to change parameters on my form without updating the model. There is this option in the parameters window but not in the form. How can I accomplish this?
View 1 Replies
View Related
Apr 22, 2013
I made a model that can be adjusted by using a ilogic form.
This alters the parameters in my "master" part & then changes my part in my assembly.
Problem: the form is located in my "master" part is there a way to access the form from my assembly?
Inventor 2013
View 9 Replies
View Related
Oct 8, 2012
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.
View 11 Replies
View Related
Dec 5, 2011
I'm trying to setup a custom form that matches my company's title block information. My desired end result is to eliminate the need to open the iproperties (some users find it confusing/inconvient). I have a seperate tab for the check/status information listed in the "status" tab of the iproperties. In the iproperties, these are activated and deactivated with a check box. When I add these properties to my form, I have the ability to open a calendar but I have no way of knowing if the date is activate or not.
I saw in another post, that a ticket was opened to added the material selection to the options in forms. Could this functionality be added as well?
View 1 Replies
View Related
Aug 1, 2012
Can you have dropdowns in an ilogic FORM? For example I want to setup 5 choices for a custom iproperty. Then when I run the form I can pick from those 5 choices only? Please click "Accept as Solution" if this response answers your question.
Down with IDW/DWG files..... Long live 3D PMI..
View 9 Replies
View Related
May 6, 2013
i want to use pictures with my forms and was wondering if i can use them like the way i showed in attached image.
the CaseA image is the one i can currently use and CaseB is the way i want to use. My reason to do this is, i have alot of parameters to change and having both the picture and a menu below/above takes alot of space which also seems redundant.
View 7 Replies
View Related
Oct 8, 2013
Is there anyway to reference a form and its specific items in iLogic. For example, say I wanted to change a label on the form when the code ran. How would I do something like this?
Form1.Label1.Value = "SomeString" ?
View 2 Replies
View Related
Nov 8, 2012
I have a VBA form coded that we use to generate part numbers and descriptions that then populate the iProperties. We often use the part sizes in the description. I would like to be able to put a button on the form that allows users to use the "Measure Distance" tool so that they can measure the part while they are creating the description.
Any code that I could use to activate the "measure" tool while a vba form is active?
View 8 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
Jul 24, 2013
I have a form used to select from pre-defined settings (case statements in the rule) and custom entry.
I have a drop down that provides the selections from the pre-defined stuff or custom with fields that show the results.
If custom is selected the user is prompted to enter data in popup dialog boxes which all works fine but I would rather select custom and enter the data in the fields on the form than in the popup. can that be done?
See the png files
I want to just enter the data in without the popup box
View 2 Replies
View Related
Aug 31, 2012
I have one particular file which will not allow me to add an iLogic form. When I select "Add Form" it does nothing. This only happens in this one file. I can open other files in the same session and they work fine. I can add iLogic rules to this file but I can't create forms.
View 3 Replies
View Related
Jun 19, 2013
I have this grid template i use for my layouts I would like to edit text from my form.. How to do???
In attached part I have it to work with the number but not with letters
View 1 Replies
View Related
Aug 14, 2013
I would like to split my form vertically. I have a number fo fields that are used to select options in my system. The fields span the width of the form which due to graphics used is fairly wide. I would like to add a discription field in line with and next to my selections.
View 8 Replies
View Related
Dec 7, 2012
Inventor 2013 part file attached.
I am trying to get the rectangle pattern to form 8 blades of the same shape and height across the barrel.A picture shows how the height is lost within the barrel..The only blade which is the same height is the 2 outside blades
Is the rectangle the right tool to produce the result?
View 5 Replies
View Related
May 15, 2013
I have created a new drawing template using an iLogic Form and Prompted Entry. What I would like is a Rule that is generated when a user opens a new drawing template. The rule that is created would open up the new iLogic Form I created where various Title Block information is entered (Client Name, Client Address, Date, Drawn By, etc... I know you can manually open the iLogic Form that I created via the iLogic tab, but I would prefer the form open upon opening the new drawing. Once comlpeted, the user than imputs the Prompted Entry values (Drawing Name, Drawing Number, etc...).
View 4 Replies
View Related
Aug 1, 2013
I have created a new form using three fields, to show quantities, job no etc. and was wondering what code I need to use to be able to push enter after filling out a field and then jumping to the next field?
View 4 Replies
View Related
Jul 15, 2013
I want to set Default BOM Structure (Document Settings/Bill of Materials) in my own Form (with Rule) for active part/assembly.
This Form (Rule) will be in template. Is there any simple way to do this (picture is in attachment)?
View 8 Replies
View Related
Jan 8, 2014
I am struggling to populate a list view on my windows form. I have tried various methods but its not working. I can get the values into the listview but where i need 2 columns with many rows, i am just get 5 columns.
my list view needs to populate 2 columns. the first column is visible and shows a part name. the second column is hidden and holds a different value. I recursively loop through records and i need to add a row per record. This is captured with j. How can i add the correct amount of rows per j and the columns to hold the correct data?
View 2 Replies
View Related