So the other day I set up an external rule and created an event trigger to run the rule on save. It worked great ... for a couple days, and then it just stopped working yesterday. I can still run the rule manually and it works fine, but it doesn't seem to run automatically anymore on file save. Yes, iLogic is set to Loaded / Automati in the add-ins panel.
(on the iLogic rule attachment, remove .TXT from the end. I had to add that due to the board's rules about file types.)
Product Design Suite Ultimate 2013, 2014
Autodesk Inventor 2013
I am setting up template .ipts and .idw for my company, and i run Adept to save and store my files. Now i have a code to automatically make a .idw after i save an .ipt. but then after every save (adept saves the .ipt a lot of times) it will ask to make a drawing for the .ipt. well i was wondering if there is a code to put in a rule to disable the event triggers, and place that rule on the trigger after close document. so that the next time i open the document no event triggers will work.
I have a rule in iLogic that I was testing as "Straight VB.Net" on various assemblies. It was working alright, but I was making some minor tweaks to eliminate errors. Now, all of a sudden, it is unresponsive. Completely. No errors, no "busy" symbol over my pointer, just nothing. I put in the line MsgBox("Begin") as the first line of the program to see if it was even getting into it, and still there is no response. I run the rule, and absolutely nothing happens. I tried writing it in iLogic instead, and that does make something happen. what might cause the VB.Net element of iLogic to stop working, and hopefully how to correct the problem as well?
Is there any chance to define an event trigger which runs an iLogic rule when we check out an already open file? Problem is, that we need to synchronize iProperties on check out to clear "Approved by" when Vault State of Part is "under revision"
Vault Parameter "State" is mapped with iProperty "State".
Is there a way to set the event trigger of an ilogic file that's already inside of a document? I have code that can automatically create and populate new rules across my assembly parts, but it would be nice to set certain rules to fire every time that part gets saved.
If it can't be accomplished outright from the API, would it be possible to throw an OnEvent (save event in this case) inside of the iLogic code, to get the same results? URL...
Created in the template sheet metal rule. Why External ilogic rule is not working? User-valued parameter is created, sheet metal rule does not change.
name = ""For Each par In ThisDoc.Document.ComponentDefinition.Parameters.UserParameters If par.Name = "SMR" Then name = par.Name Exit For End IfNextIf name = "" Then Dim MyArrayList As New ArrayList For Each st In ThisDoc.Document.ComponentDefinition.SheetMetalStyles MyArrayList.add(st.Name) Next ThisDoc.Document.ComponentDefinition.Parameters.UserParameters.AddByValue("SMR", "", UnitsTypeEnum.kTextUnits) MultiValue.List("SMR") = MyArrayList Parameter("SMR") = SheetMetal.GetActiveStyle()End IfSheetMetal.SetActiveStyle(Parameter("SMR"))iLogicVb.UpdateWhenDone =TruePS:
I would like to use the if else parameter in iLogic to set up a range, but I'm not getting it right.
What should happen:
if the variable 'breedte' is:
- 0 up to 3800; thats OK
- 3800 up to 4000; thats not OK, use 3800 instead
- 4000 and up; thats OK
Therefore I wrote this script, but when I enter a number between 3800 and 4000 (like 3900), the MessageBox appears (thats good), but the size of my solid results in 3900, instead of 3800.
breedte = InputBox("What is the breedte?", "Hoofdmaten", "")Parameter("skelet.ipt.breedte")=breedteIf breedte <= 3800 Then breedte = breedteElse If breedte >= 4000 Then breedte = breedteElse If (breedte >= 3801) AndAlso (breedte <= 4000) Then breedte = 3800 MessageBox.Show("This breedte is not possible." & hoogte & vbCr & "The value of 3800 will be used instead.", "Problem message", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk) End If
I want to save my PDFs as All Colors As Black, but setting the option to 0 or 1 doesn't work, it keeps saving the PDFs in color. Here's the snippet of
If oPDFAddIn.HasSaveCopyAsOptions(oDataMedium, oContext, oOptions) Then oOptions.Value("All_Color_As_Black") = True oOptions.Value("Remove_Line_Weights") = False oOptions.Value("Vector_Resolution") = 400 oOptions.Value("Sheet_Range") = Inventor.PrintRangeEnum.kPrintAllSheets 'oOptions.Value("Custom_Begin_Sheet") = 2 'oOptions.Value("Custom_End_Sheet") = 4 End If
What is wrong with the option in the second line (shown in red)? I've tried a few other variations of All_Color_As_Black, but I'm having no joy. All the other examples I've looked at either has that option set to False (0) or that line is commented out .
I have found some code which extracts the part number from the iproperties of a model and adds it to the custom iproperties of a drawing but this will only work on iam or ipt files.
Here's the code, I added the lines referring to the docment type as an attempt to fix the error but it didn't work...
If (ThisDrawing.ModelDocument Is Nothing) Then ReturnIf ThisDrawing.ModelDocument.DocumentType = kPresentationDocumentObject Then modelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)End IfIf
Let me know the solution for Getting "AutoCAD LT has Stopped working" while attempt to print in HP Laserjet M1536 dnf MFP Printer. I have tried the following steps but still i am getting the same Error.
1.Graphics Driver has been updated.
2.Printer Driver has been completely removed and reinstalled.
3.New configuration for this printer has been added.
4. AutoCAD LT 2013 Service Pack 1.1 has been installed.
System configuration: Win 7 -64 bit,4 GB ram, Intel-i3 2120 processor, Intel(R) HD Graphics.
All of a sudden, my action macros aren't working. I'm getting "Unknown command" errors. I've checked my options, everything's pointing to the right folder, and the macro files are in the right folder. Why would I be getting this error?
All of a sudden I got this window when starting AutoCAD:"AutoCAD Application has Stopped working..A problem caused the program to stop working correctly.Windows will close the program and notify you if a solution is available."
I'm using v2013 on a desktop with Windows 8..I have been using the program since I got this new system in November without a hitch On sunday I had a nasty virus -Today I had to uninstalled AutoCAD and re-installed it and it worked good.After I closed it and went to open the application again I got the MESSAGE again
I was working normally in a drawing (ACAD 2012, 32b) file when, without any apparent reason, I tried to delete something and it didn't work. The way I work is that I select first and then press the "delete" key.
Now, when I do this, absolutely nothing happens. The objects remain selected. While trying to figure out what was happening, I discovered further disruptions. For example, when I select and object and then right-click, instead of showing me the edit shortcut menu, it repeats the last command. I know what you are thinking, but I already verified the right-click customizations and it is correctly set to "shortcut menu" in the "edit mode".
Finally, when I double click on a text, it won't edit as expected; again, nothing happens. Ane yes, in "Options/Windows standard behaviour" the "Double click editing" options is selected.
All the above has it's way around: the "erase" command works, the "ddedit" text works, etc. But it slows me down horribly.
I'm currently using Civil 3D 2012, and all of a sudden CTRL+Z has stopped working as UNDO. It does nothing. I've found this issue in lots of other outdated forum posts, but none seem to relate to Civil 3D 2012. I went into CUI to see if the shortcut was somehow changed, but the UNDO command still points to CTRL+Z as its shortcut.
A while ago I found out you can deselect something from your current selection set by holding down the shift key and clicking on it. This was a pretty useful tool...but then it randomly stopped working today for me.