AutoCAD Inventor :: How To Run Rule In Part File From Rule In Drawing File

Aug 21, 2012

I am trying to use iLogic to create the file types I need to give to my vendors once I have created a drawing.In the .idw file I have a rule that creates a .pdf file and .dwg file. I also want it to activate a rule I have in the .ipt file that creates a .dxf file.

trigger = iTrigger0oType=Left(ThisDoc.FileName(False),3)GoExcel.Open("S:DRAWINGSFolder Types.xlsx", "Sheet1")For rowPN = 1 To 200 If (GoExcel .CellValue("A" & rowPN) = oType) Then oFile = GoExcel.CellValue("C" & rowPN) Exit For End IfNextoFolder = "S:DRAWINGSNOT RELEASED" & oFileIf Not System.IO.Directory.Exists(oFolder) ThenSystem.IO.Directory.CreateDirectory(oFolder)End IfThisDoc.Document.SaveAs(oFolder & "" &

View 5 Replies


AutoCAD Inventor :: Run Ilogic Rule In Each Part From The Assembly Via External Rule

Dec 6, 2011

I want to simply set a custom iproperty as the Description in each part file within my assembly.  I can do this easily at part level with ilogic but I want to be able to run the rule from the assembly level and all the parts run the rule.  I am struggling to find a way to do this.

I think this may be the best method I have found but I think it must be far easier?


View 9 Replies View Related

AutoCAD Inventor :: Invoke ILogic Rule Editor And Pass It On Existing Rule Name?

Jan 7, 2014

Is there a way to invoke the iLogic Rule Editor and pass it an existing rule name or external rule for editing?

View 4 Replies View Related

AutoCAD Inventor :: ILogic / Run Assembly-level Rule From Component Rule?

Aug 2, 2013

I need a way to run a rule which is saved in my top-level assembly using iLogic rule which is saved in a part file in the parent assembly.

I have even tried using an external rule in a txt file, but that gives the error "Component: This function can only be used in an assembly."  - which makes no sense to me.   I hope I am just missing something simple.  I cant believe with all its other strengths, that iLogic would be so limited in that regard.   Why is there not simply a snippet under the 'Run Other' that allows you to specify an assembly file and the rule name?  (like there is for running a rule in a component from the assembly)

View 4 Replies View Related

AutoCAD Inventor :: ILogic Design - Why Work With Local Rule But Errors On External Rule

Dec 9, 2011

I am working for customer with a simple item with his iLogic design. He has created a simple form to modify his iProperties. To modify the current material, a multi-value parameter was created and the following rule as a local rule;

"MultiValue.List("MATLIST") = iProperties.Materials
iProperties.Material = MATLIST"

He is now trying to make this an external rule but gets the following error

Error in rule: Mat2, in document: Mat2.iLogicVb
iProperties.Material: is probably a bad material name.

The more info tab says:

System.ArgumentException: iProperties.Material: is probably a bad material name.
at iLogic.CadPropertiesInRule.SetDocMaterial(Document doc, String matName)
at LmiRuleScript.Main()
at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)

View 2 Replies View Related

AutoCAD Inventor :: ILogic Rule For Each Part In Assembly To Change Part Parameter

Apr 1, 2013

I`m looking for the iLogic code that can change one parameter (user defined) for each (ipt) part in assembly (iam)

The one below doesn`t work.

Sub Main Dim oApp As Inventor.Application = ThisApplication Dim oAssy As Inventor.AssemblyDocument = oApp.ActiveDocument For Each oSubDoc as Inventor.Document In oAssy.AllReferencedDocuments On Error Resume Next Parameter(oSubDoc, "FH") = 15.26 Next End Sub

View 5 Replies View Related

AutoCAD Inventor :: ILogic Rule Surface Flat Pattern Area From Assembly File

Oct 16, 2013

I created an iLogic rule that allows in a sheet metal part to the informations Length, widht and area of a flat pattern. This rule run and the iproerties are created (see attachment file).

Now, I will run this rule from an assembly file to create automatically, in all sheet metal components, theses iproperties.

Is it possible ? what must I change in this rule ?

