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


ADVERTISEMENT

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 :: ILogic Reference Parameters

Oct 9, 2013

I'm having some difficulties with iLogic and reference parameters.

I have made a tube with a weird shape and I want to measure the longest length. So I have to cut the tube in a certain angle in relation with the center to measure the length.

The problem is that this angle is really hard to calculate.

So I tried making a rule where I can make my angle shift x degree and then measure the longest length. If the measurement is larger the previous measurement the angle will shift x degree again until the measurement is smaller than the previous.

So I made my starting angle 0 degree, I know this is for a fact not the longest length. And then I tried this rule. (before making a While rule).

And I noticed that on screen the measurement changes. But the reference - parameter stays the same. So it gives me the measurement on the starting angle & after rotating it again gives me the starting angle.

How can I get the parameter to update itself in between?

Dim measurement_length As DoubleDim measurement_length2 As DoubleMessageBox.Show("Start angle ", "My iLogic Dialog", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1)angle_measurement_spec = 0RuleParametersOutput()InventorVb.DocumentUpdate()measurement_length = [code].....

View 1 Replies View Related

AutoCAD Inventor :: ILogic - Get Model Reference

Mar 8, 2013

I was wondering if there was a command that will get the file name of the model referenced in a drawing?

The reason I want to do this is because I have various programs to automate drawings, but I have to manually edit the code if i want to switch between using the code on assembly drawings and part drawings.

If i can get the model reference, I can then use a bit of extra programming to extract the extension. (i.e. .ipt or .iam)

Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit

View 5 Replies View Related

AutoCAD Inventor :: ILogic - Model / Reference Parameter

Apr 12, 2013

I wish I perform the following code with iLogic. Is it possible to change a model parameter to a reference parameter?
 
If My_Expression Then' My dimension "d0" is a Driven Dimension' or' My dimension "d0" is a Reference ParameterElse' My dimension "d0" is NOT a Driven Dimension' or' My dimension "d0" is a Model ParameterEnd If

View 9 Replies View Related

AutoCAD Inventor :: Replace Model Reference Using ILogic

Oct 4, 2011

how to replace model reference using iLogic in inventor 2012. Basically I have a drawing file whose model reference needs to change with part number(iProperties) .

I've been struggling to  perform replace model reference as there is no direct command given for it.

View 1 Replies View Related

AutoCAD Inventor :: ILogic Change Assembly To Reference

Oct 26, 2011

Is there a way to set an assemblies bill of material setting to reference through iLogic?

View 3 Replies View Related

AutoCAD Inventor :: ILogic To Set Pattern Components To Reference

Sep 17, 2012

I have a pattern of reference components, but the quantity of the pattern can change based on certain criteria.  When the quantity increases or decreases, I need each pattern element to have its BOM structure set to reference.

The problem is, even if the original pattern element is set to reference, each subsequent element comes in as normal.  This causes the BOM quantities for that component to be reported incorrectly in higher assemblies.

Is there some iLogic or VBA code that will automatically set each component in a pattern to BOM structure "Reference", even if the pattern quantity changes?

View 7 Replies View Related

AutoCAD Inventor :: ILogic - Set Pattern Parts To BOM Reference & Default

Oct 3, 2013

I made a flanged connection using I logic. Very simple Tube + Flange + Gasket + Blind flange + Bolting.Then I tried to write some ilogic rule to have Blind flange on / off when needed, hence the Gasket & Bolting also need to be off. Like in these images:

That works fine visually, but I also want the BOM to be set accordingly. For the Blind flange & Gasket my BOM is OK. But for my bolting the BOM is not OK. I tried to set the BOM structure the same way as the visibility but that failed. It only subtracted 1 bolt from my list (see code)

If Blindflange_status = 0 Then 'Bolting offComponent.InventorComponent("Bolting:1").BOMStructure = BOMStructureEnum.kReferenceBOMStructure 'Sets BOM Structure to Reference (Remove from BOM)Component.Visible("Bolting:1") = FalseElse 'Bolting onComponent.InventorComponent("Bolting:1").BOMStructure = BOMStructureEnum.kDefaultBOMStructure 'Sets BOM Structure to Reference (Remove from BOM)Component.Visible("Bolting:1") = TrueEnd If
 
