AutoCAD Inventor :: ILogic To Change Sheet Name

Oct 31, 2013

I've seen snipppets of code to get the Sheet name but is there a way to set it via code? I'm thinking it might be useful to set the sheet names to the chosen sheet format (as opposed to just 'Sheet').

I'm sprucing up my drawing template...

Rule #1 is for selecting sheet format (which title block/sheet size / orientation)
Rule #2 is for setting iproperty values to populate the titleblock with info. (if required)
Rule #1 was based on code from S.Bixler & inventortrenches
Rule#2 was based on more code taken from here.

View 2 Replies


ADVERTISEMENT

AutoCAD Inventor :: ILogic - Reposition Revision Table On Sheet Size Change

Sep 24, 2012

a customer has a title block with a revision table ( standard vault revision table)  add on top of it.

If you change the sheet size the revision table remains his position.

If found the way to reposition the table with a ilogic rule.:

'point afstand in cm
PointX=(ActiveSheet.Width/10)-13
PointY=5.5
'punt vanaf rechtonder gemeten in cm

[Code]....

This is working perfectly. But now the challange how to trigger this rule to run if you change the sheet size?

if tried:

trigger=Activesheet.size

or

to create a userparameter and added this line in my rule : Size=ActiveSheet.size, normaly is you change parameters it triggers the rule to rule. but both way didn't work.

Can event triggers from the API be used?  Do i need the "Onchange" event? Any example for a ilogic rule?

View 3 Replies View Related

AutoCAD Inventor :: How To Change Drawing Sheet To New Custom Sheet Format

Sep 20, 2013

I have an older drawing with an outdated sheet format. I'm wanting to update to a new custom sheet format without having to redimension and recreate views. Is it possible to just update the sheet format?

View 1 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 :: Drawing Sheet ILogic

Apr 19, 2013

have 2 questions

1.) If you look at the attached screenshot in the Edit Sheet form there is a sheet "Revision" input field is it possible to fill this out via iLogic?

2.) We have some custom E size sheets (height always 34in width varies 5ft, 6ft, and 8ft) when we select on of these sheet sizes that we created  it will display "Custom Size (inch)" when using the sheet property <sheet size> in the title block not the name of that we gave these sheets (Which creatively enough is "E-5ft", "E-6ft", and "E-8ft"). I thought I had this solved by doing this:

Dim oSheetSize As String
oSheetSize = ActiveSheet.Size
If oSheetSize = "Custom" Then
iProperties.Value("Custom", "SheetSize") = "E"
Else iProperties.Value("Custom", "SheetSize") = oSheetSize
End If

then change the titleblock sheet size field from sheet property <sheet size> to custom drawing properties <SheetSize> this all works great if there is only 1 sheet in the IDW where it fails is if there is more then one sheet.

View 2 Replies View Related

AutoCAD Inventor :: Open Embedded XL Sheet With ILogic?

Nov 8, 2012

Is it possible to open an embedded XL sheet with iLogic ?

I tried "GoExcel.Open("3rd Party:Embedding 2", "ENTREE DES DONNEES"), but nothing happen...

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 :: Sheet Metal Controlled Through ILogic

Mar 4, 2013

Any way or a code to physically change the sheet metal defaults using iLogic code, I want to change parts in my assembly without opening each individual part and changing it there. Inventor 2014, Windows 7, 64 bit.

View 8 Replies View Related

AutoCAD Inventor :: Custom Sheet Size Using ILogic

Jan 15, 2013

I made a form that allows the user to enter in a custom sheet size.  Using the API I am changing the Drawing Sheet Size Enumerator to the Custom Sheet size which allows the user to enter in custom values.  That part is all working fine.  My problem is that when a custom size is used in my title block it says that the size is "Custom Size (mm)".  I know that the API uses cm for the sheet size units so I have the code convert the values into cm. 

In the sheet settings window built into inventor it has the option for Custom Size (inches) and Custom Size (mm).  How do I change whether it is inches or mm?

View 5 Replies View Related

AutoCAD Inventor :: ILogic Access To Drawing Sheet Revision

Sep 27, 2012

how to access the drawing sheet revisions using Ilogic.My company is wanting to start making the default initial rev on a drawing a "-" and inventor does not like to keep this when brought in as a template.

So like normal I am trying to trick it into having the dash until a rev is actually added. 

