AutoCAD Inventor :: How To Create ILogic Rule To Create Custom IProperties

Sep 30, 2013

I'm trying to figure out how to create an  iLogic rule that would create a Custom iProperties and put in what version of Inventor the file was last updated with.

View 8 Replies


ADVERTISEMENT

AutoCAD Inventor :: ILogic To Create And Display / Insert Custom IProperties In Template

Aug 25, 2012

Any way to use iLogic to create custom iProperties from the cells in an Excel spreadsheet (both text and numbers) for a .dwg template. The only thing even close has been a user who already knew how to do it and was having a different problem. I am using Inventor 2012 and Excel 2003 and have very little experience with VB. I currently have a family of assemblies, consisting of two parts linked to an Excel spreadsheet to control the various parameters for each variation of the assembly.

I need creating an iLogic rule that will:

Go to a specific tab (I have four different tabs/worksheets) in an Excel spreadsheet.

Make a specfic row of that worksheet the current row based on the part number used to generate the models of the assembly shown in a .dwg.

Use the contents of a cell in that row (text or numeric or a combination of both) to generate a custom iProperty for the .dwg template.

Use the custom iProperties to fill in the title block of the template.

View 4 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 Code Part Iproperties To Custom Iproperties

Sep 19, 2013

I was looking for some iLogic Code for Inventor 2013 that would cycle through all the parts in an assembly grabbing the quantity of each part and setting it equal to the custom property "Qty" of each part.

Having a little trouble creating the for each loop and setting reference to each part without referencing each part by specific name.

View 6 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 :: How To Create ILogic Rule To Measure Between 2 Planes

Jan 3, 2013

How to create a measurement between two planes using ilogic rules?

I have created the planes on the asssmbly parts but dont know how to directly pick them.

The measurement is going to be used as reference dimension.

View 1 Replies View Related

AutoCAD Inventor :: How To Create Rule Which Limits Pipe Length In ILogic

Apr 24, 2012

How would I go about creating a rule in iLogic which would limit the minimum length of a pipe (parameter = Pipe_Length) to be half the outer diameter of the pipe (Pipe_OD), in other words "Pipe_Length ≥ Pipe_OD/2"

I know you can use the limits wizard in iLogic,  but is that not only for numerical values as opposed to parameters?

View 2 Replies View Related

AutoCAD Inventor :: ILogic Create Custom IPropertie?

Mar 15, 2011

I would like to create an new custom ipropertie with ilogic. The reason is the contentcenter, thei haven't custom iproperties. How should the code work:

if
propertie "test" is available
write the value in the propertie
else if
propertie test isn't available
create prpertie
write the value in the propertie
end if

How can i check if the propertie is already exists in the file?

How can i create a new custom iPropertie?

The rest of teh code is ready and works fine.

i've faund already some code with VBA but not with "pure" ilogic.

View 4 Replies View Related

AutoCAD Inventor :: Adding Custom Iproperties With ILogic?

Nov 2, 2010

Is it possible to automatically add custom iproperties using iLogic?

I have a rule thats adds text to a propery, but when I run the rule in an old partfile i get the error:

"Can't find a property named DrawingNo"

Is there something like:

"Create iProperties.Value("Custom", "DrawingNo")"?

View 3 Replies View Related

AutoCAD Inventor :: ILogic To Create Custom IProperty In Sub-component

Apr 1, 2013

I found this code to create a custom iProperty in the current, open document:
 
Dim propertyName As String = "MyProperty"Dim propertyValue as String = "Test Value"customPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties")Try prop = customPropertySet.Item(propertyName)Catch ' Assume error means not found customPropertySet.Add("", propertyName)End TryiProperties.Value("Custom", propertyName) = propertyValue 

I have a iLogic rule that goes through each component of an assembly, counts how many times it occurs in the assembly, and then assigns that value to an iProparty (i.e. it inserts the total quantity of the part in some iProperty). Currently, however, it assigns the value to a default iProperty value, "Authority". I'd like, instead, for it to assign it to a custom iProperty called "Total QTY". However, I don't know how to tell Inventor to do the above code for a component in the assembly rather than the assembly itself. Below is my entire code. I've labeled where I'm guessing the above code should go. How I'd modify the above code to create the iProperty in the component being processed by the rule at that point?

Current
 
