AutoCAD Inventor :: Open Parameter Dialog Box With Code?
Jul 10, 2011
I'm using VBA in Inventor 2010. I want to create a macro that adds 3 fields to a part for LRNGTH, WIDTH and THICKNESS, as well as comments and setting the export to be export out. My program is below and works well. However i would like to end the macro with the parameter dialog box open. What code do i need to do this?
Sub AddBomFields()
'adds LENGTH, WIDTH and THICKNESS user parameters to part
Dim oPartDoc As PartDocument
I was working with ilogic, Adding a new rule and all of a sudden I got an error and when I double click on a parameter to add it to the code, the format changed.
It used to look like this when I added a parameter: Parameter("vertical seperation:1", "partitionthickness") but now when I double click on a parameter I get this: vertical seperation.ipt.partitionthickness
Also when I right click on a parameter and select display current state, It does the same thing, for some reason the code does not display like it used to.
I got an error when this first happened and I tried reproduce the error again but it did not appear again. This affected all my parts and even in different projects.
I re installed inventor because I thought there might be a file link broken but it did not fix it.
I want to use iLogic to create User Parameters with Multi-Value lists filled with info from an excel spreadsheet. What is the code to create a new User Parameter?
i7-2720QM Dell Precision M6600, Win 7 Pro 64-bit, 8GB RAM Autodesk Product Design Suite Ultimate 2013 Autodesk Vault Professional 2013
if it is possible to increase the number of recently used values/parameters in the dimension dialog, during part sketching. For one part, I use approximately ten parameters that will be used repeatedly. When I'm done with one sketch and start with the next, only the last five parameters are in the recently used parameter list. (Create dimension --> select arrow on right side of dialog, see attachment Dimension_Dialog.jpg, excuse me for the poor quality ). It would be much more comfort to have more parameters in this 'recently used'-list.
Furthermore I'd like to know if it's possible to widen the parameter-list. In my case I've several parameters that start with the same prefix, followed by a differentiating suffix. When I create a new dimension, select the arrow on the right and select 'List Parameters', I have to adjust the width of this dialog every time to see the entire parameter. (see picture Dimension_parameters.jpg)
I am going to be saving a template with one of my custom frame profiles from the content center already placed in it. I'll place it say 100" long, just an arbitrary number. How can I create a dialogue that pops up when I open the template file, it asks me for the value of 3 variables, then changes the length of my content center frame rail to the sum of those 3 variables? I've seen pop-ups before and know how to set the rule, I'm just not sure how to change the parameters..
I am copying chunks of code from the My First Plugin tutorial and am using the code that opens Inventor to start the form. I have both Inventor 2012 and 2013 installed on my system. I have gone in to the properties and changed the .dll reference file to read out of the bin/PublicAssemblies folder in 2013, however, when I run my Windows Form, it will open Inventor 2012 instead.
I've created a simple cutdown kerb in Subassembly Composer 2013. I can't add Point, Link or Shape Codes & get the error message " The code (Flange for example) is not a valid input parameter or variable.
running on Windows 7 is seeing files categorized in his Inventor Routed Systems Open dialog categorized by:
Today Yesterday Last Week Last Month
He doesn't recall it always being like that (and I've never seen it on any system I've used).
When he opens a Word file, those files are not categorized that way.If he switches to "List" he just gets all files but he doesn't get the detail he wants if he were using "Detail".
Inventor Product Design Suite 2013sp2 Windows 7sp1 64-bit nVidia Quadro 2000
I can't find the "Curvature settings" dialog box. Selecting and right-clicking the spline in scketch mode I don't find "Setup Curvature Display" command in the menu. Also, if I click on "Display Curvature" I can't see the curvature itself.
I would like to see consistent behaviour between dialogs. For me, probably the dialog that I use the most is the File >Open dialog. When I do File>Open and browse to a file, then close the file. The next time I do a File>Open, I am taken to the previous path, but the previous file is not highlighted/selected. So, I have to grab the scroll bar and pull it down to get to the file.
Now when I do a File>Open from Vault, it goes to and selects the previously opened file. This is also how Autocad works. Would be nice if Inventor worked the same way.
I have a problem with previewing of new files I made in INV2013. Old files are OK. I can not find the cause...I also found, that some new files are correct and other incorrect, all made in INV 2013.
There are two types of error:
1) when I pick the file I want to open, in left lower corner - thumbnail window- is displayed text:"preview not available"
2) when I pick the file I want to open, the left lower corner - thumbnail window- is black
In iProperties panel I have checked "Save preview picture"
I have user parameters that are no longer needed and are not being used anywhere. They each takes 4-5 seconds to delete, prior to 2012 this would happen instantly.
I had resized the File>Open dialog in Inventor. I had resized it so that it was quite large so I realized pretty quickly when I opened another file, that the window size had rest to its original size.
What I found was that if I export a parts list to excel, then go to File>Open, for some reason the size of my file>open dialog is cleared.
I want to loop a code / function .. let's say 100 times and each time one parameter or variable is counted up.I found "for"-loops and some with a counter.. but I coudn't get it to work in Edge Animate.Here is a fragment of the code I want to loop ->
$.get("URL...+Num, {}, function(ask, code) { switch(ask) { case '9': sym.$("leaf"+Num).show(); var leaf = sym.$("leaf"+Num); // How can I count the setting variable? "var leaf+Num = ... " doesn't work I guess.. [code]....
We have a data folder on the server mapped as network drive to the clients. The data folder contains all cad data stored from productstream professional.
Due to an over 10 year old environment the data folder contains a huge amount of cad files, library parts, iParts and so on.
Due to historical growth of the environment there are some missing parts (not available on the file system anymore), because they were deleted, are corrupt, and so on. At the root of the data folder there is located the typical cmpinv11.ipj inventor project file.
If you open an assembly either from productstream or via inventor (without productstream) directly from the data folder and the assembly has an unresolved child component because the file isn't there anymore it takes a very very long time until the dialog box for unresolved link comes up (waiting time several minutes 1...10min). Once reached this point one can skip and repair the assembly, of course.
But the question is, how to speed up the time for getting the unresolved link dialog?
The network connection itself is quite OK und the project file itself is also OK. The project file list of every user is pretty small (only cmpinv11.ipj and some standard ipj's).
We think inventor internally scans the whole project-file folders to ensure that the component is really missing but due to the huge environment this takes many minutes and is annoying.
Any bypass for that? Is it possible to apply a temporär setting before opening a potential inconsistent assembly? Or is there a setting like skip unresolved components by default or by a defined timeout?
Because it is Inventor 2010 (Productstream PRO 210) there is no File open Option Auto-Skip unresolved components (like in 2012) but even if it was I guess it wouldn't reduce the time to get the dialog either.
I got a deadline for my project, but I got a big problem:
"I cannot set the "parameter" for the End Value in Parameter Animate dialog"
For easy understand, let's see a example:
1. I got a part which has two parameters named: "A" and "MaxA" 2. I animate Favorited parameter A. 3. The End Value is MaxA_ (Everything is ok) 4. I finish Studio environment, then I change parameter MaxA_ from 200 mm to 400 mm 5. I turn back to Studio environment, the End Value now is "200 mm" (I want this will be MaxA_, so I can animate the flexible parameter).
show me how to keep the end value will be "MaxA_" after I change parameter?
I am trying to publish to the CC a guide rail. The vendor of the rail gives me the option of entering the desired length of the rail. After that he gives me the option to choose between the length that I entered and a shorter and longer standard length witch can be delivered faster.
I want to do the same thing with my published part, but I cannot make a key parameter to change depending on the entered custom parameter. I want the user to make the next steps when inserting from the CC: 1- select the size of the rail; 2-select the type of the rail; 3- enter the desired length of the rail; 4- choose between the desired length and the 2 recommended lengths (I need these 3 lengths to be shown)
I want to open a dwg file from code in my program. I have a string variable containing the full path and file name. I want to open the dwg file in an instance of Autocad that is already running, I don't want to open Autocad. The program is written in VB 6.0.
When I open the file.psd to edit or file.jpg (Any file type) The program will appear the dialog and then When I click "OK" to close this dialog.After that, it will appear the dialog to close program.
I could not continue to work.I must close and reopen the program. (Do not open the file.)
Just thought I would post this because I have been looking for a working VBA file open dialog box solution for awhile. I'm an old autolisped making the jump to VBA and I have seen and read various solutons for the equivalent getfiled autolisp function but I never had much luck with them. This one worked for me it uses the Win API to do the job.
Private Declare Function GetOpenFileName Lib "comdlg32.dll" Alias _ "GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long Private Type OPENFILENAME lStructSize As Long hwndOwner As Long
[Code] ....
Make a form and place the following code listed below on a button to call the showopen routine.
Private Sub CommandButton1_Click() Dim Filter As String Dim InitialDir As String Dim DialogTitle As String Dim OutputStr As String
I installed architecture 2011 last night. When I installed it, it did not remove my 2008 verison. So all my files are still opening the 2008 verison. I do not have much space on my hard drive, so if I uninstall 2008, will there be a problem with 2011?
Is there any reason to keep the 2008 version?
Second problem: in 2011, I click on the open button and it does not open a dialog box. It only gives me a line in the command line. same thing happens when I try to save as.
I have a user with AutoCAD LT 2007 SP2. Whenever he clicks on File > Open... the drop-down list to browse to another directory is blank. It doesn't show any local or network drives. He can open files just fine from Windows Explorer.
I'm having a problem that my file dialog box won't open when I go to open, new or save as. When I hit open, new or save as the command bar wants you to type the file name. My co-worker told me to type CMDDIA and change it to 1. But that didn't work for my error. How to fix my AutoCAD issue. I attached a .jpg of what the command bar looks like when I hit the open button.
In AutoCad 2006, when I want to open a new or existing drawing or template, instead of regular dialog box I receive only a prompter dialog which is present in the command line also, asking me for the name of the drawing that I want to open; it is the case also when I want to save a drawing too. I already checked the "Options" under the "Open and Save" tab and everything looks to be in order. How can I resolve this bothering problem since I am able to perform the above tasks only accessing "Windows explorer"?