View 1 Replies View Related

AutoCAD Inventor :: Reference Drawing Sheet Number With ILogic?

Dec 11, 2012

How to reference the drawign sheet number using iLogic?  I see on the snippets on the side a way to reference the sheet name, but I only want the number.  To get the name it is ActiveSheet.Name, but ActiveSheet.Number does not work.  Getting the name give something like ASSM:1, so if there was a way to take that and subtract the colon and everything before it that would work also.  I am not a programmer, I've just taked some programs I found online and modified them a little to do what I want to do, but this is holding me back a bit.

Overall, I'm trying to modify the drawing view label to have a project number, referenced from the drawign iProperties, a view label, and sheet number, and then save that info in an iproperty of the part, and then reference that in the BOM so it automatically labels all of the views and fills out a column of the BOM to reference which page and view to find the parts of the assembly.  I have everything working except for the sheet number.

View 5 Replies View Related

AutoCAD Inventor :: Imports Sheet Metal Rule From ILogic?

Oct 3, 2013

Is this possible in ilogits? Imports sheet metall rule from ilogic

View 1 Replies View Related

AutoCAD Inventor :: ILogic - Automatic Print With Right Sheet Size

Nov 6, 2012

Dont have a before print Event Triggers . I want to make a rule with automatic print with a right sheet size, but in all my try don't work

that is my last one

'Dim oDraw As Document
oDraw = ThisApplication.ActiveDocument
oDrawDoc = ThisApplication.ActiveDocument
oDrgPrintMgr = oDrawDoc.PrintManager
[code]........

View 9 Replies View Related

AutoCAD Inventor :: Import Sheet Metal Style In ILogic

Sep 11, 2013

importing a sheet metal style (STYLENAME.styxml) into a sheet metal part. 

I would like to automatically import the style using an iLogic script.

View 4 Replies View Related

AutoCAD Inventor :: ILogic Rule For Modeling / Sheet Metal State?

Oct 6, 2011

What is the iLogic rule for identifying if a part is in a "modeling" state or "sheet metal" state?

View 5 Replies View Related

AutoCAD Inventor :: Sheet Metal Defaults (Use Thickness From Rule) - ILogic

Sep 9, 2013

know a rule to check if this dialog box sheet metal defaults "Use Thickness from Rule" is checked, and checked a rule to automatically clear since using a rule amending the plate thickness but if the box is checked catastrophic error occurs, and unchecking the rule works as expected.

View 2 Replies View Related

AutoCAD Inventor :: Ilogic - Sheet Metal Part Auto Update

Oct 18, 2013

i made a sheet metal part.ipt but that file is not updating immediately, i have added

iLogicVb.UpdateWhenDone = True
InventorVb.DocumentUpdate()

also tick marked in parameters for IMMEDIATe update

View 3 Replies View Related

AutoCAD Inventor :: ILogic Rule To Insert Sheet Metal Thickness

May 1, 2013

In my title block I have a material section that pulls to iProperties from the model

One is material, which displays the material used in the model

and the other is manually input by me in the comments section of the model, I typically only use this field for sheet metal description, example, .125 Sheet Metal,  this saves me from a drawing view to show thickness only.

In my sheet metal template I have checked the little box for the thickness model parameter so it will show up as a custom property - model.

So i can display the thickness parameter anytime the sheet metal base view is placed.

My issue is I want the thickness property to have the following with it "Sheet Metal"

But I only want this to appear if the base view is in fact sheet metal, all other parts and assemblies, this field would be blank,

So this is what I want when a sheet metal part is placed:

This is what I want to display when a part is placed:

This is what I get when anything is placed:

Sheet Metal shows up because:

I am looking for a Rule that will only apply <Thickness> Sheet Metal to my title block only if the base view is in fact a sheet metal part. Is this possible??

Inventor Professional 2014-Update 2 - AutoCAD Electrical 2014
Win7-x64 | ASUS P8Z77-V | i7 3770 -3.4 GHz | 32GB RAM |
240GB SSD | nVidia GTX 670 4GB - 320.49

View 9 Replies View Related

AutoCAD Inventor :: Change Drawing Scale With ILogic Upon Parameter Change

Jul 8, 2013

I have a spreadsheet and iLogic driven mater assy to generate different iterations.

I would like to change the scale of a base view on a drawing based on a parameter in my assembly. The idea is to get iLogic to change the view using a simple If / Else statement.

This is what I tried:

If Parameter("0 Generic Assembly v2.2.iam.BP") < 1570 Then
ActiveSheet.View("VIEW1").Scale = 1/8
Else
ActiveSheet.View("VIEW1").Scale = 1/10
EndIf

So basically the value of "BP" parameter (excel parameter in my assy) would drive the scale of the views. But its not working. Is it actually a sensible method? Can I use in the drawing environment the excel parameters in my assembly?

This is the error message I get when the rule is run:

"Error in rule: View Scale, in document: 0 Generic Assembly v2.2.idw

Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))" 

Also using the same thinking I use iLogic to populate the drg number field on the drawing based on an excel parameter. The rule works but does not always updates the drawing no upon the parameter change or update/rebuild commands.

View 1 Replies View Related

AutoCAD Inventor :: ILogic Error (changing Sheet Border And Title Blocks)

Jun 18, 2012

I'm having an error with Ilogic parameters.I just wanna change the border and the title blocks with Ilogic. This should be simple. Isn't this?

View 2 Replies View Related

AutoCAD Inventor :: Sheet Metal ILogic Rule Not Executing On Non-rectangular Base Sketch?

Aug 5, 2013

I have a template that I have created, in it I have a rule that changes the stock number and description based on which sheet metal rule is selected.   The weird thing is it works correctly if the first sketch is a rectangle.  If you sketch a circular shape and make that the face it will not work.  It blanks out the values for the stock number and description.  

I'm running Inventor 2014 update 2.

Format:HTML Format Version:1.0 StartHTML:     165 EndHTML:   33212 StartFragment:     314 EndFragment:   33180 StartSelection:     314 EndSelection:     314
SyntaxEditor Code Snippet
DimiPropValAsString=""
DimiPropDesAsString=""
SelectCaseSheetMetal.GetActiveStyle()

[code]...

View 1 Replies View Related

AutoCAD Inventor :: Using ILogic To Change Parameter

Mar 26, 2013

When I import a part from content center, a tube in this case, I get a length parameter called <PL>.

I am using this parameter in the parts lists, so it shows "=Outer diameter x thickness x <PL>"

However I don't want trailing zeros, leading zeros or units string to be shown.

I know I can open the parameters window, right click the parameter, then click custom property format and then uncheck these boxes and its fine.

But I want to know if there is a smarter way to do this, like creating a rule to execute on all the parts?

I have around 500 pipes with the parameter <PL> that needs to be changed.

View 6 Replies View Related

AutoCAD Inventor :: Change Row Of IAssembly Using ILogic

Nov 11, 2013

Issue between an i-assembly and i-Logic. So, I have an assembly that includes some extra components that are not always needed and therefore an i-Logic rule takes the decision whether these will be suppressed or not.

Of course this is not a problem however it turns out that I miss some info from BOM according to the suppressed parts   ...and all these makes sense following the LOD etc.

A potential solution to keep up to date the BOM while you are excluding the needless components is to create 
an i-Assembly.

To keep that simple I turned my current Assembly to an i-Assembly and very successfully I excluded various components and of course I included some others by adding extra ROWS. 

So far So good

Now I want to apply some dimensional boundaries by using i-Logic rules. According to them I want to allow this i-assembly to jump among these different ROWS that meet the right criteria.

Very rough thoughts led me to the following code...

For example...

If Width > 600 Then
iPart.ChangeROW ("..." , "...") 'Row-1'
Else
iPart.ChangeROW ("..." , "...") 'Row-2'
End if

The Problem is that the above code works fine, for a example, in case that I will place an i-part in my assembly... However I am looking to change the row of the actual assembly that as I mentioned before I turned it to an i-assembly

To make this even more clear I want to be able to manipulate my i-assembly with i-Logic rules while this is open in Inv. I don't want to change rows while this is placed as a component or sub-assembly in an another assembly...

View 1 Replies View Related

AutoCAD Inventor :: Change BOM Structure With ILogic?

Jan 8, 2014

I'm using rules to control a part that I made. This part is available in steel and wood. 

But steel = normal and wood is something we have to buy.

I would like to adjust my rule so that my material choice will effect the "Default BOM Structure"