View 1 Replies View Related

AutoCAD Inventor :: Using A Rule To Toggle Part Visibility

Jun 12, 2012

I have a simple Assembly for a Frame that I made with Frame Generator. I'd like to use a rule to toggle the visible of some of the framing members.

In the sub assembly (called Frame0001:1) I created a rule:

(I have a variable called LeftAngle, and the bar I want to toggle is called Bar1.)

If LeftAngle = 90 then
Component.Visible("Bar1") = False
Component.Visible("Bar1") = True
End If

I am sure this is VERY basic, but I can't get it to do anything. There is no error message - just nothing happens.

I know the rule is running though - it will change other parameters in response to the If Then statement.

View 6 Replies View Related

AutoCAD Inventor :: Driving ILogic Rule Into A Part

Jun 17, 2013

I would like to make an External Rule that would make an iLogic Internal Rule (with the same code every time).  I guess what I really need is a way to drive an Ilogic rule into every part that does not have the rule in the part already.

I know what you’re thinking and just using the External Rule doesn’t work for what I want to do.  I need it to be an iLogic Internal Rule.

View 9 Replies View Related

AutoCAD Inventor :: ILogic Rule To Retrieve Part Number From Excel

Aug 15, 2012

iLogic rule that will retrieve a part number(s) from an excel sheet. I work for a company that built vacuum trucks and I'm trying to make an . I am template where the user can select different lengths of shells to achieve the desire overall length. I have been able to achieve this using iLogic rules and forms and making the shell length parameter multi value.

But now I need to show predetermined SAP part numbers for the shells in BOM or part list. I all ready have an excel sheet with shell sizes with corresponding part numbers on file. I also thought about incorporating our custom CC parts/shells that already have the SAP part numbers set up as a custom iProperty but might be to complicated for a newbie iLogic user.

View 9 Replies View Related

AutoCAD Inventor :: Running ILogic Rule In Assembly From Subassembly Part

Nov 17, 2011

I have a rule in the top assembly to update & want to run this as a final 'clean up' after various rules have run in sub assembly parts.

I have a rule within a part at the end of the line. I want this rule to goto the top assembly & run the 'Update' rule.

View 4 Replies View Related

AutoCAD Inventor :: ILogic Drawing Rule

Jul 18, 2013

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.

View 2 Replies View Related

AutoCAD Inventor :: Rename Browser Node On Part Level With ILogic Rule?

Oct 18, 2011

is it possible to rename the browser node on part level with an iLogic rule? I know that in the assembly environment is an Inventor OOTB functionality to rename the nodes to the filename, Part number or the default value.

Inventor Professional 2011
Windows 7 Enterprise 64bit
Dell Precision M4500
Intel(R) Core(TM) i7 CPU Q 820 @ 1.73GHz

View 2 Replies View Related

AutoCAD Inventor :: Sheet Metal Rule In Drawing

May 7, 2012

I have setup all our Sheet Metal Rules to be all of our stocked in house sheet metals.  The sheet metal rules are named like:

ALUM 5052 H32 1/2" (Part Number)
ST STEEL T304 3/8" (Part Number)
STEEL 44W 1/8" (Part Number)

And each rule has the proper thickness, material, and some standardized bend radius's.  I've done this to introduce more uniformity in our designs, and to also allow the designer to put as much information into the model as possible, so that if someone else does the drawings, there is no question as to which material is used.

I now want to bring in the Sheet Metal Rule name into the drawing automatically.  I can't seem to find a way to reference the Sheet Metal Rule directly from the drawing.  What I need to do is pick a standard field in the i Properties (I used Stock Number), and put in =<Sheet Metal Rule> so that now the Stock Number references the Sheet Metal Rule, and then in the drawing I can just reference the Stock Number, and it will come in.

I don't like having to use the Stock Number as a middle man though, as none of our existing models are setup like this.  Is it possible to reference Sheet Metal Rule in the drawing without having to use another field as a placeholder for the information?  

View 7 Replies View Related

AutoCAD Inventor :: Any Feature Is Not Recognized As Part Geometry Change Because rule Isn't Triggered

Dec 6, 2013

