AutoCAD Inventor :: ILogic - Check-in Drawing Into Vault
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.
At my company we use part numbers as file names for everything. for example, part number 09090P00100000, will be saved as 09090P00100000.ipt and will have a drawing saved as 09090P00100000.idw.
Within the drawing template file, i want to set up an ilogic rule that will check that the part present in the drawing corresponds to the file name of the drawing. This rule will run after saving and will just display a warning if the file names do not correspond.
I just need some code that will get the file name of the part displayed in the drawing. Note that we use iparts so the code must get the member file name and not the factory file name.
Dim oDrawingDoc As DrawingDocument oDrawingDoc = ThisApplication.ActiveDocument Dim oSheet As Sheet oSheet = oDrawingDoc.ActiveSheet
[Code] ........
Autodesk Inventor Professional 2011 Windows 7 Enterprise, 64-bit
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
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
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
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.
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.
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.
Im working on a program that checks out syncronizes some data with our erp system and then checkes in the files again to vault. all works fine but in vault all links to other files are gone? when i checkin the files from inventor manuel then the links are ok in vault. therefore i wonder if it is possible to run the vault checkin dialog "hidden" and just pass in some predifined options and checkin to vault.
I am looking for a way to log out of vault from within Inventor using iLogic codes. I have created an iLogic rule that automates export an assembly drawing and all sub component drawings. In my code, I have suppressed all Inventor prompts but I do not have a way to suppress Vault prompts. I can manually log off from vault and run this rule without any problems. However, if I forget to do so, I am stuck responding to update requests from vault and check out requests constantly for each and every file.
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
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 ?
I am trying to create a baseline assembly driven by ilogic. When the baseline gets changed, most of the parts get replaced, but a few change size. I would like to re-name the top level assembly, as well as the parts and sub assemblies that change. We use a Vault sequential numbering scheme. How do I extract the next number from the sequence from Vault in iLogic?
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
I'm making some ilogic code for my new drawing templates and I'd like run part of the code only when the rule is trigger by the "after open document" trigger. Is there a way to check which trigger started an iLogic rule or would I be stuck making a second rule which is only triggered by the "after open document" trigger?
I've done an Addin which contains a "Place iLogic Component" function. This funcion work properly and the iLogic form is opened at place component time. Now, i would like to be able to open the form after the insertion, for edition purpose. So, i'd like to open the iLogic form of an assembly component (occurence) with the context menu for example.
So, my question is : Is there a way to check if a part or an assembly contain an iLogic form and to open it through Inventor 2012 API ?
Is there a logical work flow to apply a new or updated drawing title block to a large number of IDW's that are in a vaulted project?
The Drawing transfer wizard looks to be a good tool, I just can't see how to handle getting all the IDW's checked out of the vault, updated and back into the vault in an automated way.
Today I happen to be checking in and out many drawings. All display the cogo points message at the lower left corner, and all are taking 4 minutes to check in. UNREASONABLE! Especially when I have five minutes of work to do in each drawing.
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?
Is there a way to check in VBA if the design doctor has found errors in a drawing? I have a mass print script and it'd be handy to be able to skip printing any drawings that have errors like unatached dimensions and such.
I am working on a project to assign balloons to components in drawing view automatically. Of course, I don't want to assign a balloon to a component which is invisible (hidden) in this drawing view.
So, is there any API function to check whether the component in the drawing view is invisible or hidden?
I have a few assemblies setup that are controlled with a bunch of iLogic rules to modify all related parts when parameters are changed at the assembly level. I also have an opening message that pops up when the assembly model is opened (After Open Document trigger) to tell people how to use the parameters to make modifications.
Now, when this assembly model is placed into a drawing I am getting random pop ups of the opening message when placing views of additional models in the same drawing. If you open the drawing and try to place a base view of another model, Inventor stops to think for a minute or so before having the opening message of the iLogic controlled model pop up. The only event trigger for this message is "After Open Document" and the model is not being opened; why it is being triggered in the drawing and/or how to make it stop?
Is there a way in an inventor drawing rule to do a "save as" which saves the drawing as an Inventor dwg file rather than an AutoCAD dwg file?
The below saves as AutoCAD which is ok but I need the outputted drawing to be linked to the model. I don't want the code to save the entire assembly as this is done further down the line. I also don't want to save the current inventor dwg drawing from which the rule is run as this is just a template drawing.
1.) If you look at the attached screenshot in the Edit Sheet form there is a sheet "Revision" input field is it possible to fill this out via iLogic?
2.) We have some custom E size sheets (height always 34in width varies 5ft, 6ft, and 8ft) when we select on of these sheet sizes that we created it will display "Custom Size (inch)" when using the sheet property <sheet size> in the title block not the name of that we gave these sheets (Which creatively enough is "E-5ft", "E-6ft", and "E-8ft"). I thought I had this solved by doing this:
Dim oSheetSize As String oSheetSize = ActiveSheet.Size If oSheetSize = "Custom" Then iProperties.Value("Custom", "SheetSize") = "E" Else iProperties.Value("Custom", "SheetSize") = oSheetSize End If
then change the titleblock sheet size field from sheet property <sheet size> to custom drawing properties <SheetSize> this all works great if there is only 1 sheet in the IDW where it fails is if there is more then one sheet.
I recently start to use ilogic in inventor and discover this powerfull tool for all the daily task to be done...
I would like to add an autocad block in a drawing with some ilogic coding. Through this forum i found how to insert a sketched symbol but no how to insert a block. And convert my block into a sketch would be quite difficult...
where could i found a list of all the ilogic command??
Autodesk Product Design Suite Ultimate 2013 Win 7 Pro 64 bits SP1 Bi-Xeon E5520 (2x Quad-core @2.27GHz) Quadro Fx 1800 768Mo GDDR3 6Go Ram DDR3 667MHz ECC
I have a rule setup for drawings. I need the rule to first determine if the there is a flat pattern view present. In other words, if there is no flat patter view, I want to the rule to stop.
I am very green to ilogic and VB. Running Inventor 2013.
I'm trying to put together some iLogic code to either check all the drawing views within a drawing sheet are all the same scale, or make the views all the same scale. These drawing sheets consist of a number of individual parts (they aren't projected views from a single part).
This is for welded assemblies. We are required to generate a profile drawing sheet outlining each part that makes up the assembly. We send these out as dwg files for laser cutting so its important that the views are all the same scale.
I made iLogic for assembly and drawing, now i want to update drawing template parameters thru ilogic, as i already linked Fx(parameters) & iProperties to Template, but for updating template i need to close file and open again that file,
currently m using this method.
What is the solution for updating drawing template (like Model Description, Drawing no.).