AutoCAD Inventor :: Change Active Drawing Standard With ILogic

Sep 2, 2011

I am trying to have one drawing with B size and E size sheets I am trying to get the border, title block and standard to change when the sheet format changes. I can get it to work when I run the rule but have hard time find information to just change when sheet format changes. And I can't find anything or I should say a sample of how to. I think I found the code just don't know how to make it work. Here is what I  have so far.

SubMain()

IfActiveSheet.Size="E"Then
ActiveSheet.TitleBlock="G&T (E)"
ActiveSheet.Border="G&T Border (E)"
EndIf
IfActiveSheet.Size="B"Then
[code].......

View 9 Replies


ADVERTISEMENT

AutoCAD Inventor :: ILogic Rule - Change Linear Units In Active Standard

Jul 16, 2013

Within an IDW file, you can go to the Styles Editor, then click on a standard.  On the General tab, there's a drop down for the unit of length.

Provide the code so that I can change this setting from Inches to mm with an iLogic rule?

View 2 Replies View Related

AutoCAD Inventor :: Changing Drawing Active Standard

Dec 16, 2008

I'm new to the style library and how to take an existing drawing that was created on one standard, and changing it to another standard I just created. The new standard has different dimension styles, text, and layers. I've added all the styles to my style library and I've set the new standard to the active standard in both the styles and standards editor and the document settings. If I create a new view, it comes in on the new standard, but the existing views are still on the old. How to I get the existing views on the new standard?

View 2 Replies View Related

AutoCAD Inventor :: Change DimStyle To Active Standard?

Jun 20, 2012

Changes all dimensions, balloons, ect (define more if you want) to current object default in active standard.

Sub ChangeDimStyle()'J.Kriek 2012 Dim oApp As Application Dim oIdw As DrawingDocument Dim oDim As DrawingDimension Dim oBalloon As Balloon Dim oDimStyle As DrawingStandardStyle Dim oSheet As Sheet Set oApp = ThisApplication

[Code]....

View 9 Replies View Related

AutoCAD Inventor :: Change Active IPart With ILogic Form

Jul 29, 2013

I have an Ipart I would like to have a Ilogic form to change the active Ipart. I tried iPart.ChangeRow but I did something wrong and it doesn't work.

View 2 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 :: Object Defaults Based On Active Standard?

Jan 20, 2012

On a daily basis I work with two different types of drawings; machining and fabrication.  The machine shop prefers dimensions in decimal inches, and the fab shop only understands fractional inches.  Is there any way to set up the styles/standards/templates to allow me to pick out which type of drawing I am creating and have Inventor use the correct object defaults for the dimensions?

View 4 Replies View Related

AutoCAD Inventor :: Change PL Header On Drawing Via ILogic

Apr 10, 2013

I want to be able to change the header on a PL in a drawing using iLogic.

I'm able to "find" the PL(s) on a drawing but can't seem to figure out how to access the header property My goal to to change the header to show the P/N of the assembly/part it's created from.

My Current code is below:

doc=ThisDrawing.Document
oBOMs=doc.DrawingBOMs

For Each oBOM In oBOMs
MessageBox.Show("Found a PL", "Title")
Next oBom

In between the for/next loop is where I want to access the current BOM and change it's header depending on the related .iam/.ipt.

View 2 Replies View Related

AutoCAD Inventor :: Ilogic To Change Drawing Document Settings?

Jun 3, 2013

Im looking to make a simple ilogic rule that can toggle an option in the document settings, the setting I would like to change is the Document settings> Modeling> Participate in assembly and drawing sections

I would like a form to switch the option on and off quickly, its a really usefull function however I know a few of my colleagues wont use if they cant find it easly.

View 1 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 Automatic Change Of Drawing Title Block?

Nov 13, 2013

I am currently working with fx parameters and iLogic to drive a model and it's corresponding drawing to change based on a single user parameter.

I have managed to get the drawing to update both the scale of the views I need and the size of the sheet with the change in parameter using the following rule:
 
IfParameter("EB75551.ipt.Rise")<1801Then
ActiveSheet.ChangeSize("A1", MoveBorderItems :=True)
ElseIfParameter("EB75551.ipt.Rise")>1800Then
ActiveSheet.ChangeSize("A2", MoveBorderItems :=True)
EndIf

However when i attempt to use this with the title block using the function:

ActiveSheet.TitleBlock="My Title Block"
in place of the sheet change size it brings up the error message:

Error in rule: Drawing Title Block, in document: Drawing

The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

I have read elsewhere that this is due to me having prompted entries for the scale and drawn by fields, however when i use the function designed for prompted entries: ActiveSheet.SetTitleBlock("Other Title Block", "promptedEntry1", "promptedEntry2")
It fills in the prompted entry fields from the code and if i change these entries in the "edit field" option they are overwritten when it is updated.

Is there a way have the prompted entries when you open the drawing fill in the "promptedEntry1" field in the rule so that I can use the rule? Or am I going about it the wrong way?

I should point out i'm new to iLogic and no-one in my workplace can use it so each person changing the "promptedEntry1" field to the scale they wish isn't a wise move.

View 2 Replies View Related

AutoCAD Inventor :: Change Drawing Dimension Text And Symbols Font With ILogic

Nov 2, 2012

I was looking to change the fonts in a drawing for the Dimensions and Symbols that might have been inserted in the Dimension text entries.

This can be done manually bu editing the dimentions text after placemement, but I was ooking to set this as a default.. I cannot see where exactly this is controlled in the Styles Manager - I am only able to change the Dimension text font but the diameter symbol font is always on AIGDT.

I was therefore looking for an iLogicvb code that could do the trick, but I am not able to even change the dimension fonts... The code runs with no errors but nothing gets updated in the drawing...

Dim oDoc As DrawingDocument
oDoc = ThisApplication.ActiveDocument
Dim oSheet As Sheet
oSheet = oDoc.ActiveSheet

[Code]....

InventorVb.DocumentUpdate()

View 3 Replies View Related

AutoCAD Inventor :: 2012 - ILogic Code To Change Drawing Layer Color

Aug 27, 2011

How to change the color of layer that will be used within a drawing files for special purposes.

Ideally the code will make the color Red, but change to Black prior to printing.

The "logic" behind the code currently is to differentiate a layer called "Burn" to a highly visible color for the purpose of review by others then, prior to printing, change the color to Black.  The firm I'm currently working for uses gray-scale B sided printers only.  The firm currently uses Blue for dimension and extension lines so to produce drawings that portray both type of objects "lightly".

View 2 Replies View Related

AutoCAD Inventor :: ILogic - Error Closing Active Documents

Jul 4, 2012

I am using iLOgic on Inv 2012 to try and close the active document using the following piece of code - 

InventorVb.Application.activedocument.Close (True)

This close the document but brings up the following Error msg...

Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

Any better piece of code that shuts down the active document but doesn't return the error? (I only want to shut down one document, not the application)

View 3 Replies View Related

AutoCAD Inventor :: Creating Ilogic Assembly With Standard Components?

Oct 6, 2013

Long time Autocad user but now am moving most of my work across to Autodesk Inventor.

Some of the work I do is with companies that their parts are standard components that will not change.

So I am using Inventor to automate the drawings based on their requirements. For example if it needs to be 4m high. then to use 2 x 2m sections. Currently I have create different assemblies of the different potential heights that I can switch between using ilogic but I need to be able to shift the top truss arch depending on how high the truss is.

View 1 Replies View Related

AutoCAD Inventor :: Convert Standard IPart To ILogic Based Part

Nov 4, 2011

I am trying to convert a standard iPart to an iLogic based part.  The part has some text driven, cells..PatNumber, Description..ect..But when I try to referance those cells the iLogic code either does nothing or errors out. 

Basicly i have a bunch of flange rings with have several variables theat need to change as the part number changes, sounds simple right?I have rewritten the code so many times...I have gone from hunt and pecking to typing 300 words a min...well maybe not. 

About 75-80% of all our parts are identical in shape but just get smaller or larger depending on what size portable auger it goes on.I have been trying to get the part to changed based on "PartNumber" but it has text in the value.

View 7 Replies View Related

AutoCAD Inventor :: Update Table In Drawing - IPart Active Row

Feb 27, 2013

I have two tables on a drawing one showing a parts list the other changes to dimensions.

The table to show the dimension changes is a configuration table pointing to an ipart.

iLogic is used to update the ipart but you have to right click to update the Active Member in the ipart to see the drawing update.

Is there a way to automate the 'update active member'? (on the ipart table - this does update the drawing)

I just have the one row in the table, it's purpose was to pass the values onto the drawing (as the part resizes I didn't want the dimensions moving so opted to tabulate them) - hoping they would update!

or

Is there a way to have a table update parametrically i.e. I've tried .csv as a source to the table but can't force an update. This way I could scrap the ipart & just import the values to a table.

The table also includes some txt comments which change with the ipart properties.

View 1 Replies View Related

AutoCAD Inventor :: Drawing Standard Screw

Nov 22, 2011

I'm trying to draw standard flat head socket cap screw size 1/4-20 with 5/8 length. I've tried to draw it with the exact dimensions (converted inches to mm) but the head doesn't turn up correctly.

I've done metric screws with dimensions from that site (mcmaster-carr) and they turned out just right.URL....

View 7 Replies View Related

AutoCAD Inventor :: Partlist - Can Change Standard Field

Jul 31, 2013

I've made a partlist with these columns:

Item, qty, stock number, part number, description, standard.

stock number, part number and description can me changed in iproperties of the ipt file.

But where can i change standard?

View 1 Replies View Related

AutoCAD Inventor :: Change Setup To Use Standard Assembly?

Mar 21, 2013

When we use the Productivity/Add Assembly functionality, it produce a Weldment Assembly instead of a Standard Assembly.

How do we change the setup to use a Standard Assembly?

View 1 Replies View Related

AutoCAD Inventor :: VBA / Change Materials For Standard Parts

Mar 13, 2003