Is there a way to set all parts within a pattern BOM structure? I made my bolting  by adding 1 bolt, 1 washer & 1 nut and then pattern them using feature pattern select.

Inventor 2013

View 1 Replies View Related

AutoCAD Inventor :: ILogic - Set Pattern Parts To BOM Reference And Default

Oct 3, 2013

I made a flanged connection using I logic. Very simple Tube + Flange + Gasket + Blind flange + Bolting.

Then I tried to write some ilogic rule to have Blind flange on / off when needed, hence the Gasket & Bolting also need to be off. Like in these images:

That works fine visually, but I also want the BOM to be set accordingly. For the Blind flange & Gasket my BOM is OK. But for my bolting the BOM is not OK.

I tried to set the BOM structure the same way as the visibility but that failed. It only subtracted 1 bolt from my list (see code)
 
If Blindflange_status = 0 Then 'Bolting offComponent.InventorComponent("Bolting:1").BOMStructure = BOMStructureEnum.kReferenceBOMStructure 'Sets BOM Structure to Reference (Remove from BOM)Component.Visible("Bolting:1") = FalseElse 'Bolting onComponent.InventorComponent("Bolting:1").BOMStructure = BOMStructureEnum.kDefaultBOMStructure 'Sets BOM Structure to Reference (Remove from BOM)Component.Visible("Bolting:1") = TrueEnd If
 
Is there a way to set all parts within a pattern BOM structure?

I made my bolting  by adding 1 bolt, 1 washer & 1 nut and then pattern them using feature pattern select. Inventor 2013

View 9 Replies View Related

AutoCAD Inventor :: ILogic - Add Reference Brackets To All Dimensions For A List Of Drawings

Apr 2, 2013

I already have a code below that will read a bunch of drawing filenames that will go into each drawing, save the drawing, (print the drawing but I have this disabled for now,) close it, then move onto the next one.

What I want to do is add reference brackets around every dimension on each drawing. I have managed to update part list styles before using ilogic but I am not sure if it is possible with dimensions.

question = MessageBox.Show("Are you sure you want to update multiple drawings? If so, make sure all drawings are checked out.", "Batch Drawing Update",MessageBoxButtons.YesNo,MessageBoxIcon.Question)

'set condition based on answer
If question = vbNo
Exit Sub
End If

[Code] ......

View 4 Replies View Related

