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


ADVERTISEMENT

AutoCAD Inventor :: Pattern Controlled With ILogic

Jan 8, 2013

I have a pattern of holes (exactly 3) on an object and when the object height changes so does the pattern base on height. My issue is that i need to create a rule or code that ensures that apart from the first hole (which is fixed), the remaining two holes are at a location that is divisible by 6. The reason being that this is a sheet metal part and our punch press has a template for aligning punches at every 6 IN.

We are using iLogic to automate some of our designs and the code is needed to eliminate having to worry if the punches are at the correct location for faster production.

View 3 Replies View Related

AutoCAD Inventor :: ILogic Controlled Sketch Symbol

Apr 19, 2012

How do i target a specific sketch symbol within a view and control it with iLogic?

View 9 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 :: 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 :: Drawing A Radio Controlled Scale Model Aircraft

May 27, 2011

We've been using AutoCad for a while now , I'm just about to embark on a new project which I'm not quite sure on scale.

The aircraft I intended to model has a length of 137ft and wingspan of 140ft. Now I can't build it that big but it will probably be around 5-6ft in length once I settled on the scale I'm going to use. My question is do I draw at its original dimension and scale it in paper space or should I draw it in the size its going to be.

View 9 Replies View Related

AutoCAD Inventor :: 3D Model With ILogic

Aug 22, 2012

I made a 3D model with ilogic to control features to be suppressed or compressed. Because there are lot of features need to do so (need almost 4 to 5 min.) , when I run the rules, it came "Rule timeout" issue as pictures.

I used:

 Feature.IsActive (myFeature) = status

to control the feature be suppressed or unsuppressed .

View 8 Replies View Related

AutoCAD Civil 3D :: Model Object Colour Changes After Switching From Layout View To Model View

Jun 14, 2012

CIvil 3D 2013 / My drawing opens in layout view and all model objects are appropriately coloured by layer. If I hit plot at this point, my colour dependent .ctb file works fine. However, once I swtich to model view, all my linework turns white and if I switch back to Layout view it remains white and plots each line with the weight assigned to the colour white.

View 2 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 To Save DWG But Not Model?

Oct 25, 2013

I currently have ilogic code that automatically saves a template Inventor dawing as a job drawing. However the problem I am having is when it does this save it takes forever as it seems to be also saving the linked model also. Is there a way to save this Inventor dwg without saving the linked model? The reason why I do not want this model save is because after the drawing is outputted the user is given options to write part numbers and dxf files if required which requires a model save anyway.

Sample of code used:-

ThisDoc.Document.SaveAsInventorDWG(ThisDoc.Path & "2D_DRAWINGS (Inventor dwg)" & iProperties.Value("Custom", "Drawing No.") & ".DWG", True)

View 1 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 :: Modify Referenced Model By ILogic?

Jul 24, 2012

I try to modify on a drawing the 3d model, using iLogic (same thing as Inventor "Replace model reference" command).

View 3 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 :: 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 To Change Model Color / Appearance

Sep 17, 2013

When I open a drawing, i want to be able to change the appearance of its part model.I can do it in part itself using iProperties.PartColor.

But I want to do it from inside the drawing.

View 1 Replies View Related

AutoCAD Inventor :: ILogic Model - Dimensions Of Assembly In IDW Drawing

Jul 2, 2013

I have a automated ilogic model that is then used within a 2D drawing, this 2D drawing then has dimensions on it referenced to the the model.

This model changes in its length the dimension associated with its length then changes but the dimension text then goes outside of the dimension boundary (does not stay central). Is there any code that can scan the dimensions and in effect tidy them up?

View 3 Replies View Related

AutoCAD Inventor :: ILogic - Pull Path And File Name Of Model From Within IDW

Feb 28, 2012

How to pull the path & file name of an IPT from within an IDW?

 If I use this line from within an IDW:

ModelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)

it will simply return the file name of the corresponding IPT.

I want to be able return the path for the IPT from within the IDW as well.

Product Design Suite Ultimate 2012 64-bit - SP1
Windows 7 64-bit - SP1

View 1 Replies View Related

AutoCAD Inventor :: Opening Model With ILogic And Save As STP File?

Jul 23, 2012

I have an ilogic rule created to do a save as .dxf and .pdf from the .idw file.  It will then open the .ipt file without any issues.  The problem I am having is that I also want it to do a save as .stp of the model after it opens the model.  I get the following error.

Error in rule: Save As DXF PDF and open, in document: Save As DXF PDF and open.iLogicVb

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

Do I need to add something to the code?

Here is the code I have written.
 
strFolder="C:Vault_WorkspaceSave As"&iProperties.Value("Project", "Part Number")
ThisDoc.Document.SaveAs(strFolder&"_Rev"&iProperties.Value("Project", "Revision Number")&(".dxf") , True)
ThisDoc.Document.SaveAs(strFolder&"_Rev"&iProperties.Value("Project", "Revision Number")&(".pdf") , True)
doc=ThisDoc.PathAndFileName(False)&".ipt"ThisDoc.Launch(doc)
strFolder="C:Vault_WorkspaceSave As"&iProperties.Value("Project", "Part Number")
ThisDoc.Document.SaveAs(strFolder&"_Rev"&iProperties.Value("Project", "Revision Number")&(".stp") , True)
MessageBox.Show("STEP Created", "File Save")

View 1 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 :: Using ILogic To Retrieve IProperties Form Model Into Drawing?

Jun 7, 2012

I'm trying to put a little iLogic rule in my drawing template which triggers as soon as the drawing is opened.  The rule asks the user whether the component he's making a drawing of needs to be painted or not.  If it gets painted, the paint area (one side only or both sides) needs to be calculated.  The result of this is then referenced by a text note in the title block.

I can do the radio boxes with the questions, as well as their If loops, but only when I'm in the model.  Due to our, admittedly inefficient workflow, we never have time to specify "minor details" like paint area or spec during modelling, only when we get to drawing level.  I'd like to put the iLogic rule inside the drawing template.  I'm having trouble referencing the iProperties of the model from within the drawing's iLogic interface.

What I have so far is this rule, which I can run inside the model:
 
'set dummy variable equal to total areatotal_area = iProperties.Area'start radio box with questionsText1 = InputRadioBox("Will this component be painted?", "Yes", "No", Text1, Title := iProperties.Value("Project", "Description"))If Text1 = True ThenText2 = InputRadioBox("How many sides will be painted?", "Both sides", "One side only", Text2, Title := iProperties.Value("Project", "Description"))If Text2 = True TheniProperties.Value("Custom", "Paint Area") = total_areaElseIf Text2 = False TheniProperties.Value("Custom", "Paint Area") = total_area/2End IfElseIf Text1 = False TheniProperties.Value("Custom", "Paint Area") = 0End If

adding a line or two so that I can run the same rule, but from the drawing.

View 9 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 :: 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 :: 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 View Related







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