''True comment: Begin '''Commented-out Begin '''PartDocumentObject = 12290''AssemblyDocumentObject = 12291Dim openDoc As DocumentopenDoc = ThisDoc.DocumentDim docFile As DocumentIf openDoc.DocumentType = 12291 Then''If the open document is an assembly:''For each document referenced in this document:For
[code]......

View 2 Replies View Related

AutoCAD Inventor :: IProperties And ILogic - Transfer Custom Title To Drawing

Oct 26, 2012

I have a form that is loading automatically in my part model. where i write the part number, description, project and custom titles.

my questions are:

1 - when i write the part number i would like then when i click apply it opens the save box with the same part number.
2 - it's possible to check-in the file during the saving and keeping the file checkout?
3 -  i would like that some of the properties would be transfer to the drawing, like the description and the project (this two are from the part properties.
4 - transfer also for the drawing the custom titles to the custom i properties of the drawing as pre fill in.

View 1 Replies View Related

AutoCAD Inventor :: ILogic Changes Custom IProperties Type From Number To Text

Nov 2, 2011

I am using ilogic in Inventor 2011 to update my iproperties when I save a .dwg file. I am having problems with some custom iProperties I have created that are of the type 'number' and are initially set to 0 (zero). After the iLogic rule has run and the user has entered a numeric value the type of the custom iproperty has changed to 'text'.

The ilogic code I am using is:

 If iProperties.Value("Custom", "Nominal ID") = 0 Then 
    iProperties.Value("Custom", "Nominal ID") = InputBox("Enter The Nominal ID (Enter 0 if no value is available)", "Nominal ID", 0)
    Custom_iProp_Nom_ID = iProperties.Value("Custom", "Nominal ID")
 End If

I am using Vault 2011 and would like to map this property to a numeric property so I can perform <= and >= searches.

View 2 Replies View Related

AutoCAD Inventor :: ILogic Rule To Change Custom IProperty

Dec 11, 2012

I am after writing part of rule for ilogic,i need the rule to fill out a custom property with information for me. I have a part that has 2 parameters

parameter 1 = Frontplanangleparameter 2 = Endplanangle
Custom property
iProperties.Value("Custom", "DESC2") =

I need the rule to examine both parameters and if both angles = 0 then DESC2 = ""And if any parameter >0 then

iProperties.Value("Custom", "DESC2") = bevel

View 1 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 :: 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 :: Close ILogic Form With VBA Or ILogic Rule

Aug 19, 2013

how can I close an iLogic Form from either an iLogic Rule, or a VBA Rule (VBA is the Preferred method)?

View 5 Replies View Related

AutoCAD Inventor :: Fill Out Cell In Spreadsheet With Text From IProperties - Rule Only Works Once?

Apr 18, 2013

I have made this rule, that should fill out a cell in a spreadsheet with a text from IProperties.. but it seem to work only the first time. 2nd time i run it, nothing happends... not even the msgbox at the end...?!

GoExcel.Open("I:TEGNINGSNUMRE SKEMAERStandard nummer udtagning-test.xlsx", "80000")'Get new partnumber from Excel'Find next empty row in Column BFor RowPN = 2 To 1000RowPN = RowPN + 1If GoExcel.CellValue("B" & RowPN) = 1 Then'Insert title from open DocumentGoExcel.CellValue("C" & RowPN) = iProperties.Value("Summary", "Title")End IfNextGoExcel.Save()

View 3 Replies View Related

AutoCAD Inventor :: Create A Sheet With ILogic?

Nov 23, 2012

What is the code to create (or add) a new sheet in a drawing with iLogic?

View 1 Replies View Related

AutoCAD Inventor :: ILogic To Create Copy?

Jul 31, 2013

coding iLogic to make a copy of the open model under a diferent name is a pre determined location with the same extension.

View 3 Replies View Related

AutoCAD Inventor :: Ilogic To Create View Rep

May 21, 2012

Is there Any code out there that will allow user to select part file then isolate and create view rep of that part with name of view rep the same as part.

The reason is we have lots of reps that isolate various components and this is very time consuming, I have had a look if there is Any customization because this would be a good user tool,also could work very well on assembly.

View 3 Replies View Related

AutoCAD Inventor :: Create And Use Procedure In ILogic?

Dec 23, 2012

How to create and use procedure in iLogic. 

I have try for create simple procedure / function in iLogic but can't work.

function LOD (ByVal a as string) as DrawingView ThisApplication.FileManager.GetLastActiveLevelOfDetailRepresentation(a)end function LOD_Assy = LOD(DirName)

View 2 Replies View Related

AutoCAD Inventor :: Create Multi-value Parameter With ILogic?

May 1, 2012

Is there a way to create a multi-value parameter with ilogic?

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

View 9 Replies View Related

AutoCAD Inventor :: Create Sheet In Excel With ILogic

Jan 9, 2014

I am trying to create a new sheet in an existing excel file and can not figure out how to do it.

I am trying to export parts lists from multiple drawings to an exisitng excel spreadsheet and I'd like have each on their own sheet. I can do everything but create a sheet. How to do this in iLogic?

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

View 2 Replies View Related

AutoCAD Inventor :: Unable To Create ILogic Form

Aug 31, 2012

I have one particular file which will not allow me to add an iLogic form. When I select "Add Form" it does nothing. This only happens in this one file. I can open other files in the same session and they work fine. I can add iLogic rules to this file but I can't create forms.

View 3 Replies View Related

AutoCAD Inventor :: ILogic - How To Create Excel File

Jun 27, 2012

How to create a excel file using ilogic? 

View 6 Replies View Related

AutoCAD Inventor :: Create A Temple For ILogic Code?

Feb 2, 2012

I am trying to use a code window plugin on my website, and would like to create a temple for iLogic code.  Is there any way to output  iLogic code in a format that would work?

I cannot modify any of the existing templates because iLogic requires information as to whether to make some text brown or blue, and it would need some form of output to do that.

[URL]

The instruction page is here: [URL]

I have been manually highlighting or using images, but both have their problems. (cut & paste will lead to a pile of errors with the manual highlighting). I can create the css file, but need some form of output beyond cut & paste to work with.

If something is worked out, it will be added to the program and be available to everyone free (this is a Wordpress plugin).

[URL]

Self built computer with;

Quad core processor
16 gigs ram
Raptor Raid main drives
2 x 1TB Caviar Black storage drives local
2 x 1TB Caviar Black storage drives network backup

Main Software;
Product Design Suite Premium
Windows 7 Home Premium
[URL]

View 1 Replies View Related

AutoCAD Inventor :: ILogic Create Assembly Constraints

Dec 30, 2013

Im after programmatically mating 2 components together in an assembly. My stages are as follows:

1)Create New Assembly

