AutoCAD Inventor :: Check If UserParameter Already Exists
Nov 8, 2005
The following code adds three user parameters to an .ipt:
Public Sub AddUserParams()
Dim oDoc As PartDocument
Set oDoc = ThisApplication.ActiveDocument
[Code].....
If I run this on a part that already contains any of these user parameter names I get an error. Is there a way to first check for each name and skip to the next if it already exists?
Also, how the heck do I set ExposedAsProperty for each of the parameters added?
View 5 Replies
ADVERTISEMENT
Apr 9, 2013
I am simply trying to traverse an assembly, check each component for existance (or value of) an iProperty, and if so add that components name to a list. Here is what I have, but it doesnt work.
'Define the open document
Dim oDoc As Document = ThisDoc.Document
Dim oRefDoc As Document
[Code].....
View 1 Replies
View Related
Mar 27, 2013
I have an assembly with parameters named the same as LOD's.
The parameters are set to equal the mass of the corresponding LOD's using ilogic.
If the LOD does not exist, I want to set the mass of the corresponding parameter to a value of zero.
I don't know how to check for the existence of the LOD and I'm not sure I can have three commands in the ELSE section.
Below is an example of what I need using a Parameter and LOD called EXTERNALS as an example.
If EXTERNALS LOD does not exist
THEN Parameter("EXTERNALS")=0
ELSE
'activate the EXTERNALS LOD
ThisDoc.Document.ComponentDefinition.RepresentationsManager.LevelofDetailRepresentations("EXTERNALS").Activate
[code]...
View 2 Replies
View Related
Aug 5, 2013
how would I go about to check if a textframe with specific content exists in a document and if it does then procede with a function?
if ("word" exists) { make a new layer}
I just need it to check if one instance of the word exist
View 8 Replies
View Related
Jan 9, 2012
I know how to add user parameters with ilogic, but i would like to dete them as well. I've tried to use the delete option as mentioned in the API but I cann't get it working in ilogic.
How i create a parameter:
Format:HTML Format
Version:1.0
StartHTML: 165
EndHTML: 3855
StartFragment: 314
EndFragment: 3823
StartSelection: 314
EndSelection: 314
DimoDocAsPartDocument=ThisDoc.Document'of : oDoc as AssemblyDocumment = ThisDoc.Document
'nummerieke parameter
Try
prop=oDoc.ComponentDefinition.Parameters.UserParameters?.item("nummer")
Catch
newprop=oDoc.ComponentDefinition.Parameters.UserParameters?.AddByExpression("nummer", "100", "mm")
EndTry
View 1 Replies
View Related
Sep 16, 2011
We are using 2011.I created a VBA tool that populates the FX Userparameters with a Thickness Variable..How do I set the Sheet Metal Rules Thickness to the new new FX UserParameter Thickness Variable?
for example:
The Userparamter variable name is "cab_thk"
Under Sheet Metal Defaults | Sheet Metal Rules | Sheet (Tab)
The Thickness entry should read "cab_thk"
View 3 Replies
View Related
Nov 19, 2010
I have a iLogic question about finding out if a View exits..
Lets say I have a drawing that I want to read the scale of a view.. All the snippets I have found is pointing to the name of the view like "VIEW1". But if I have deleted the first view I created it will give me an error..
So, is there ant possibility to check if the "VIEW1" exits without getting an error?
View 9 Replies
View Related
May 26, 2009
I'm trying to copy sheets from one dwg file to another in Inventor 2010. I get the error: "Named segment already exists: cannot create or rename". The sheet name is not listed in the target file. Why this error is occurring and how to fix it?
View 9 Replies
View Related
Dec 2, 2012
If any easy method to check the model in the inventor.now i doing each feature i have to check the fully constrained or not.if any easy method.
View 8 Replies
View Related
Oct 7, 2013
Im thinking of adding some kind of info that tells me if the active ipt or iam have an idw, by the same name. It should be available/visible when opening, or editing parts and assys.
View 3 Replies
View Related
Oct 11, 2011
Is it possible to find the type of a browsernode?
In my code I can only see that the type is a browsernode.
Should I use Browsernodedefinition to get the type?
Maybe it's not possible, so I can stop trying.
Dim oPane As BrowserPane = oDoc.BrowserPanes.ActivePane Dim tNode As BrowserNode = oPane.TopNode Dim oNode As BrowserNode Dim oNodes As BrowserNodesEnumerator = tNode.BrowserNodes For Each oNode In oNodes MessageBox.Show(oNode.Type) Next
Get control of your sheet metal files at [URL]
View 1 Replies
View Related
Apr 25, 2012
is there any way to spell check your text in an .IDW file?
Also... How can I arrange my Dimensions so that our Dimension Standards are the standard Style?
View 6 Replies
View Related
May 29, 2013
I am having issues getting my .dwg files to check back in to Vault Basic. I can get all different types of files (.iam .ipt .idw) to check in without issues, but .dwg files hang and Inventor will eventually lock up.
I've tried disabling Visualization and I still cannot make it past this point. I can even tell it to check in everything at once, and it will breeze through the other files but any .dwgs will hang.
My PC Config:
Windows 7 Professional 64-bit
Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
16 GB RAM
Dual AMD Radeon HD 6450
Running Product Design Suite 2014
View 9 Replies
View Related
Dec 4, 2012
We use iproperties to describe our parts and have a 40 character limit. Is there any way ilogic could be used to check and possibly warn if an iprop field exceeds 40 characters?
Inventor 2010 Pro SP4, Vault Collaboration 2010
HP Z820 Xeon E5-2643 0 @ 3.3Ghz 16.0GB RAM
Nvidia Quadro 5000
View 5 Replies
View Related
Jul 29, 2013
I need to create a form with several options, corresponding to parts to load/unload. Only 1 checkbox can be activated at a time, so when I check a check box, the others have to be unchecked. In VB this should be radio buttons, is it possible to have the same issue in iLogic with checkboxes ?
View 3 Replies
View Related
Sep 25, 2013
I am running Inventor 2013 with vault 2013 on a brand new system. Everything was working great for a week or so, then inventor started to lock up during checkin. It would lock up with even a small simple part. I had the IT department try to remote in and change settings, with not luck. Then they "rebuilt" the system over again, this got things working for about another week and after that the problem started up again.
View 1 Replies
View Related
Feb 21, 2013
I am working with a fellow Inventor user who faces determining if a set of assemblies, on the file system, are complete and not missing any parts, references, etc. Aside from opening each one in Inventor direclty and manually verifying if the design is at least able to resolve al parts, is there any way to automate or semi-automate this check?
View 6 Replies
View Related
Jan 3, 2012
We are currently using Inventor 2010 Professional Suite. Most of the users here are working with AutoCAD Mechanical. For the most part, it does the job. The person that previously used Inventor has moved on to bigger and better opportunities. Recently a new person was hired to utilize the Inventor software for initial designs. The original software was loaded on a new machine and everything seemed to work fine. Inventor was able to checkout files from the vault and were able to be manipulated accordingly. The issues began when the individual started to check the files back into the vault. It would appear everything works fine but the files never appear in the vault. Even if we create a new directory and attempt to check them in, the new directory is created in the vault but the files will not check-in.
If we use AutoCAD Mechanical, the files will check-out and check-in fine using the addin tools. It would appear all the rights are setup correctly. We even changed the new user to administrator and it still did not work. No one else has Inventor installed, but I am about to install it on another machine this Thursday when IT is in.
We have attempted to even drag the files into the vault just to see if that would work, even though we know this method is usually not the best. Still no success.
Running WINDOWS OS 7 PROF.
INTEL (R) CORE (TM)2 QUAD CPU Q9550 2.83 GHZ
8.00 GB RAM
Hard drive WDC WD10EARS-00MVWBO ATA DEVICE, 872 GB FREE OF 931 GB
View 1 Replies
View Related
Feb 20, 2012
how the check in/check out process works, and how that's related to the information in the project files (if it is)? I'm thiking of basic questions, such as how does Inventor know when a file is checked out, and where is that information recorded.
For reference, I'm using Inventor 2010 in a non-vault environment, with single-user projects, on a small corporate network. I've been using 3D CAD since late in the last millenium, but I've only been using Inventor for one year. My previous CAD experience was with Solid Designer, Solid Edge, and SolidWorks.
View 9 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 31, 2013
I am using Inventor 2012 64 bit with Win 7.
We have a lot of drawing that has some extra sheet for ref. and Inventor let me exclude count and print from those extra sheet. This work fine but when we check-in the drawing to vault it update or publish all sheet to dwf. This is very compass for us because we full the dwf file from vault to release and the sheet count is different than the print out.
Is there a way to EXCLUDE those sheet when check-in or update dwf?
View 1 Replies
View Related
Jun 14, 2012
In Auto desk inventor how to check assy was fully constrain and whick comand to use to check ?
View 4 Replies
View Related
Oct 24, 2012
Following a recent Inventor crash (another topic entirely), I re-started Inventor and logged in to Vault Workgroups, all with no problems. From the Ribbon Vault Tab I chose Open, browsed to and selected one of my I-Assemblies. I clicked the down arrow next to the Open button at the bottom right corner of the dialog box, and was surprised that the Open (Check Out All) option was grayed out. This has never been the case before now. I have checked with quite a few other Assembliles and I-Parts, all of which are currently in sync with the Vault, and none of them allow me the option of Open (Check Out All).
This has persisted for 2 days now, meaning I have shut my workstation down completely and re-started each morning. Is there some system setting or variable that needs adjustment? Is there some disconnect between the Inventor Vault add-in and Vault Workgroups itself that results in this option being disabled?
Autodesk Product Design Suite Premium 2013
Inventor 2013 64-bit Edition
Win7-64, 8-core Intel® Xeon® CPU W3550 @ 3.07GHz
NVIDIA GeForce GTX 560 Ti
454 GB HD, Intel® ICH10R SATA AHCI Controller
SpaceNavigator, 3.14.2 / 6.14.0 / 3.18
View 2 Replies
View Related
Jul 3, 2012
The Open (Check Out All) option is grayed-out when opening an Inventor file from Vault. How do I activate this?
View 2 Replies
View Related
Jan 8, 2014
I'm wondering if it is possible to check-in drawing into vault using i-logic?
If you check-in a drawing into our vault, it automaticly exports a .dwf to a storage server. We also have a simple button for making .pdf of the drawing to sent to the customer.
What i want to ensure is that the .dwf file and the .pdf file are the same. So when i press "make a .pdf" the rule will save my document, make a .pdf and (if possible) check it into vault. So from that point the .pdf for the client and the .dwf on the server are the same.
Inventor 2013
View 2 Replies
View Related
Sep 2, 2011
I have a Visual Basic.NET add-in that displays a dialog in Inventor. The code in this dialog opens some parts in the background. This has always worked fine, but now I'm working with Vault and when the files are not checked out Inventor displays a small window and asks the question if you want to check out the file. The problem is that this small windows stays behind my add-in dialog. Is it possible to show the check out windows on top of my add-in dialog? I tried form.show and form.showdialog, but this doesn't seem to make any difference.
View 2 Replies
View Related
Jan 13, 2009
When I run an interference check on an assembly, any of the threaded holes that have fasteners in them shows interference. I guess that the problem arises from the document setting "Tapped Hole Diameter" is set to minor.
To solve the problem with the interference, I could either change the modeled size of the hole or change the modeled bolt diameter. Either one causes problems in other places.
View 9 Replies
View Related
Jul 11, 2013
A drawing that is in Vault, it asks if you want to check it out, and if you say no (like if you just need to print it), it opens it then asks you again if you want to check it out? Did it not get the hint the first time?
View 1 Replies
View Related
Mar 4, 2013
How to check the direction of an existing extrude feature
kPositiveExtentDirection
kNegativeExtentDirection
kSymmetricExtentDirection
View 2 Replies
View Related
Oct 8, 2013
I am getting the attached error when trying to check in an assembly and idw. The Vault is pointed to the C drive, so I'm not sure why it isn't finding the files within the C.
View 3 Replies
View Related
Oct 26, 2013
I use something like the code shown below as part of an Inventor add-in that automatically checks in modified parts and drawings. Everything works perfectly except for one problem. After a file is checked in using this process, the Vault Preview is unavailable. The message in the Preview window says "Unable to view the file selected. Click the 'Open' button to view with an external viewer."
Dim byteArray() As Byte = IO.File.ReadAllBytes(fullFileName)Dim fileBom As Autodesk.Connectivity.WebServices.BOM = serviceManager.DocumentService.GetBOMByFileId(vaultFile.Id)serviceManager.DocumentService.CheckinFile(vaultFile.MasterId, Environment.UserName, False, IO.File.GetLastWriteTime(fullFileName), associations, fileBom, False, vaultFile.Name, vaultFile.FileClass, false, byteArray)
What needs to change so that the Vault Previews will be maintained? This is with Inventor/Vault 2012, but a solution using a more recent version would also be great.
View 1 Replies
View Related