AutoCAD Inventor :: Populate Listview On Windows Form

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


ADVERTISEMENT

AutoCAD Inventor :: ILogic - Can't Set Location For Windows Form Control

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

AutoCAD Inventor :: Populating Listview - Get Text

Jan 8, 2014

So im populating a listview. The difference between VBA & .Net if massive....... In my Listview, i have 2 columns. I need to do 2 things-

1. select the first row of the newly populated listview

2. select the value from the selected row in the second column

Example

Part            Path
Part1         c:MyPath1
Part2         c:MyPath2
Part3         c:MyPath3
Part4         c:MyPath4

c:MyPath1 is the value i am trying to get.

View 1 Replies View Related

AutoCAD .NET :: Can't Capture Key Events In Windows Form

Mar 15, 2012

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.

View 4 Replies View Related

AutoCAD .NET :: Open DXF File From Windows Form Button

Nov 26, 2012

I got a problem to open a dxf file. If I use command method then I can easily do that. But I want to open that file by clicking a button from my windows form. I did the coding for that specified button like below:

Private Sub Button6_Click(sender As System.Object, e As System.EventArgs) Handles Button6.Click
Dim strFileName AsString
LoadDXF.InitialDirectory = "C:"
LoadDXF.Title = "Open DXF File"

[Code] ......

After invoke that button I got a error like below:

How can I open the drawing without commandFlags.session? I want to use the button of my form to open that dxf file.

View 5 Replies View Related

AutoCAD .NET :: Windows Form Based Stand Alone Application

Feb 9, 2012

i developed a windows form based stand alone application in Vb.net 2010 that calculates all the geometry data needed for a Spur Gear ,my final goal is to send all Calculated data needed in Autocad 2012 and draw automatticly the Spur Gear.

At first i started to experiment my self with a simple only task (created a new project only for this) to draw 4 circles with the same center (radius1,2,3,4) in autocad with a simple click of the command button.

The code i used is the following (for 1circle) but it returned a error  like this>> SendACommandToAutoCAD()-->>Could not load file or assembly 'Acmgd, Version=18.2.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.Runtime
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[Code]....

View 3 Replies View Related

AutoCAD Inventor :: How To Populate Multivalue PARAMETER

Jul 24, 2012

How to populate an Inventor Multivalue PARAMETER using a For cycle in iLogic according to a variable index corresponding to a different number of array items?

for example:

i grab some data from a Rule and populate an Arraylist variable. I trace the number of instances using a counter. after the data acquisition I want to populate the Multivalue Parameter with the acquired values.

No problem browsing the Arraylist parameter: MyArraylist.(Index)... but what about the Multivalue parameter?

the MultiValue.SetList("Multivalue Parameter", Value 1, Value 2, ... , Value N) provide a defined number of data and cannot be set dynamically according to an Index.

View 2 Replies View Related

AutoCAD Inventor :: Form Picture - Parameter Driven Picture On A Form

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

AutoCAD Inventor :: Populate IProperties From Excel Using ILogic

Jun 27, 2011

I am trying to use an iLogic rule to populate iProperties (some generic, some custom) from a part number spreadsheet (containing columns such as PART NUMBER, DESCRIPTION, FINISH etc) and the rule keeps throwing up the following error 'Conversion from string "" to type 'Double' is not valid.'

Here’s part of the code (would be extended for the required custom iproperties but I’m assuming the same principle is ok)
 
StartRule:
'read excel file
GoExcel.Open("C:DESIGNDocumentsEXCEL FILESPART NUMBERS", "PARTS")
'index row 3 through 10000
For rowPN = 3 To 10000
'find first empty cell in PART NUMBER column (Column A)
 If (GoExcel.CellValue("A" & rowPN) = "") Then
[code]...
 
Changing the format of the excel data (number or text) has no effect. Is manipulation of the format required so that Inventor can read text and numbers to iProperties in this way?

View 5 Replies View Related

AutoCAD .NET :: Mouse Cursor While Dragging From ListView To Drawing Area?

Feb 27, 2013

I have a ListView control from where I drag items to Drawing area. Whenever mouse leaves the ListView Control and enters the AutoCAD drawing area, AutoCAD claims the mouse cursor back to Cross Pointer.

Is it possible to change this cursor during drag operation to a pointer with some attachment? As normally happened in Windows Explorer while dragging and dropping files among folders.

View 5 Replies View Related

AutoCAD Inventor :: ILogic To Populate Iproperty From Multi Value Parameter

Nov 3, 2011

I am struggling to find the right ilogic to extract the state of a multi-value text parameter and use it to populate a single i property.

View 1 Replies View Related

AutoCAD Inventor :: Choose View To Populate Title Block?

Jun 20, 2013