2)Add .ipt's

3) One-by-one, mate all the parts together (each part has a plane named "WPStart" and "WPEnd". In each part im after the WPStart being flush mated with the WPEnd of the 2nd part - see image attached. In addition I would like to mate al the XZ planes in each of the parts fluch together and likewize the YZ planes.

3) Mate the parts together

Dim FlushConst As FlushConstraint

FlushConst.AffectedOccurrenceOne = oAssyDoc.ComponentDefinition.Occurrence.Item(1).Workplanes.ItemByName("WPStart") <--------

FlushConst.AffectedOccurrenceTwo = oAssyDoc.ComponentDefinition.Occurrence.Item(2).Workplanes.ItemByName("WPEnd")  <--------

View 2 Replies View Related

AutoCAD Inventor :: How To Export IProperties To TXT ILogic

Nov 11, 2013

I would like to copy and paste all iproperties from one part to another, without retyping it all.

What i was thinking about is:

1. Exporting all iproperties to .txt

2. Run a import .txt rule to iproperties.

Is it possible? If so, How could i accomplish a task such as this?

Privacy warning: Since I live in a country that has traded liberty for the illusion of security, all of your posts to me are being monitored and saved by the United States Government.

View 1 Replies View Related

AutoCAD Inventor :: ILogic Set Description In IProperties

Oct 18, 2013

I am sure this is extremely simple to do but I am missing something. I am wanting to set the Description of a part in the Iproperties using values from the parameters. For instance, if the part has a length value of 10 and a width value of 5 I want the Description to say: 10 x 5 Floor Sheet

I cannot figure out how to extract the parameter values and place them into the iproperties. Here is what I have tried: iProperties.Value("Project", "Description")=" =<Length> x <Width> Floor Sheet"... This gives me the following result in my description:  x  Floor Sheet

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved