AutoCAD Inventor :: How To Access Color For Particular Hatch Within Drawing Using ILogic

Jul 15, 2013

How to access the color for a particular hatch within a drawing using iLogic.

I would like to color the hatching for parts based on paramaters besides material.

ie.

Purchased parts = Green Hatch

Refrence = Grey Hatch

I would hope one could loop through the views looking for hatches, and once found, check the part they are associated with, then based on an "if then, change the hatch color and move on to the next pattern.

View 4 Replies


ADVERTISEMENT

AutoCAD Inventor :: ILogic Access Hatch Object And Modify Color?

Jul 15, 2013

How do I get at the hatch objects within a drawing using iLogic?

I would like to be able to customize hatch color based on various part properties.

ie: 

Purchased part = Green Hatch
Refrence = Light Grey
and much more

This would be possible if I can get to the hatch object and determin what part it is associated with.

I only see iLogic code that allows you to change visibility of all hatching, and set general hatch angle.

Since I can select a hatch in the drawing and change its color, I assume there is an un-published API object that relates to hatches

View 3 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 :: 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 :: Access Assembly Features Through ILogic

Nov 19, 2012

I'm now having an issue accessing the features in an assembly, the error message is attached and the following is the relative code.

The error line is between the 2 Test Messages:

'Create a Component Definition relative to the Part Document

Dim oFeature As Features
Dim oAssembly As AssemblyDocument
oAssembly = oCompOcc.Definition.Document
MsgBox("Test 1")

'Cycle through all features in the Part
For Each oFeature In oAssembly.ComponentDefinition.Features
MsgBox("Test 2")

View 3 Replies View Related

AutoCAD Inventor :: ILogic Access To Filename IProperty

Oct 13, 2011

I am trying to use the iProperties.Value("part1", "Summary", "iProperty") function to get the filename or complete filepath of a component within a subassembly. I know that these iProperties exist because I can insert them onto a drawing, and I see them in the general tab of the iProperty window.

However, when I try something like:

filename = iProperties.Value("part1", "General", "Filename")

I get an error message indicating that the General tab can't be found. How might I go about getting this filename iProperty, or is there an easier way?

View 4 Replies View Related

AutoCAD Inventor :: Access Application Options Through ILogic?

Feb 10, 2012

I am new to iLogic and trying to access the "Application Options" under the "Tools" tab. I am trying to grab some information from a couple of fields but it seems that I don't have the right coding or Snippets that indicate how I would do so.

View 3 Replies View Related

AutoCAD Inventor :: Getting Data From Access Database Using ILogic

Aug 2, 2010

I have a program that populates an access database with part parameters. Each Inventor part can look up its own parameter values from the database when supplied with a single parameter, the ID number of the database record. The ID number is derived from a blank part that the program also updates. So in a nut shell, the program populates the blank part's parameters with all database ID numbers that would make up entire assembly. Those parameter values are derived to all the parts in an assembly. This is by far the fastest most efficient way I've found to rapidly generate an entire assembly. In a matter of seconds I can have a new 1000+ part assembly.

 The rumor that Inventor will eventually sever ties with VBA has put this whole process in jeopardy. So I have been looking into using iLogic to perform the same task of looking up the data from Access. I know that iLogic has Excel functions built into it, but because the original program is Access based (changes this is not an option) any way to use iLogic to retrieve data from Access.

View 4 Replies View Related

AutoCAD Inventor :: Can ILogic Access The Comment Field Of The Model Parameters

Aug 23, 2011

I would like to be able to use iLogic to get the value of the Comment field of a model's parameters.  I have some text there that I would like to display in a sketched symbol. The attached image illustrates what I am seeking.

View 2 Replies View Related

AutoCAD Inventor :: Read / Retrieve Information From MS Access Database Using ILogic

Nov 9, 2012

I am currently trying to retrieve data from a MS Access Database, we currently have iProperties with number values in them. An outside programmer created a code which takes these values and exports them to an MS Access Database, where they are then translated to mean something.

Instead of exporting those numbers, I want to use them to find what they ACTUALLY mean within the database and bring that information back into iLogic. (ie. 123456 actually means "1/4 Flat Bar Steel")

In short, I wish to access the MS Access database through iLogic in order to read information from it. 

I have searched for the better part of 3 hours but have not found a good answer or example code of this situation. I am not that experienced in programming, but have worked with the API before for developing Automated Drawings and have an understanding how to navigate through. If there were to be some example code, I can begin to understand the process quite well through this method as well by seeing how to go about coding this.

View 2 Replies View Related

AutoCAD Inventor :: ILogic Snippet - Change Hatch Pattern In Section Of Specific Material In IDW

Dec 13, 2012

I am completely new to ilogic but would like to make a rule in my idw file that change the hatch pattern in a section of a specific material.

Short Version:

I have an aluminum extrusion part. Material is set to Aluminum-6061. In any section view of this part I want the hatch to be ANSI 31 with a rotation of 45 degrees and a scale of .02 How do I do this?

View 1 Replies View Related

AutoCAD Inventor :: Cannot Delete Hatch In A Drawing

Oct 30, 2013

I made a sketch attached to a drawing view, in it made a hatch. I closed the sketch and the file.

Opened again, after days, activated the sketch, selected the hatch, it turned red, pressed delete but it didn't disappear. Also on the right click there is no delete option.

When i select the hatch and it turns red, when i press delete or right  click it turns green.

It is strange that when the sketch is closed and i select it in the browser i see the other lines of the sketch in red, but not the hatch.