Long short, we have dozens of drawings and the original base view was deleted, so the title block uses the next view placed to populate.  We would like to drop in a new view, and use that as the view the title block looks to.  The only way we've figured how to do this is to delete the other 8 or so views (that are already all detailed)., place the view we want to populate the title block, then redraw all the views we just deleted.

Is there an easier way to chose a new base/primary view for a drawing?

View 6 Replies View Related

AutoCAD Inventor :: Get Route To Populate With 1/2" Tube Or Pipe?

Nov 8, 2012

After creating the route, I can not get it to populate with the actual pipe. How do you get the route to populate with a 1/2" tube or pipe?

View 1 Replies View Related

AutoCAD Inventor :: Cross Populate Data From IProperties Fields

Mar 7, 2013

Is there a way to cross populate data from the i properties fields using iLogic or another method?

I would like to have fields from the Project tab to cross populate with items I have created in the custom field. 

Inventor 2013 

View 3 Replies View Related

AutoCAD Inventor :: Populate Assembly Text IProperty With Concatenated List Of Values

Feb 14, 2012

In the parent assembly a text iproperty exists called "child list". I would like to set this value via an ilogic rule that does the following:

For each child in the assembly where paremeter "include" = true, add the value of iproperty "filename" to a comma delimited list that will become the value of  text Iproperty "child list" in the parent assembly.

The result should look something Like iproperty"child" = "filename1,filename2,filename3,filename4, etc..."

The rule must iterrogate all children, both parts and assemblies, and must go beyond 1st level children.

The output does not have to be comma delimited but must be delimited with something (eg tab, :, etc..)

The number of children is unknown

Is there a character limit imposed on a text iproperty?

View 6 Replies View Related

AutoCAD Inventor :: ILogic Rule To Populate Finished Material Size Based On Model Geometry Selection

May 23, 2012

I created the following user parameters:

-Thickness
-Width
-Length
-Dia

I then created a Custom iProperty which consisted of the following "formula":    Finished Material Size = <Thickness> x <Width> x <Length> Lg.

eg. of Finished Material Result :        Finished Material Size = 6 x 25 x 300 Lg.

The problem comes up when dealing with diametrical components as the above formula will only populate for square or rectangular parts. Which would work if I could use iLogic code to populate the Finished Material Size iProperty. I have tried but failed.

First I created another user parameter called "Geometry Type" which has a drop down selection of either "DIA" or "SQUARE, RECTANGULAR".I then created the following iLogic code to set 0 as the value for the "unused" size parameters

 If PART_GEOMETRY = "DIA" Then WIDTH = "0"If PART_GEOMETRY = "DIA" Then THICKNESS = "0"If PART_GEOMETRY = "SQUARE, RECTANGULAR" Then DIA = "0"
 The part I just can't get to work is as follows.

I need some iLogic code which will populate the "FINISHED MATERIAL SIZE" custom iproperty with one of the following based on my "GEOMETRY TYPE" selection. "DIA" would return the following to "FINISHED MATERIAL SIZE":      = Ø <Dia> x <Length> Lg.

While "SQUARE, RECTANGULAR" would return the following to "FINISHED MATERIAL SIZE":     = <THICKNESS> x <WIDTH> x <LENGTH> Lg.I tried the following code but it does not work:

If PART_GEOMETRY = "DIA" Then iProperties.Value("Custom", "FINISHED MATERIAL SIZE")= "Ø"DIA "x" LENGTH "Lg."If PART_GEOMETRY = "SQUARE, RECTANGULAR" Then iProperties.Value("Custom", "FINISHED MATERIAL SIZE")= THICKNESS "x" WIDTH "x" LENGTH "Lg."

View 2 Replies View Related

AutoCAD Inventor :: Way To Get Columns In Form

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

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 View Related

AutoCAD Inventor :: Get A Form Onto The Ribbon?

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

AutoCAD Inventor :: Dwf Preview In Windows Explorer Windows 7 64?

Sep 8, 2011

We can preview the DWF files in Windows Explorer with Windows XP but cannot seem to be able to with Windows 7 64. 

View 7 Replies View Related

AutoCAD Inventor :: Global Form Location

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

AutoCAD Inventor :: ILogic Form Trigger

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

AutoCAD Inventor :: Minimizing Groups In A Form

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

AutoCAD Inventor :: Parameter Precision In Form

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

AutoCAD Inventor :: Show File Name In A Form

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

AutoCAD Inventor :: Form For Adjusting Distances

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

AutoCAD Inventor :: ILogic Update Form

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

AutoCAD Inventor :: ILogic Form Tabs

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

AutoCAD Inventor :: Put Immediate Update Box On Ilogic Form

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

AutoCAD Inventor :: How To Access The Form From Assembly

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

InDesign :: Submit Form Button Doesn't Work In Interactive Form Opened In Reader Created In 6

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







Copyrights 2005-15 www.BigResource.com, All rights reserved