In our drawing file we expose the mass of the part. So I have set the 'Update physical properties on save' in the 'Application Options'. This works fine when you save your file before switching to the drawing file. If you forget to save and go to the drawing file the mass is showed as: N/A.

Therefore I have created a rule which updates the mass of the part. This rule is activated with the 'Part Geometry Change' event trigger. This is done to update the mass in the drawing file even when the partfile is not saved. This works fine. If I make any changes to the model the mass is updated correct, EXCEPT for deleting features. When I delete a feature and switch to the drawing file the mass is shown as N/A again. So apparently deletion of any feature is not recognized as a 'Part Geometry Change' because the rule isn't triggered.

View 7 Replies View Related

AutoCAD Inventor :: ILogic Rule To Change Drawing View Layer

Jul 22, 2013

I am trying to piece together some code for an ilogic rule. This rule should look for a drawing view that is a flat pattern, if it finds one it should change the object layer to our "CNC" layer.

View 3 Replies View Related

AutoCAD Inventor :: ILogic Rule To Switch Units In Drawing Between Imperial To Metric

Apr 22, 2013

I would like a few rules to be triggered once the new drawing template is sheet size, I have been given a rule that already works, basically the rule selects a border and title block based on sheet size selection.

trigger = iTrigger0iLogicForm.Show("BorderChange", FormMode.Modal)iLogicVb.UpdateWhenDone = TrueIf Parameter("BorderSize") = "A0" Then ActiveSheet.ChangeSize("A0", MoveBorderItems := True)ActiveSheet.TitleBlock = "MJTD A0"ActiveSheet.Border = "MJTD A0.

I would also like a rule to let me annotate in metric or imperial. this is where I require assistance. I am not sure the best way to achieve this rule. My programming is very basic.I have found some links here, but I can't seem to make them work in the drawing environment. Also these rules seems to change the units of an already created .ipt.

Rule #1 Link

Rule #2 Link

I am just looking for a rule to select either .in or mm from the styles library(i think) , before I even place a base view. Regardless of the original units used to make the model.

View 2 Replies View Related

AutoCAD Inventor :: ILogic Rule - User Input Brings Up Drawing View Dialog Box

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

Lightroom :: Raw To JPEG File Size Rule Of Thumb

Jul 7, 2012

I’m wondering if there is a rule-of-thumb that one can use to predict the approximate size when exporting a raw file in Lr to a jpeg file.  For instance, would an average 25 Mb raw file convert to about 5 Mb jpeg with the Lr export quality set to 100?  To about 3.5 Mb with a quality of 80? …
I know the size will vary, but when I am exporting a collection of raw files and I have set the max file size to a certain amount, Lr sometimes won’t convert all the images because I have limited the file size too small.  I’d like to be able to get a handle on some sort of quality/file size relationship before I start the export process.

View 4 Replies View Related

AutoCAD Inventor :: Changing Part File In Drawing?

Aug 8, 2012

Is it possible to update an existing drawing to reference a new part or assembly file while maintaining associated views and possibly the annotation also? 

I have tasks which require frequent subtle changes to assemblies. These assemblies will then be given a completely new file name, so it is no longer just a revision change but a new part altogether.

View 5 Replies View Related

AutoCAD Inventor :: Part Missing In Drawing Of IPN File

Nov 5, 2013

I've got a view of a presentation in a drawing and one of the parts which is in a sub assembly.

I've checked the visibility in the presentation and the drawing and the assembly but all say visible.

Restarted the computer, but still no change.

see below a pic of the drawing, I've drawn in a red rectangle where the part should roughly be.

IV 11

View 4 Replies View Related

AutoCAD Inventor :: Change Drawing File Part Association?

Dec 1, 2009

I sometimes create parts that are very similar to one another. (ie. - complex plate, but one part uses threaded holes, while an identical one has through holes, with all holes in the same location). So before now I would have built one part, made my drawing file. Then Copy/paste the part file into the same assembly folder, edit the hole feature of the newly copied part, then have to create an entirely new drawing file for the new copied part.

