AutoCAD Inventor :: Pass Array To External Rule?

Nov 26, 2013

Is there any way to pass an array from an internal rule to an external rule in iLogic?

View 2 Replies


ADVERTISEMENT

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 :: 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?

[URL].......

View 9 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 :: Pass Variable From VBA To ILogic Rule?

Sep 20, 2011

We are using Inventor 2011.

I have found a rouind about way to display document thumbnails in VBA in 64 bit windows 7 inventor.

The only piece of the puzzle I am missing is for a way to push a document object or a document file name into an iLogic Rule from VBA. 

Below is a 64 bit thumbnail solution for VBA sans the input.

Essentially I am launching an iLogic Rule from VBA that pushes an inventor document object into a VB.NET dll.

The dll converts the iPictureDisp into a VB.NET image object, reduces the size then converts it into a byte array.

The byte array is passed back to VBA through the same iLogic Rule.

Once the byte array is received it is converted back into an iPictureDisp object.

' ----------------------------------------

' --- VBA Project Form Code ---

' ----------------------------------------
Option Explicit
Private Sub Command1_Click()
End Sub

' -------------------------------------------

' --- VBA Project Module Code ---

' -------------------------------------------
Option Explicit
Public Sub SetPic(ByRef bBuffer() As Byte)
Set UserForm1.Pic.Picture = PictureFromRes(bBuffer)
End Sub

[Code]....

View 9 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 :: Run External Rule In Occurrences?

Jan 29, 2013

Is it possible to run an external rule in assembly occurrences?

You have RunRule in Component, But it does not seem to work with external rules

I referenced to occurrences and opened it using ThisApplication.Documents.Open(filepath, False)

Then i tried calling the same external rule. I thought it would run the external rule in the opened file,

but I ended up with a infinite loop on the main assembly.

Is there a way to run your rule in every occurrence with external?

View 2 Replies View Related

AutoCAD Inventor :: Launch External ILogic Rule With VBA?

Sep 26, 2011

Is there someway to launch an external iLogic rule with VBA?. I'd like to add a button to run the iLogic rule.

Inventor Pro 2013 (PDS Ultimate)
Vault Pro 2013
Windows 7 64
Xeon 2.4 Ghz 12GB

View 9 Replies View Related

AutoCAD Inventor :: External ILogic Rule Error

Oct 3, 2011

why this will not run as an external rule? It runs fine as an internal one.The error I get is object referance not set to an instance of an object?

 'Updates rule when done
iLogicVb.UpdateWhenDone=True
'Creates input list dialog box & allows the user to choose the state
Product_Code=InputListBox("Enter Product Code", MultiValue.List("Product_Code"), Product_Code, Title :="Product Code", ListName :="Available Codes")
'Writes values to iProperty
iProperties.Value("Project", "Cost Center")=Product_Code

View 2 Replies View Related

AutoCAD Inventor :: External ILogic Rule Is Not Working

Oct 5, 2013

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:

View 2 Replies View Related

AutoCAD Inventor :: How To Create External ILogic Rule

Jul 3, 2012

How to create external ilogic rule?

View 3 Replies View Related

AutoCAD Inventor :: Add External ILogic Rule Under Event Trigger Via API

Sep 22, 2011

Is it possible to place an external iLogic rule under a specific Event Trigger in a file via the API?

Inventor Professional 2014 64 Bit
Windows 7 Professional
NVIDIA Quadro FX 4600
Dual Intel Xeon E5540 CPUs
16GB DDR3 Ram

View 2 Replies View Related

AutoCAD Inventor :: Select Case In External Ilogic Rule

Sep 6, 2012

I've made an External rule in Ilogic that must read a parameter value (Thickness) to set a value in a property (StockNumber).

The value is not written to the property by Using 'Select Case', see code. There is no error or something like that. So what am I doing wrong?

Tested in an internal rule, where Select Case = <Thickness> instead of Parameter ("Thickness") and that works fine.....

Select Case Parameter("Thickness")Case 2iProperties.Value("Project", "Stock Number")="686001"Case 4iProperties.Value("Project", "Stock Number")="686002"Case 3iProperties.Value("Project", "Stock Number")="686003"End SelectiLogicVb.UpdateWhenDone = True

View 2 Replies View Related

AutoCAD Inventor :: Get Environment Variable To Run External ILogic Rule

Sep 17, 2012

I tried to read an environment with iLogic and to combine it with an external rule name and to pass the whole path over to iLogicVB.RunExternalRule.

StrPath = Environment.GetEnvironmentVariable("ILOGIC_DIR")ilogic_rule = "IPT__01_New_Document_EXT.iLogicVb"rule = StrPath & ilogic_rule'MessageBox.Show(rule, "iLogic Rule to execute")iLogicVb.RunExternalRule(rule)

The message box shows the correct path, but I allways receive a error massage:

