AutoCAD Inventor :: 2011 - ILogic / Finding Out If View Exists

Nov 19, 2010

I have a iLogic question about finding out if a View exits..

Lets say I have a drawing that I want to read the scale of a view.. All the snippets I have found is pointing to the name of the view like "VIEW1". But if I have deleted the first view I created it will give me an error..

So, is there ant possibility to check if the "VIEW1" exits without getting an error?

View 9 Replies


ADVERTISEMENT

AutoCAD Inventor :: Check To See If LOD Exists Then Create Ilogic Rules Around It

Mar 27, 2013

I have an assembly with parameters named the same as LOD's.

The parameters are set to equal the mass of the corresponding LOD's using ilogic.

If the LOD does not exist, I want to set the mass of the corresponding parameter to a value of zero.

I don't know how to check for the existence of the LOD and I'm not sure I can have three commands in the ELSE section.

Below is an example of what I need using a Parameter and LOD called EXTERNALS as an example.

If  EXTERNALS LOD does not exist
THEN Parameter("EXTERNALS")=0
ELSE
'activate the EXTERNALS LOD
ThisDoc.Document.ComponentDefinition.RepresentationsManager.LevelofDetailRepresentations("EXTERNALS").Activate

[code]...

View 2 Replies View Related

AutoCAD Inventor :: Finding Sin Of A Number In ILogic

Nov 5, 2013

How do I need to write the code in Ilogic to find the sin of a number. It works fine in a parameter as sin (43) but does not give the same value in ilogic.

View 1 Replies View Related

AutoCAD Inventor :: Finding Parameter Reference To View Representations?

Sep 27, 2012

I created view representations in my assembly, for example a column with k-polates and base plates, the column is a FG part, so now i create drawings and place views on that drawing, what i am askign for is I want to place the name of the view representation in my view label as a paramater so in the event i change my view names in my model they update in my drawing, this is important because i can create a cross referance to my 3D DWXF file views.

View 4 Replies View Related

AutoCAD Inventor :: View Exporting From 2011 To DWF

Jan 21, 2011

The view cube in INV2011 has the front view as the front view and the top as the top (I am using XY as top, and XZ as front).  When I export to DWF everything gets turned on its side.  XY is FRONT (previously TOP), top is upside down view of one of the sides.  I've done the make current view home in 2011. 

View 3 Replies View Related

AutoCAD Inventor :: ILogic - Get View Type

Dec 17, 2013

Is there a way to get the "view type" of a view using iLogic? for example;

-detail view
-section view
-exploded view

Or any way to differentiate between the types of views? I'm trying to write a rule that renames all detail and section views in a drawing in Alphabetical order. A,B,C,D..

View 5 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 :: ILogic View Reps On DWG

Dec 19, 2012

ILogic code ,I have had some code done to isolate selected parts in a assembly file that has a specific custom property filled in i.e. : DESC2.It then creates view reps and locks down giving the rep name the same name as part.

What I am after is some code that will place these isolated view reps as views on my dwg that the assembly resides in.With the functionality of picking face to show plan view of parts.

View 3 Replies View Related

AutoCAD Inventor :: Setting View Via ILogic

Mar 16, 2012

I have been looking around but have not been able to find examples of how (If I can) set the model views via iLogic. 

What I am trying to do is to have the view change from "Master" to the view I have created for each part, so when I go to create drawing all I have to select the right view and the part changes to match view.

View 5 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 :: Creating A Base View With ILogic

Oct 18, 2013

I kept the code simple
 
fname = ThisDoc.FileName(False) 'without extension fpath = ThisDoc.PathoPartDocPath = fpath+""+fname+".ipt"oPartDoc = ThisApplication.Documents.Open(oPartDocPath, False)oDrawDoc = ThisApplication.ActiveDocument oSheet = oDrawDoc.Sheets.Item(1)oTG = ThisApplication.TransientGeometryoPoint1 = oTG.CreatePoint2d(5, 5)oBaseView = oSheet.DrawingViews.AddBaseView(oPartDoc, oPoint1, DrawingViewScale, kFrontViewOrientation, kHiddenLineDrawingViewStyle, "Default")

it is a local rule in an idw file that has been saved with an ipt file of the same name saved in the same directory. Now I get the most useless error message ever devised by manking

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

View 5 Replies View Related

AutoCAD Inventor :: ILogic Controlled Model View?

Mar 22, 2013