AutoCAD Inventor :: Get Drawing Curves From Occurrence (C#)

Dec 26, 2012

In a drawing I'm looking for components that have a certain iProperty.  If they have the iProperty, I want to turn every occurrence of that item red.

I can get the occurrences fine, but I'm unable to properly get the drawing curves so I can turn them red.  I'm using code from this post on ModTheMachine: [URL]........

Here's my
 
private static void ProcessAssemblyColor(DrawingDocument aDoc, ComponentOccurrences occurrences){ foreach (ComponentOccurrence occ in occurrences) { if (occ.DefinitionDocumentType == DocumentTypeEnum.kPartDocumentObject) { TransientObjects transObjects = StandardAddInServer._mInventorApplication.TransientObjects; LayersEnumerator layers = aDoc.StylesManager.Layers; Layer colorLayer = layers[1]; colorLayer.Color = transObjects.CreateColor(255, 0, 0); //red [code]........

 I've seen some things say I need to use an out object to use DrawingCurves.  If that's true, I'm not sure what to put for the first variable.

object outObject;DrawingCurvesEnumerator drawingCurves = drawView.DrawingCurves[occ.CreateGeometryProxy(whatgoeshere?, out outObject)]; 

View 1 Replies View Related

AutoCAD Inventor :: Reference To Drawing Sheets?

Jun 21, 2012

We often have drawings with multiple sheets.Usually the first couple of sheets are devoted to identifying components and where they should be placed. The remaining sheets provide details on specific components (dimensions, tolerances, etc.).

It would be nice to be able to reference (associatively) other sheets, so it is easy to find information on a component when looking through the drawing package. For example, add a note that says "See sheet 12", and have the 12 update if that sheet (or drawing view?) changes location in the package.

View 2 Replies View Related

AutoCAD Civil 3D :: Reference Surface (x) Not Found In Reference Drawing

Jul 28, 2011

I am getting this error in my production drawings.

My setup is as follows:

- EG.dwg has my existing surface in it. I create a data reference to use it in other drawings.

- Level One.dwg has the EG surface data referenced in, and I use this to create alignments, profiles, and finish surface. All of these are turned in to data references.

- Storm Sanitary.dwg has my pipe designs. I data reference in the two surfaces, profiles, and alignments, and create pipe networks. I create references for these networks.

- Plan Profile.dwg is the production sheet I'm getting this error from. Every one of my civil objects is data referenced in to this drawing. Everything is inserted correctly, the pipes show correct FG surface elevations for their rims, etc.

BUT when I open this drawing, I get this error. I assume it's because my FG surface is not directly in the storm sanitary.dwg.

How do I get rid of this error, without combining drawings, or promoting the surface to one or more drawings? Isn't this exactly what data references is made for?

View 1 Replies View Related

AutoCAD Inventor :: Reference Part In Assembly Drawing?

Sep 24, 2012

I'm having trouble showing a reference part in an assembly drawing. When said part is set to "reference" it is no longer visible on the drawing.

View 9 Replies View Related

AutoCAD Inventor :: Change Part Reference In Drawing?

Feb 2, 2013

In solidworks, if I have several similar parts to draw, I can draw one part and annotate it and then to save time and effort I can save the drawing as one of the other parts and then change the part reference in the drawing as I open it up.

View 7 Replies View Related

AutoCAD Inventor :: Drawing - Section - Reference Parts?

Dec 7, 2011

In a drawing Is there anyway to section (and show the hatch pattern) on reference components?

View 9 Replies View Related

AutoCAD Inventor :: Part And Assembly Reference In Drawing?

Nov 7, 2013

I wonder if it's possible to see with ilogic if a part exciste in all others view (in assembly) of the same sheet?

View 9 Replies View Related

AutoCAD Inventor :: Reference A Sketch Within Drawing View

Jan 8, 2013

Using Inv 2013 and VB 2010.  I am trying to reference a sketch within a drawing view, but I am having a hard time figuring out which view number and sketch number to use.  I thought I had it figured out, but apparently I was wrong.

For example, see the 2 attached pics, Drawing A and Drawing B.  For Drawing A I had the sketch reference set as

Dim oSheet1_View As DrawingView = oDrawDoc.Sheets(1).DrawingViews(3) Dim oSketch As DrawingSketch oSketch = oSheet1_View.Sketches.Item(1)

Drawing View 3, as it was the 3rd Drawing View in the list, and Sketch #1 within that Drawing View.  I thought this was how it worked, because it worked with my code and it hid the sketch.  However, moving on to Drawing B, I used the same code, and it does not reference that sketch at all.  It did nothing to it.  Even though the Flange_Holes sketch is in the same position.  3rd View down the list, 1st sketch.

So how does Inventor reference these views and sketches?  Is it in order of creation?  Is there a way to reference it by the what the sketch is named instead of trying to decipher the number it's assigned?  I have a lot of drawings already made, and I'm not positive the views were taken and created in the same exact order each time.

View 1 Replies View Related

AutoCAD Inventor :: Change Model Reference In Drawing

Dec 26, 2013

I did some digging and found the option to replace a model reference in an entire drawing, but I'm looking to change the reference in just a view. Consider the picture I have attached. I'm depicting top down views of these layers. Each layer requires changing the view identifier each time I drop a view. This would be considerably less time consuming if I could just copy/paste the view and change which part file it was pointing to.

View 2 Replies View Related

AutoCAD Inventor :: Reference Parts Visibility In Drawing

Jul 18, 2013

When a drawing view is made within Inventor from a presentation file (.ipn) some of the parts sometimes donot appear as properly visible.

I have attached some screen shots which might lead to some clues.

View 5 Replies View Related

AutoCAD Inventor :: Changing Reference Object In Drawing File

Apr 9, 2012

I wondered if there is a way of changing view reference from one object to another.

Example.

I have two similar models but drawing done for one.

I could save it as with a different name and replace in all the views referenciing from old model to new one.

Possible? 

View 3 Replies View Related

AutoCAD Inventor :: Reference Part Not Obeying HLR Option In Drawing

Jun 21, 2012

I am in a IDW for an assembly file. buried deep inside , there is a part that need to be present in assembly (But in reference BOM condition)

When I insert a view with HLR option, why this part visible in dashed line. Whereas it supposed to Not Show up at all?

Example : Say I have a assembly of a spheres dia 5in & dia 3in (assembled center on center). The smaller sphere is in reference BOM mode. In the drawing view with Hidden Lines Removed option why is the smaller sphere visible in hidden line?

View 2 Replies View Related

AutoCAD Inventor :: Insert BOM Into A Part Drawing That Doesn't Reference Itself?

Jun 28, 2012

This is something that I have tried to understand and find a work around since I started working with Inventor.  Is there a way to insert a BOM into a part drawing that does not reference itself?  When we create parts they are cut or machined from a designated material (size, shape, etc) which has it's own part number, one that we have to manually enter into the drawing BOM with it's description.  Is there a way to attach this raw or base material to a part file as a subordinate part that can be seen in parent assembly's BOM's?

If there is a way to attach a raw material to a ipt's BOM that can be seen at all levels above it we could explore the option of streamlining our BOM creation process.

IV 2012
Running on:
Windows 7 64 bit
12 GB Ram
Intel Xeon processer

View 9 Replies View Related

AutoCAD Inventor :: Sketch Within Drawing View Loses Dimension Reference?

Jan 14, 2013

I have a VB program that auto updates the size of a door and frame assembly, and in turn, updates the shop drawings to reflect this change.  I have a view on my shop drawing that I have drawn a sketch in.  I start the sketch, add my dimensions, and I use 'Project Geometry' to project the edges of the actual part around the sketch to constrain my sketch and keep it in place.  The problem is, as the program runs, and the door/frame changes height, the sketch loses it's dimensional references to the projected geometry.  When I go back and reopen the drawing after running the program, all the dimensions that went to the projected geometry are gone. 

Is there another way to anchor a sketch to a drawing view part instead of dimensioning to projected geometries?  This doesn't seem to be working, and I've tried it every which way I can think of.  Oddly enough, I have another sketch in a different view that is set up the same way, and it never misses a beat.

View 4 Replies View Related

AutoCAD Inventor :: Reference Sheet Number That Drawing View Has Been Moved To?

Dec 13, 2013

Is there a way to incude the sheet number that a drawing view has been moved to? I have an elevation tag that shows the view identifier, I am looking to have the sheet number referenced where I show "Field Text-Manual" in the attachments below. I am using inventor 2014. 

View 1 Replies View Related

AutoCAD Inventor :: Cannot Create Radius Dimension On Circular Drawing Curves Projected From Spline Edges

Dec 4, 2011

API enhancement/fix in SP1: Cannot create a radius dimension on circular drawing curves projected from spline edges.Does it in some way trying to refer to the issue with nonplanar arcs turning into splines in drawings saved-as AutoCAD .DWG?

View 3 Replies View Related

AutoCAD Inventor :: Reference Parts In A Subassembly / Unable To Create Balloon And Drawing

Jun 14, 2013

I have assemblies that are comprised of reference parts - the assembly is a purchased part such as an air cylinder.  I have them as reference only in the assembly (ie right click on the parts in the model tree->BOM Reference->Reference). I do it this way so I can adjust the air cylinder how I need it, but still only asign one part number to the whole assembly - as an example we'll say "cylinderX" is the part number, and filename is "cylinderX.iam"

The problem arises when I put cylinderX.iam into other assemblies and try and make drawings of those assemblies.  Even though cylinderX.iam is not a reference part (but all it's sub components are), it shows up in an IDW just like reference parts.  I am able to make it show up how I want by editing the view properties (Edit View->Model State Tab->Reference Data Line Style "as parts"), but I still cannot balloon cylinderX.iam.  It shows up in the parts list, but I cannot attach a balloon to it.

Inventor 2013, 64-Bit
Dell Precision M6700
Windows 7 Pro
Intel Core i7-3820QM @ 2.70 GHz
16 GB Ram
NVIDIA Quadro K4000M
Space Navigator

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







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