View 3 Replies View Related

AutoCAD Inventor :: Delete Hatch / Copy Drawing From One Sheet To Other

Nov 13, 2013

Using ISO.idw template I created into a sheet a Sketch which contains a hatch. Now I want to delete that hatch and I don't find anywhere how to delete it.

The second problem is this: I want to create in multiple sheets the same drawing but with small differences. How to copy a drawing from a sheet to another sheet. I press right click on the first sheet and i press Copy but there's no Paste button.

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

AutoCAD Inventor :: ILogic On Drawing Add Revision Row

Sep 17, 2013

Is there a way to add a revision row with I-logic?

Inventor 2013

View 2 Replies View Related

AutoCAD .NET :: Access Hatch Angle And Origins

Sep 30, 2011

I'm a vb.net developer and i've a project to do for my job (my company is building laser machines). So i have to use autocad for drawing and, inside autocad, add a vb.net project to transfer all coordinates to a laser.

There's no problem for the most of object, but i've some difficulties with the hatch. I explain.

I can get the coordinates for hatching with the " . explose " (it gave me lines and after that, i can have all the points x and y)

But i need to "Rotate the hatch" (for making some sorts of holes in metal by example)

(Ex : Hatch angle start at 0 degrees, then 45, then 90, etc... etc...)

How can i rotate this hatch in vb.net ? (The hatch must not change on the autocad screen, so i use a clone for getting lines). I've find a method for getting the pattern angle (ex : MyHatch.patternAngle) but it returns me strange angle (like 0,00812 etc...)

And a other problem is that the origins of hatch angle seems based on 0,0 (so, when i change angle, it change from 0,0 and not the center of the Hatch)

View 2 Replies View Related

AutoCAD Inventor :: Rotate Drawing View Using ILogic

Jul 11, 2013

Is it possible to rotate a drawing view using iLogic?

View 2 Replies View Related

AutoCAD Inventor :: ILogic Drawing Views Scale

Apr 18, 2013

I'm trying to put together some iLogic code to either check all the drawing views within a drawing sheet are all the same scale, or make the views all the same scale. These drawing sheets consist of a number of individual parts (they aren't projected views from a single part). 

This is for welded assemblies.  We are required to generate a profile drawing sheet outlining each part that makes up the assembly. We send these out as dwg files for laser cutting so its important that the views are all the same scale.

View 7 Replies View Related

AutoCAD Inventor :: ILogic - Check-in Drawing Into Vault

Jan 8, 2014

I'm wondering if it is possible to check-in drawing into vault using i-logic?

If you check-in a drawing into our vault, it automaticly exports a .dwf to a storage server. We also have a simple button for making .pdf of the drawing to sent to the customer.

What i want to ensure is that the .dwf file and the .pdf file are the same. So when i press "make a .pdf" the rule will save my document, make a .pdf and (if possible) check it into vault. So from that point the .pdf for the client and the .dwf on the server are the same.

Inventor 2013

View 2 Replies View Related

AutoCAD Inventor :: How To Update Drawing Template With ILogic

Oct 8, 2013

I made iLogic for assembly and drawing, now i want to update drawing template parameters thru ilogic, as i already linked Fx(parameters) & iProperties to Template, but for updating template i need to close file and open again that file,

currently m using this method.

What is the solution for updating drawing template (like Model Description, Drawing no.).

View 3 Replies View Related

AutoCAD Inventor :: ILogic Repair Quotation On Drawing

Nov 27, 2012

I need to connect the ribs on the drawing. Here are some images to transactions automatically.

ILogic code must perform all operations possible, and impossible to ignore cases.

View 1 Replies View Related

AutoCAD Inventor :: ILogic To Overide A Dimension On Drawing

May 17, 2012

So my problem is that  I need to include a line on a part drawing that isn't related to the part itself. I need to be able to override the dimension of the line I sketched so that I can include it in my drawing and update the dimension without having to change anything else on the part.

Basically, I want an iLogic rule to overide a dimension, and I don't know how to do that.

View 1 Replies View Related

AutoCAD Inventor :: Can ILogic Apply To Other Parts In Drawing

May 4, 2012

If I draw a flat square, and then a flat circle next to it, can I do things using iLogic that will make the two seperate parts interact? such as say 'if the circle contacts the square, then make the square become a circle too' or something like that?

View 3 Replies View Related

AutoCAD Inventor :: ILogic - Drawing Feature Suppression

Jul 23, 2012

I am looking to use iLogic to create feature suppression in individual drawing views, i.e for simplicity, in view 1 part has a hole in view 2 part does not have a hole it has been suppressed

I am aware this can be done with iParts but im trying to avoid using iparts.

View 1 Replies View Related

AutoCAD Inventor :: ILogic - Reference All Curves On A Drawing?

Aug 6, 2013

Is there a way in iLogic to iterate through all curves on a drawing. We manually apply radii labels to each drawing view but would like to automate the process with iLogic. How could I reference and cycle through all the radii on my drawing view?

View 2 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 :: K-Factor Note On Drawing Using ILogic

Jun 7, 2012

Any way, using iLogic, to get the K-Factor from a flat pattern sheet metal view on an idw drawing and add it as a note.

I'd like a rule that would access the flat pattern on the drawing, get the K-Factor value and then create a note that says, for example, "K-Factor Value = 44".

I see in the iLogic Snippets there's a Get Active KFactor under the Sheet Metal section, but I don't know where to start.

View 2 Replies View Related







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