'GetEnvironmentVariable' is not a member of 'Inventor.Environment'

View 3 Replies View Related

AutoCAD Inventor :: Change External ILogic Rule Destination

Jan 6, 2014

My company has recently switched from the H drive to the G drive. This has resulted in a lot of old files still referring to the H drive where the External Ilogic rules used to be. I'm wondering if there's any automatic way to change that? Uploading a pic showing the event triggers as they are now.

Inventor 2014 Professional
Windows 7 Professional 64 bit
Intel Xeon E3-1240 @ 3.4 ghz
Nvidia Quadro 600
8.00 gb RAM

View 2 Replies View Related

AutoCAD Inventor :: External ILogic Rule With User Parameters

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

AutoCAD Inventor :: Global Forms Button To Immediately Launch External Rule?

Apr 4, 2013

I would like to instantly launch an External Rule just by clicking on a button in the Global Forms area of the iLogic browser.  Is this possible, and if so, how would I do it?

Product Design Suite Ultimate 2014 | Vault Basic 2014 (SP1)
Dell Precision M6600 | Intel i7-2820QM - 16GB
nVIDIA Quadro 4000M | Windows 7/64 Pro

View 2 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 :: 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 & "" &
[code].....

View 5 Replies View Related

AutoCAD Inventor :: Pass Parameter To DLL Using ILogic

Mar 26, 2013

I have built a vb interface using a tutorial from AU. Now I would like to do the same without the interface.

Inventor uses ilogic to pass parameters to the dll - the dll does the number crunching & returns values to Inventor - no interface required.

The tutorial uses an OK button to fire values back & forth - how can I do this without a button? I would like this to fire in the background without a form appearing.

View 4 Replies View Related

AutoCAD Inventor :: How To Pass Variable From One Addin To Another

Aug 25, 2013

I've used vb.net to write two separate addins.  I was wondering if there is a way to pass a variable from one addin to another similar to the way shared variables are passed from rule to rule in iLogic.

View 2 Replies View Related

AutoCAD LT :: Getting Array Window In 2012 To Open With Array Command?

Sep 30, 2011

How does one get the array window in 2012 to open with the array command like it does in 2007

View 2 Replies View Related

AutoCad 2D :: Use Path Array Feature On 2013 To Array Stairs

Sep 19, 2012

I'm trying to use the PATH array feature on 2013 to array stairs, and I can't get the array to be 100% accurate. It seems like CAD rounds the decimal to the nearest 3/4" which could be causing the problem.

I set my run to 10.5" and rise to 7.25", array along the angle of the stringer, and there's always a small overlap on the stairs. The "distance between" should be 1'-209/256" and CAD rounds it to 1'-3/4" which is where I believe the error is. Is there any way to fix this or array this correctly? Otherwise...back to the COPY method I suppose.

View 4 Replies View Related

AutoCAD Inventor :: (VBA) Write Multiple Prompted Entry Fields In One Pass?

Oct 17, 2013

Is it possible to write multiple prompted entry fields down in a single pass? As it is now, you can see the taskbar reporting as it writes down each line.

Essentially i've got 6 different fields i'm trying to write down using code like shown below:
 
If oTB.GetResultText(oTitleBox1) <> Me.Title1.Value Then Call ThisApplication.ActiveDocument.ActiveSheet.TitleBlock.SetPromptResultText(oTitleBox1, Title1.Value)End IfIf oTB.GetResultText(oTitleBox2) <> Me.Title2.Value Then Call oTB.SetPromptResultText(oTitleBox2, Title2.Value)End If

Just wondering if there's a way it can be written down in a single pass to save time or if it's a limitation of prompted entry text.

View 2 Replies View Related

AutoCAD Inventor :: Pass Properties From Assembly To Derive Part To IDW Drawing

Aug 10, 2012

I am using inventor 2013, and I have some model and like the word say they are model that i will use as derive parts to machined or change depending on the model. then I make the IDW drawing from the derived part.

Most os this models are assemblies. what i want is to pass the model number to my IDW drawing of the derived, so i can see from which model the part is derived.

View 5 Replies View Related

AutoCAD Inventor :: How To Get Bolted Connection To Pass Through A Component And Machined Plate

Nov 26, 2012

I have been working on a large assembly and I am trying to get a bolted connection to pass through a component and a machined plate.  I have been using the cocentric option to complete many other holes up to this point, but not through a machined surface.

When I attempt this, I get two errors saying:

Design Accelerator Doctor

1. Failed to add sketch for a hole

2. Failed to create a hole

My questions are:

Is there a way around this Or is this a problem that I am going to have to work around?

Or

Is there a better way to get a hole/bolt through this assembly?

View 1 Replies View Related

AutoCAD Inventor :: Activate Vault Check In Box Hidden And Pass Predefined Options?

Aug 2, 2013

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.

View 8 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 :: 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 www.BigResource.com, All rights reserved