I am using a number of sketches in a skeleton to control multiple solutions.

I am using case statements that apply values to my variables and create my solutions which is working fine however,

for clarity of what is being used in a given solution I want to turn on/off the sketches in my code. I have created a set of model views that when active properly turn off the visibability of the appropreate sketch.

While model view is among the things that can be selected for use in the code, so far as I can tell, I can not find a function that will allow me to set a view true so that it activates the view and my sketches turn off.

View 1 Replies View Related

AutoCAD Inventor :: Place A View On Drawing Using ILogic?

Jul 31, 2013

Like the title says I am looking to place views (and dimensions) on drawings using ilogic. I am new to both inventor and ilogic, most of my training came in SolidWorks. It needs to pull the part from an ipart that pulls the information from an excel file.

View 1 Replies View Related

AutoCAD Inventor :: ILogic - Make Drawing View Shaded

Jan 22, 2013

Is there a line of code that will look at a drawing view and turn shading on?

I have tried

ActiveSheet.View("VIEW1").View.Shaded = True

but it didn't work .

View 6 Replies View Related

AutoCAD Inventor :: ILogic Component Edge Color In IDW View?

Feb 9, 2012

Is there code for changing the color (or other properties) of the visible edges of a component in a drawing view, the same way I can do it manually by right-clicking a component and choosing Properties?

I wrote this rule to change the color of each individual drawing curve:

Edit: Ignore the "<!".  It's the only way I could get the iLogic code to successfully post in the message
 
Spoiler (Highlight to read)<!Dim drawViews AsDrawingView
For Each drawViews In ThisApplication.ActiveDocument.ActiveSheet.DrawingViews
occ3 = drawViews.ReferencedDocumentDescriptor.ReferencedDocument.ComponentDefinition.Occurrences.ItemByName("GF_Plenum:1")
Dim newColor3 As Color
newColor3 = ThisApplication.TransientObjects.CreateColor(0,255,255)

[code]....

View 2 Replies View Related

AutoCAD Inventor :: Rotate Drawing View Label Via ILogic?

Nov 19, 2013

I have successfully been able to rotate the drawing view. rotating the view label.

View 1 Replies View Related

AutoCAD Inventor :: ILogic Code To Change View Label Text

Sep 18, 2012

I am trying to rewrite Curtis Waguespack's ilogic code to modify drawing view labels from this post http: [URL]...

The completed label should appear like this

<Description> - Mk <Part Number>
Est Unit Mass = X kg
(Scale 1:1)

At this point I have 2 problems

1. I want to add the physical mass to the second line and would prefer to use the calculated physcial property rather than the a custom iproperty. If editing the view label, it would the property access under physcial properties.

2. I want to rewrite the code so it is selective or per view - in otherwords, I only want it to modify a single view I select once the code is run. At this point I know I need to remove the For loop but I dont have a clue as to how to make it selective.

'start of ilogic codeDim oDoc As DrawingDocument: oDoc = ThisDoc.DocumentoModel = ThisDoc.ModelDocumentDim oSheets As SheetsDim oSheet As SheetDim oViews As DrawingViewsDim oView As DrawingViewoSheets = oDoc.SheetsFor Each oSheet In oSheetsoViews = oSheet.DrawingViews For Each oView In oViews oView.ShowLabel = True

[Code] ......

View 5 Replies View Related

AutoCAD Inventor :: ILogic Automatic Drawing View Scale Label

Apr 17, 2012

what i am trying to do is create an iLogic rule that if your drawing view scale is set to the following ...

1:1, 1:2, 1:4, 1:8, 1:12, 1:!6, 1:24, 1:32, 1:48, etc. on the view label for that view it will diplay ...

SCALE: 1/2" = 1'-0"

and so on for the rest for the standard scale factors.

i know it will be some sort of a loop and it needs to check all views when ran for any changes.

i have never done any coding for the drawing side of inventor yet only model coding

View 6 Replies View Related

AutoCAD Inventor :: ILogic Script To Show Master View Of Assembly

Aug 24, 2012

when open an assembly not all parts are shown. To be able to see entire assymbly need to change View representation to Master manually. How to achieve this in Ilogic?

View 5 Replies View Related

AutoCAD Inventor :: Control Break Size In Drawing View Using ILogic?

Feb 24, 2011