Is there a way to just copy my already created part drawing, and then just change the part file it used? They are basically the same part, but one uses threaded holes, the other uses through holes. My current way seems redundant and time wasting.

View 9 Replies View Related

AutoCAD Inventor :: How To Show A Feature Of A Part File As Dashed In A Drawing

Jul 18, 2013

How to show, if it's possible, a feature of a part file as dashed in a drawing?

View 2 Replies View Related

AutoCAD Inventor :: Get Position Of Faces Of Part When Place On IDW Drawing File?

Jan 21, 2013

How to get postion of faces of part when place on idw drawing file???

Do we need to use (ThisApplication.MeasureTools.GetMinimumDistance(oTG.CreatePoint2d(0, 0), oFa.PointOnFace)?
If we use that we will get distance  but how to get face postion on idw. do we need to use edges?? or lines?

View 2 Replies View Related

AutoCAD Inventor :: Hiding Solid In Drawing For A Single Part File

Feb 1, 2012

I have a part file  that contain 7 separate solid. But in the drawing i want to show only 4 solids.

 For this reason i put invisible command  to other 3 solids in the part file . but in the drawing,  i still see  all the seven parts. 

View 1 Replies View Related

AutoCAD Inventor :: Link One Part File Dimension To Another Part File?

Jul 6, 2012

Is it possible to link one part file dimension to another part file?

1. Part first is a cylinder in parametric table i changed it,s name OD , ID  and thk. ( find attachment )

   Cylinder ID is ( ID=105)

2. Then i made 2 nd part whose step od ( od=102) is going to insert in to cylinder id.There is 3 mm clerance every time 

3. So i have to make equction in 2 nd part that ( Step OD= ( ID-3).

means next time when i will change ID of cylinder OD of 2 nd part will ger changed automatically minus by 3 mm than id of cylinder.

View 3 Replies View Related

AutoCAD Inventor :: How To Create A Rule In ILogic

Apr 18, 2012

I want to create a rule that will warn the user when the plate thickness they are using is not standard.  I have already created a multivalue parameter for plate thickness, which lists all standard steel plate thickness's and also allows for custom values.

I was hoping I could create a rule that would prompt a dialogue box warning when the user creates a custom value for plate thickness.

I know this can be done,  but like I said,  Im bloody useless with iLogic and find it hard to come across relevent examples and/or tutorials online.

View 2 Replies View Related

AutoCAD Inventor :: Use Function In External Rule

Oct 28, 2013

I have an ilogic external rule which contains functions that I use from rules in my local assembly document. I'm trying to access the value of a parameter in the document from the external rule's function. Attached is a simple version of what I'm trying to do. If I manually run the external rule, it seems to work just fine, but when I call on the function from a seperate rule, its unable to get the parameter value. I get an error stating, "'Parameter' is not declared. It may be inaccessible due to its protection level."

'this is the external rule. if I run this manually, it works

Public Class test_functionsSub Mainmyresult = ""thisisatest(myresult)MsgBox(myresult)End SubFunction thisisatest(ByRef resultcreated As String)resultcreated = "it worked - " & Parameter("ParameterInDocument")End FunctionEnd Class
'this is my rule in the assembly document trying to use the external rule's function

AddVbFile "z_testrule.iLogicVb"Dim external_rule As New test_functionsmyresult = ""external_rule.thisisatest(myresult)MsgBox(myresult)

View 3 Replies View Related

AutoCAD Inventor :: ILogic - Save As PDF Rule

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

AutoCAD Inventor :: Running A Sub In ILogic Rule?

Sep 5, 2012

I have an ilogic rule with multiple Subs. How could I run one specific sub contained in that rule from an iLogic form or another rule?

View 2 Replies View Related

AutoCAD Inventor :: Delete ILogic Rule Using VBA?

Jul 6, 2011

i have an iLogic rule in serveral files. Now this rule has to be deleted. This should be done with VBA. I can not find any function to delete a rule using VBA.

I found a function iLogicAuto.RunRuleDirect(rule), but not iLogicAuto.DeleteRule(rule) ...

I can not find any documentation for iLogic/VBA.

View 9 Replies View Related

Copyrights 2005-15, All rights reserved