I couldn't found a way to change the materials of the standard parts in Inventor, so i made a (quick and dirty) VBA program so i can change the material and color of the publiced (and used in projects) parts.

View 1 Replies View Related

AutoCAD Inventor :: Turn Off Active Factory Member Option When Placing A Drawing View?

Feb 20, 2013

I create a drawing of an iPart, while doing so I have the iPart model open in the background. When placing a view on the drawing the active factory member is the default option, I have a bad memory so forget to tell Inventor that actually I would like to use a specific iPart member in this particular drawing view. I then spend a long time laying out and dimensioning the drawing. When complete, I create a second sheet and copy all information from sheet 1 onto sheet 2. I then double click on the main drawing view and change the model state to an alternative factory member. At this point I realise that the drawing on sheet one is based on the active factory member and start swearing.

The result of changing to a different member when the existing drawing is based on the active member is that ALL DIMENSIONS DISSAPEAR FROM THE DRAWING AND HAVE TO BE PAINSTAKINGLY REPLACED. At this point I will usually REDRAW SHEET 1 so that further sheets can be created quickly in the future by selecting an alternative factory member.

can I change the software defaults somewhere in the setup to prevent the 'active factory member' being displayed as an option in the first place?

View 6 Replies View Related

AutoCAD Inventor :: Drawing Standard Geometry With Multiple Dimension Values?

Jan 27, 2012

I am currently endeavoring to translate some (very) old print drawings of standard geometry used by my company to electronic format with Inventor. Many of these standards include a matrix of certain dimensions (noted by a letter variable on the drawing, such as "A") and what their values should be, given the required size of the geometry's main feature, like the cross section of an o-ring that is supposed to go with it. Is it possible to build such variable/multiple value dimensions in Inventor and have a corresponding matrix printed on the drawing with it?

View 1 Replies View Related

AutoCAD Inventor :: Standard Revision Table Location In Drawing Template?

Jun 26, 2012

Inventor 2013-

Is there a way to pin or standardize where a revision table is located in a drawing?

I have a title-block set up and would like a revision table either embedded or populated upon command, just above my title-block. It would also need to extend upward with additional revisions...

View 4 Replies View Related

AutoCAD Inventor :: Standard Drawing Symbols - Main Rev Balloons / Triangles

Jul 5, 2012

The company I am working for has dragged their CAD kicking and screaming into the late nineties and have upgraded to 3D! Recreate their drawings using 3D models, I have noticed the symbol gallery doesn't provide such things as Rev Balloons or Rev Triangles.

View 1 Replies View Related

AutoCad :: How To Change From 3D Modeling Workspace To Standard 2D Drawing Workspace

May 1, 2011

I am trying to go from the 3D Modeling workspace to the 2D workspace without the XYZ coordinate gizmo on the drawing screen (just want to see the XY ucs) to work in 2D format.

View 1 Replies View Related

AutoCAD Inventor :: ILogic Trigger In Drawing

Sep 18, 2013

I have a few assemblies setup that are controlled with a bunch of iLogic rules to modify all related parts when parameters are changed at the assembly level.  I also have an opening message that pops up when the assembly model is opened (After Open Document trigger) to tell people how to use the parameters to make modifications.

Now, when this assembly model is placed into a drawing I am getting random pop ups of the opening message when placing views of additional models in the same drawing.  If you open the drawing and try to place a base view of another model, Inventor stops to think for a minute or so before having the opening message of the iLogic controlled model pop up.  The only event trigger for this message is "After Open Document" and the model is not being opened; why it is being triggered in the drawing and/or how to make it stop?

View 4 Replies View Related

AutoCAD Inventor :: ILogic Save Drawing As DWG

Apr 24, 2012

Is there a way in an inventor drawing rule to do a "save as" which saves the drawing as an Inventor dwg file rather than an AutoCAD dwg file?

The below saves as AutoCAD which is ok but I need the outputted drawing to be linked to the model. I don't want the code to save the entire assembly as this is done further down the line. I also don't want to save the current inventor dwg drawing from which the rule is run as this is just a template drawing.
 
ThisDoc.Document.SaveAs(ThisDoc.Path&"2D_DRAWINGS"&iProperties.Value("Custom", "Drawing No.")&" (Rev "&Parameter("BEAUFORT_ARRANGEMENT_3.iam.DRAWING_REVISION_NO")&")"&".DWG", True)

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 :: Add Block To Drawing With ILogic?

Jul 4, 2012

I recently start to use ilogic in inventor and discover this powerfull tool for all the daily task to be done...

I would like to add an autocad block in a drawing with some ilogic coding. Through this forum i found how to insert a sketched symbol but no how to insert a block.  And convert my block into a sketch would be quite difficult...

where could i found a list of all the ilogic command??

Autodesk Product Design Suite Ultimate 2013
Win 7 Pro 64 bits SP1
Bi-Xeon E5520 (2x Quad-core @2.27GHz)
Quadro Fx 1800 768Mo GDDR3
6Go Ram DDR3 667MHz ECC

View 1 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







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