is there any way using iLogic or other method to automatically control the size of the 'break' in a drawing view? I have built a model which uses iLogic to control virtually everything, however the large variations in the length of the product mean that there are some interesting results when it comes to the broken drawing views updating.

it would be nice to locate the break at the absolute center of the view and then size it as a percentage of the view size along one axis or perhaps according to some other length based rule.

Dell Precision M6400 - C2D 2.66 / 8gb / Quadro FX3700M / Win 7 Pro x64

View 9 Replies View Related

AutoCAD Inventor :: ILogic For View Representation Of Part File (in Assembly)

Apr 17, 2012

I have received a great solution from Bobvdd allowing ilogic control of the view rep in a part file (not an assembly file). The code below works brilliantly when the part file is the active document. However when the part is placed in an assembly and the ilogic is run with the assembly active, the code produces no result. How to modify the top 6 lines of code?

Dim oApp As Inventor.Application
oApp = ThisApplication
Dim oDoc As Document

[Code]....

View 2 Replies View Related

AutoCAD Inventor :: ILogic To Change View Representation In Part File

Apr 16, 2012

How to change the view rep in an assembly

(using oAsmCompDef.RepresentationsManager.DesignViewRepresentations.Item("Red").activate) -

However I am trying to achieve the same with iLogic in a part file (multi-solid).

View 2 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 / Modify IProperties Of Model That Is Associated To Drawing View

Jul 11, 2013

I'm trying to do this with iLogic, and i'm not getting anywhere. What I need, is to be able get to the iProperties of an associated model that is referenced into a drawing file.  I want to make it easier to update the iProperties from the drawing file, without having to open the model file. 

Factory Design Suite Ultimate 2012
AutoCAD 2012 | Inventor Professional 2012 | Vault Professional 2012

View 2 Replies View Related

AutoCAD Inventor :: ILogic - Create Parts Lists Out Of View Representations?

Sep 4, 2012

Is it possible to have iLogic rule create parts lists out of View Representations? [URL] .......

View 9 Replies View Related

AutoCAD Inventor :: Convert 2012 View Scale From 0.5 To 1:2 Or Similar Within ILogic Rule?

Jul 2, 2012

Is there a way to convert an Inventor 2012 view scale from "0.5" to "1:2" or similar within an iLogic rule? I can extract the main view scale and plug it into a variable but the format isn't correct for the drawings I'm creating.

View 2 Replies View Related

AutoCAD Inventor :: ILogic Rule - User Input Brings Up Drawing View Dialog Box

Jan 30, 2013

Currently have an iLogic rule in my drawing template that base on user input brings up the Drawing View dialog box (as though you click on base view).  I want to know if there is some coding I can do to control or handle what happens if the user clicks the cancel command inside this dialog box.  Possibly show a message box. Or even run another rule after the cancel button has been clicked?

View 1 Replies View Related

AutoCAD Inventor :: Check If UserParameter Already Exists

Nov 8, 2005

The following code adds three user parameters to an .ipt:

Public Sub AddUserParams()
Dim oDoc As PartDocument
Set oDoc = ThisApplication.ActiveDocument

[Code].....

If I run this on a part that already contains any of these user parameter names I get an error. Is there a way to first check for each name and skip to the next if it already exists?

Also, how the heck do I set ExposedAsProperty for each of the parameters added?

View 5 Replies View Related

AutoCAD Inventor :: Check If IProperty Exists In Component?

Apr 9, 2013

I am simply trying to traverse an assembly, check each component for existance (or value of) an iProperty, and if so add that components name to a list.  Here is what I have, but it doesnt work.
 
'Define the open document
Dim oDoc As Document = ThisDoc.Document
Dim oRefDoc As Document

[Code].....

View 1 Replies View Related

AutoCAD Inventor :: Error - Named Segment Already Exists Cannot Create Or Rename

May 26, 2009

I'm trying to copy sheets from one dwg file to another in Inventor 2010. I get the error: "Named segment already exists: cannot create or rename". The sheet name is not listed in the target file. Why this error is occurring and how to fix it?

View 9 Replies View Related

AutoCAD Civil 3D :: 2011 Section View Setting

Jun 13, 2012

I am just starting out in Civil 3D and we are using the 2011 version.  Anyway I have created cross sections along the centerline of a profile.  How do I get the elevations and offsets to show up without digits to the right of the decimal, in other words to the nearest foot (ie. 3820.00 = 3820, 50.00 = 50)? 

View 1 Replies View Related







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