AutoCAD Inventor :: ILogic - Save All To User Specified Location
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
ADVERTISEMENT
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
Oct 29, 2012
Macro for writing the sheetmetal Extents width and length to the custom properties. I need to get these values into the part parameters so that they can be used in the BOM.
I can get this to work if I manually create the "SM_Length" user parameter, but how do I make the iLogic CREATE the parameters if they do not already exist? I think it would be something added below the "Catch..." just cant seem to figure out what it needs to be.
'look for custom iproperty and try to set it
Try
iProperties.Value("Custom", sExtLength)=Round(SheetMetal.FlatExtentsLength, iRoundValue)
Parameter("SM_Length")=Round(SheetMetal.FlatExtentsLength,4)
Catch
' assume error means not found and create it
customPropertySet.Add(Round(SheetMetal.FlatExtentsLength,iRoundValue), sExtLength)
EndTry
View 9 Replies
View Related
Aug 30, 2013
I need import all new params, rules and forms from a new template to older parts. I'm trying to use an external rule to create a new iproperties and import params from xml file but I can't assign these parameters with these iproperties.
I attach the code.
View 3 Replies
View Related
Jul 29, 2011
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
View 4 Replies
View Related
Jul 31, 2013
I have a dedicated folder for external rules on a network. In the Advanced ilogic configuration interface on my machine I added the path to this folder in the External rule directories.That seemed to work fine. I opened the ilogic tree activated the external tab and the external rules were available for selection.
Today I tried to do the same process however no rules were visible under the external tab. I had to select "add external rule" and navigate to the folder.I do not want my users to have to manually navigate to the folder. Is there a step i have missed in this process? I am using Inventor/ilogic 2009.
View 9 Replies
View Related
Aug 23, 2012
I have a users who cannot change parameter values for iLogic unless user is a local admin on the workstation. This machine has just been upgrade to Inventor 2013.
View 1 Replies
View Related
Feb 21, 2013
How do I detect wich button the user pressed in the iLogic-form?
I can show it like this:
result=iLogicForm.ShowGlobal("MyForm", FormMode.Modal)
I guess that result is of type FormReturnValue - but I can't guess the qualifier (FormReturnValue.OK / FormReturnValue.OkBtn / ?)
View 8 Replies
View Related
Jan 6, 2012
I am using Ilogic to complete details in the drawing iproperties to use in a drawing border.
I can successfully enter the creation date with the line:- iProperties.Value("Project", "Creation Date") = Now
But is there a way of doing the same so that the iProperties.Value("Summary", "Author") = computer user ?
View 2 Replies
View Related
Nov 1, 2012
I've created a main assembly containing several ipart components. With the following rule I can read the model parameters, but not the user parameters of the iparts:
A = Parameter("Part1:1", "d0")
If I create a component, insert it in the main assembly and make it an ipart afterwards, the user parameters can be read out with ilogic. But if I insert the same ipart again, the user parameters can not be read out anymore. Model parameters are no problem.
View 1 Replies
View Related
Nov 29, 2010
I have an embeded excel chart on my drawing called CLASS 125 Single Disc.xls. I want to switch this chart with another one known as CLASS 150 Single Disc.xls. How do I do this? I am using Autodesk Inventor 2011.
View 9 Replies
View Related
Mar 4, 2013
I'm trying to get the point location of a mouse click in an Inventor drawing using an iLogic Rule. Any examples of using mouse events in iLogic?
View 9 Replies
View Related
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
Jul 9, 2013
I downloaded a model off a website, it is, (excuse my electrical background ignorance) a jumper for terminal blocks.Our electricians use these and cut them down to size as needed.
Is there a way to use iLogic and a form or message box, to prompt upon opening the part as to how many jumpers are needed for the current assembly> It comes stock with 10, but they sometimes only use 2, 3 4 etc. etc..
I didn't model the part, but I can if it will make the rule easier to write.My idea I suppose was to have the part modeled with 2 jumpers and then use ilogic to create more if necessary.
View 4 Replies
View Related
Jan 9, 2013
Any way to modify a user form parameter's read only status using a rule?
I have a parameter that I want people to be able to edit when another parameter is set to true and to be locked if it's set to false. The only thing that comes to mind is have a rule that will just switch the value back automatically if the user changes it but it would be good if i could control the read only status.
View 3 Replies
View Related
Aug 31, 2011
I want to change 'mutil value select" to "custom value input" in ilogic user parameters. something like this:
if condition A then
multivalue.setlist("length", 1,2,3,4,5)
else
(users can enter any value they want, how can i remove the list first and set it to custom value input?)
View 2 Replies
View Related
Jan 30, 2013
Currently have an iLogic rule in my drawing template that base on user input brings up the Drawing View dialog box (as though you click on base view). I want to know if there is some coding I can do to control or handle what happens if the user clicks the cancel command inside this dialog box. Possibly show a message box. Or even run another rule after the cancel button has been clicked?
View 1 Replies
View Related
Sep 26, 2012
Is there a way to set old versions folder to save to a different location than the working folder?
Our IT deletes these folders from our server, so I would like to have them save to my hard drive.
View 1 Replies
View Related
Apr 18, 2012
How do I change the default save location?
It goes to my documents, but in options I can't find anything with that path.
I want it to go to a different folder but I can't figure out how to make it do that.
View 8 Replies
View Related
Jul 11, 2013
We have about 25 users on Inventor working via a common network on multiple projects, we do not have vault.
In using the content center, I see one has to specify the location of instanced content center parts under options>file>>Default Content Center files. Is there no other way to get the instanced content center parts to save under the specific project file location without changing it manually each time via options>file>>etc. Is there a setting under projects?
View 2 Replies
View Related
Sep 18, 2012
We have an iLogic assembly with to parts in it. Maybe to cylindrical parts. The iLogic rules should do the following.
1. Start a Rule after open document.
2. This Rule starts a Rule in the first cylindrical component.
3. This Rule ask the user for a diameter.
4. The assembly gives this new parameter value to the second component
5. Then the assembly calls another rule in the second component to change it with the new parameter
Everything is working fine when the following combinations are taking place:
1. I open up the assembly out of vault or from a local drive or an accessible server drive
2. I insert the assembly as sub assembly in another assembly from a local drive or an accessible server drive
It don't work with the following situation:
- I insert the assembly as sub assembly in another assembly out of vault
Then the user becomes the dialog "Choose a diameter" twice.
I don't know why, but I have the idea it has something to do with the functionality of inventor to insert a component more than once. If you insert a component in an assembly Inventor gives you the opportunity to add more than one occurence after each other.
change that behaviour? Maybe a switch to change that inventor "add more than one occurence" behaviour.
View 1 Replies
View Related
Nov 20, 2012
In my quest to remove any unnecessary clicks I want to be able to set the default location when you press Save, Save As, Demote or 'Save and replace component'.
Default it will show up a file save as dialogue starting from my workspace. Or my last saved location. I believe this is stored in the registry and hope to Intelligent adjust these registry value's using VBA.
When diving into the registry I believe I found the right keys here:
HKEY_CURRENT_USERSoftwareAutodeskInventorRegistryVersion17.0SystemPreferencesFileDialog
Problem 1:
- if i change them manually I don't find a difference in Inventor (If I change other things in the registry, this has an effect)
Problem 2:
how do I set them automatic using VBA? I've got the strings sFileLocation & sFileName true the rest of my code. So I would need to do something like:
Dim oRegFileSave as Regisry entryset oRegFileSave as
HKEY_CURRENT_USERSoftwareAutodeskInventorRegistryVersion17.0SystemPreferencesFileDialogLastFileSaveDialogoRegFileSave = sFileLocation & "/" & sFileName
For your information, these are the registry entry's I believe I need to adjust:
View 5 Replies
View Related
Oct 29, 2011
I would like to have our newly created Content Center parts end up in a vault folder location unique to them. This will manage our conversion from the standard parts to our custom parts. Unfortunately, Inventor automatically saves these to the en-US folder. How can I set parts to automatically save to the Content Center/Roberts Standard Parts location as shown (attached) when they are inserted in an assembly.
View 2 Replies
View Related
Feb 18, 2012
I created a template and changed some style properties. I can not save to master location and when I open the template is tells me it is going to override my custom style.
How do I save out my custom style to the defalut location?
View 1 Replies
View Related
Oct 8, 2012
Is there a way to change the default save location for imported components? I can't stand the default "Save in Workspace" option which creates the dreaded & useless (IMHO) "Imported Components" folder.
I know how to change it during an import by clicking the "Options..." button. But if I or another one of our users forgets to do that, then things get saved to the "Imported Components" folder. This becomes particularly annoying with library files.
View 6 Replies
View Related
Sep 26, 2013
I cant't save copy as PDF when I point to a nework location, It's working when I save directly on my computer.
I get a message saying : "Failed to publish DWF file."
View 2 Replies
View Related
Apr 24, 2012
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.
ThisDoc.Document.SaveAs(ThisDoc.Path&"2D_DRAWINGS"&iProperties.Value("Custom", "Drawing No.")&" (Rev "&Parameter("BEAUFORT_ARRANGEMENT_3.iam.DRAWING_REVISION_NO")&")"&".DWG", True)
View 1 Replies
View Related
Oct 24, 2012
I'm currently using this rule for easy PDF making
SaveLoc = "C:Temp"FileName = ThisDoc.FileName(False)Revnr = " rev_" & iProperties.Value("Project", "Revision Number")PDFnaam = SaveLoc & FileName & RevnrThisDoc.Document.SaveAs(PDFnaam & (".pdf") , True)MessageBox.Show("PDF is aangemaakt in C:Temp", "Document creation",MessageBoxButtons.OK,MessageBoxIcon.Information)
The problem with this is that i want to save without lineweight? is there anyway to do this with this code?
View 2 Replies
View Related
Aug 3, 2010
I want a part automatically to be "saved as" in my workspace.
there is the command
ThisDoc.Document.SaveAs(NewFileNameAndExtension , True)
in the browser of iLogic but I don't know how to use it.
I tried ThisDoc.Document.SaveAs("partname.iam", True)
but that's couases a error.
View 4 Replies
View Related
Apr 11, 2013
I have a template part that I would like to save automatically once the parameters dialog box is closed. I would also like the Save As filename to automatically be filled in with a iProperty named "Part Name". I already have the "Part Name" description grabbing information from parameters. Is this possible? And is the best way to trigger the event after an "iProperty change" or "Any Model Parameter Change"?
View 1 Replies
View Related
Dec 3, 2010
I would like to use iLogic to do a File Save As and have the dialog box open in a specified folder. I have tried the code below but it doesn't work.
oFileDlg.InitialDirectory = "J:" & strFolder & (".dwg")
oFileDlg.ShowSave()
View 2 Replies
View Related