I just can't find the right "code" to start with.

View 8 Replies View Related

AutoCAD Inventor :: Color Change With ILogic?

Jun 27, 2012

I am using Inventor 2012:  I have a table with different part numbers. I want to create an iLogic rule to change the color of second solid body in my part for a specific part number.

This is what I did.

If iProperties.Value("Project", "Part Number") = "F22111796" Then
 Feature.Color("plastic")= "Gray"
ElseIf iProperties.Value("Project", "Part Number") = "F22111796V" Then
 Feature.Color("plastic")= "Gray (Dark)"
ElseIf iProperties.Value("Project", "Part Number") = "F22111796N" Then
 Feature.Color("plastic")= "Gray (Light)"
Else
 Feature.Color("plastic")="Gray"
End If

However it does not change the color of the second solid body when I make the part number active.

View 1 Replies View Related

AutoCAD Inventor :: Using ILogic To Change An IPart Row?

Oct 25, 2012

I have a sheet metal part that I converted into an iPart and I set up different rows with different sheet metal styles. What I want to do is run an iLogic code to change to a specific row which in turn would change the actual material of that sheet metal part....I've tried the snippet iPart.ChangeRow but cannot get it to run the code. I'm not sure if I'm not doing something right or what...

Inventor 2014, Windows 7, 64 bit

View 9 Replies View Related

AutoCAD Inventor :: Change Hole Type With ILogic

May 21, 2013

I would like to know if it is possible to use iLogic to change the Hole Type from Through to Tapped as conditions dictate.  Is this even possible?  I already have a backup plan but wanted to check out all possibilites before I proceed.  Using Inventor 2012 SP2.

View 1 Replies View Related

AutoCAD Inventor :: Change Part By ILogic In Assembly?

Jul 25, 2012

Before using iLogic, I created lot of iAssembly and iPart. I could change iPart factory member when I need in iAssembly.Now, I want to move everything to iLogic.

how could I change the part by iLogic code?

For example:

I generated "Part1.ipt" and "Part2.ipt",...... (I have hundred of member)

In my assembly, sometimes, I need use Part1.ipt, sometimes I need use Part2.ipt.

Which is the iLogic Code I should to use?

Inventor 2009, WIN XP.
Autodesk Inventor Professional 2013 (64 Bit) SP2
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory

View 9 Replies View Related

AutoCAD Inventor :: Change LOD In Derived Part Through ILogic

Jan 27, 2013

I got this code earlier from Curtis_Waguespack, and i would like to add a setting... When i run this rule it Derives the assembly, but LOD is set to Master, i would like it to be set to my own (Configurator) LOD...

I don't seem to be able to find anything in this code, that defines LOD... 

So far im doing ok with the standard ilogic code, but when it´s API or VBA code im lost..  which leads me to this.. i've been searching the forum back and forth to find a code that performs the feature "Shrinkwrap", and somehow everything i have found so far does not work... even the code example in Inventors help menu under programming, Therefore im trying to solve this with Curtis's code as staring point.. 

'set a reference to the assembly component definintion.'this assumes an assembly document is open.Dim oAsmCompDef As AssemblyComponentDefinitionoAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition 'define the path and file nameDim sPathandName As StringsPathandName = ThisDoc.PathAndFileName(False)

[Code] .......

View 9 Replies View Related

AutoCAD Inventor :: Using ILogic To Change Model Tolerance

Jul 8, 2013

I need to change one dimension using iLogic.  It changes due to the path taken to manufacture the part.  In a nutshell majority of the time the "OD" has a +.004 / .000 tolerance and the model is drawn at the minimum size.  There are cases when the "OD" has a  +.005/-.005 tolerance and is modeled at the nominal size.   I've learned some of the iLogic to make the change I'm after but not all.  I'm having trouble setting ModelValueType to change the model size.

See the code below, for setting +/-.005" 

IV2012

View 2 Replies View Related

AutoCAD Inventor :: ILogic Material Change Failure?

May 23, 2012

The attached part has some bad work features on it, but I don't care about that (easy fix). It also contains a rule that simply changes the material from "P AND O" (pickles & oiled) to "201 S/S", for some reason the faulty work geometery causes this rule to throw an "unspecified error". If you delete the bad work geometry the rule runs fine.

View 2 Replies View Related







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