AutoCAD Inventor :: Getting User Name In VBA Script
May 9, 2012
I'm trying to make a VBA macro which would use the user name set in Inventor. I haven't been able to find anything on how to get that username. I would think it would be easily accessible, since it's commonly used to fill in i properties.
Here is it's location in the options.
Options - General tab - User name: (top right)
View 2 Replies
ADVERTISEMENT
May 7, 2013
After getting Vault installed on our server and successfully setting up users and connections, I used the Library Transfer Guide to move our Content Center (including custom) to the Vault. I then changed the Inventor Application Options -> Content Center -> Access Options to Autodesk Vault Server.
This seems to have worked, as I can Place from Content Center when in an assembly, and it is pulling standard content as well as our custom files properly from the vault. However, in the instructions that I used for the installlation, it was suggested to stick with a standard folder structure within the Vault, namely two Library Folders named 'Content Center Files' and 'Libraries' and also a regular folder named 'Designs'.
I created those folders prior to transferring the library, as I thought they would be populated with the standard/custom content. This was not the case and I am curious when these folders come into play? *they are empty*
Also, today I will be attempting to 'Check In' a project to the Vault that I recently completed; does this usually maintain structural relationships between files?
Would you recommend using a single project structure in vault for two people? It seems, since we won't be working on the same project at the same time, having a single project would not be relavant to our situation..
Inventor 2011 / Windows 7 Pro SP1 64bit
Dell Precision T3600
Intel Xeon E5-1607 @ 3.00GHz
AMD FirePro V4900
20 GB Ram
View 7 Replies
View Related
Jan 26, 2013
I have an assembly file with parts assembled, and I want the user to move and position the assembled part into a position as they desire, and then run VBA to extract coordinates information to do further calculation.
So, what I want to do is creat a VBA code that does the following in sequence
1. VBA runs code to assemble the parts (I can do this)
2. go to the autodesk interface and allow user to manipulate the part
3. when user presses a key (e.g. "enter", "space"), the control returns to VBA
4. VBA run some code to extract the coordinates and do some calculations (I can do this too)
there is something like an input box that waits for the user to click ok, before continuing to run the rest of the coding. But I realise that the input boxes and message boxes do not allow users to work on the model in the background. Since I need users to move/rotate the part to the desired position, I can't simply use input and message boxes.
View 4 Replies
View Related
Apr 23, 2012
I need to copy about 15 user parameters from 1 part to about 300 others. I used the DA to copy the iproperties but the user parameters are also needed.
View 2 Replies
View Related
May 4, 2011
How to switch from the Ribbon interface to the Classic interface in inventor 2012? It is not in the same place as in inventor 2011. This ribbon interface just don't do it for me.
View 6 Replies
View Related
Dec 15, 2004
Why on ocassion Inventor tells me that the file I am working on is checked out by another user and that I cant save the changes. I find this a bit bizzare as I am the only person in the office using inventor although it is installed in other machines.I realise that all I have to do is steal the checkout, but I would really like to understand why it does this.
View 9 Replies
View Related
Jul 18, 2005
Is there a way to create user parameter as TEXT Paramters does not accept the text paramaters . we always have tor create parameters as numbers.
View 9 Replies
View Related
Aug 24, 2012
Looking for sample VBA code to get all referenced documents from an assembly and add a boolean user parameter to each (parts and sub assemblies). I have been trying to modify peices of code I have found on this forum and Mod the Machine, but have had no luck so far.
There may also be standard content center parts in the assembly as well that I would like to somehow identify so I can skip over them.
View 1 Replies
View Related
Apr 22, 2013
Most of the time, I delete an user parameter without problem. But, in a part, I got an error for two of them and I don't understand why. I create a new parameter and redirect all dependencies from the old one to the new. (oldParam.Dependencies.Count = 0).
But when I try to delete it, I've got an error. Also, when I try to delete it by the interface, I don't see the Delete option.
View 8 Replies
View Related
Feb 25, 2013
Is it possible to add a user parameter into a general table in a drawing?
Example:
If I create a multi value text parameter called "Design", and give it two values "open" & "closed". Is there a way to add the chosen value into a general table on the drawing.
Autodesk Product Design Suite 2013
Win 7 Professional 32bit
Intel(R) Xeon(R) W3565 @ 3.2GHz QC
4.0 GB Ram
1GB Nvidia Quadro 2000
View 1 Replies
View Related
Jun 10, 2011
Parameters with a text value, How do I add userParameter? In iLogic
Examples. DoubleValue)
Sub Main()
Dim oCompDef As PartComponentDefinition
oComDef = ThisApplication.ActiveDocument.ComponentDefinition
Dim oParams As Parameters
oParams = oComDef.Parameters
Dim uParams As UserParameters
uParams = oParams.UserParameters
strVal= uParams.AddByExpression!("strVal", 0.15, "mm")
iLogicVb.UpdateWhenDone = True
End Sub
View 6 Replies
View Related
Dec 23, 2013
I need to loop through the user defined properties and create a list. I can create the lost but I can't find a way of looping through the defined properties. I can get property values but only if I know the name.
I need to loop through without knowing the UD name. Is there a way to recursively loop through all of the user defined properties?
View 3 Replies
View Related
Jul 20, 2012
I've just recieved a new pc with Win7 64bit (no admin access) and AIS 2008 SP3.
When I go to Projects>New, the only option is new Single user Project. How can I enable the other project types or what can cause them not to show up?
View 1 Replies
View Related
Jan 5, 2012
I know this has to do with the users network profile because it is only happening to a few people. I just upgraded all of our workstations to New Win7 boxes running IV2012 products. Everybody is working well except a couple of people.
View 2 Replies
View Related
Nov 22, 2011
Is it possible to change the colour of User Workplanes in IV 2011?
Autodesk Inventor 2013-64Bit Edition
Intel Xeon W3520 @ 2.67GHz
Win 7 Pro
6.7 System Rating
NVIDIA Quadro FX 1800
View 1 Replies
View Related
Jul 18, 2013
I have a function programmed in vb.net that controls the opacity of parts in the active view. If the user is selecting objects and then starting the program the "non-Selected" Parts are disapearing step by step.
That's looking very interesting, but doesn't supports the user . Is it possible to freeze the active view of inventor and refresh it, when the job is done? So the user will only see the result of the process and not the working process.
View 4 Replies
View Related
Apr 11, 2012
I have a question regarding Vault. We are using Vault Collaboration 2012 and as of lately we have a user who live in a different county who is going work for us. We are 3 local users who sit locally and 1 user who going to connect remotely to us.
What is the best way to accomplish this, so he can get access to our projects and library’s, from where he is working?
View 1 Replies
View Related
Dec 28, 2013
Is it possible to update an existing User Parameter. While I can only delete-create a new. In this case the connection is lost with BOMQuantity.
View 5 Replies
View Related
Dec 10, 2013
We have multiple clients and each client has multiple projects. Each project gets its own master assembly that contains multiple equipment layouts. This allows us to show everything together. In each master assembly, we create LODs to display equipment layouts side by side for connecting things one to another and to avoid collisions.
Example: The master assembly may contain 8 equipment layouts. Each layout is for a sub-process within the whole process. We create LODs for different groupings of layouts so that we can zero in on anything in particular that we wish to focus on. By choosing an LOD in the open dialogue box prior to opening the master assembly, performance is improved because we're only opening what we need instead of everything.
Within an equipment layout are any number of assemblies. We can create LODs to show the layout without conveyors or to show different options we've developed to present as concepts for approval prior to detailed design. Sometimes we are adding assemblies to an existing layout so we'll create an LOD for existing, one for as built, one for purposed.
how to create or modify LODs. Therefore, we are getting LODs with users' initials or a date or "doohickey". We've got to come up with something that makes sense now and will make sense later.
Any guideline for managing LODs in a multi-user environment?
View 3 Replies
View Related
Aug 22, 2011
We are trying to add reference lines to the idw drawing for a sub-assembly. These lines represent centerlines of parts of the main assembly. The main assembly is not the reference file for the drawing. However, the required dimension setting the centerlines is a User Parameter in the sub-assembly. (The centerlines are represented by work planes in the sub-assembly file). Using iLogic, we were able to populate the User Parameter from the sub-assembly into the idw file. We can see it as a User Parameter in the idw file. However, when we go into sketch mode the User Parameter is not an option. In sketch mode, we pull a dimension between the two centerlines (d4). When you look at the parameters d4 does not exist so we cannot set d4 equal to our User Parameter (and we've looked there are no filters on). We need this dimension to be able to adjust as the length of the sub-assembly adjusts for different cases. Each case is unique and done on a job by job basis.
There are several places in our drawings where being able to place reference lines and set their relationship to the part would be very useful.
1. Why are the User Parameters not available for use in sketch mode on a drawing?
2. Why can the dimension IDs (ex. d4) not be seen by looking at the parameters?
3. alternative way of putting reference lines on a drawing?
View 4 Replies
View Related
Jan 2, 2014
i can easily add user defined properties using Apprentice but i cannot delete them. There is a function to delete but i always get a message back saying the Parameter is Incorrect. When i check the parameter, it IS correct. Any method for deleted User Defined Properties using Apprentice?
View 1 Replies
View Related
Aug 6, 2013
I'm having problems with the parameter menu. When I don't have a user parameter linked to a dimension in the model the parameter disappears out of the parameter menu.
View 2 Replies
View Related
Nov 8, 2012
Cannot open an ipt or a dwg template from Vault. When he attempts to open it he sees a warning, Unexpected Error . He's able to open the iam template from Vault though.3 other people access Vault and aren't having any issues opening the same templates.
We are using Inventor 2013 and Vault Professional 2013, with Windows XP.
View 1 Replies
View Related
Sep 9, 2013
I´m trying to create an external iLogic rule that let´s the user specify a path and saves an assembly and all it´s components into one directory. Alternatively it could be the main workspace path which doesn´t have to be specified by the user so it can be handled internally.
The background is a design template that resides on a network storage which can be configured through an iLogic Form and when the user is done configuring the assembly to it´s liking it should be saved to it´s workspace.
I was looking through the snippets but couldn´t find anything related to "save all". I have the feeling that I have to cycle through all component occurences and save them one by one.
Getting a Save As dialog box seems to be possible as I could see on Curtis Waguespack´s blog but the commands he is using are nowhere documented. For example for calling the dialog box he is using
InventorVb.Application.CreateFileDialog(oFileDlg)
View 2 Replies
View Related
Nov 27, 2012
I have a question regarding to modify category in a user library. I have to publish a part into a special category in Inventor 2012. These category asks for an Parameter which doesn't exist in my part. Actually is an absolutely useless Parameter so i want to delete it from category. The category was created by an user but i don't know how to delete the parameter. Only if i create a new Category i can change the category-properties just till its created.
View 6 Replies
View Related
Apr 10, 2013
I work with Inventor 2011.
It is possible to sort Parameters (user parameters) by code (simulating a click on column header) ?
View 3 Replies
View Related
Apr 1, 2003
I have a part file ("part1.ipt") that has a user parameter called "Height". When I open this file as a part document, I can modify the "Height" parameter to change the height of the part. This functionality works great:
Set oPartDoc = oApp.Documents.Open(sPartFileName, True)
Set oParameters = oPartDoc.ComponentDefinition.Parameters
'change part height to 30 cm
oParameters.Item("Height").Expression = 30
Now, I am wanting to add this part to an ASSEMBLY document, then change the parameter to 30, but have been unable to do it.
I have this so far:
Dim oAsmCompDef As AssemblyComponentDefinition
Set oAsmCompDef = oApp.ActiveDocument.ComponentDefinition
Dim oOcc As ComponentOccurrence
Set oOcc = oAsmCompDef.Occurrences.Add(sPartFileName, oMatrix)
After I add all the parts, I highlight a part in the assembly pane, I click on FxParameters but I don't see the User Parameters for the part. Are the User Parameters not available when a part is placed into an assembly?
This assembly will have multiple parts added from the same file name, but the "Height" parameter needs to be modified for each occurrence.
View 5 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
Oct 21, 2013
is there a way to show the user symbols in the toolbar?
View 5 Replies
View Related
May 2, 2013
Is there a way to export a text user parameter?
View 8 Replies
View Related
Nov 8, 2011
How do I make a callout and insert it under User/Symbols tab?
View 1 Replies
View Related