AutoCAD Inventor :: Rule To Control Visibility Of Work Features In Pro 2014
Oct 2, 2013
Is there a way to write a set of rules so that I can switch Work Features On and Off via a Text Parameter.I have an assembly made up of a number of parts used hundreds of times within in various sub-assemblies. If I make a particular sub-assembly 'Invisible' then subsequently 'Visible,' all work features that had previously been set to be 'Invisible' are switched to 'Visible' also.
Likewise if I simple want to set a particular Work Features' Visibility in one particular sub-assembly, I would like to be able to do this via a Text Parameter rather than having to laboriously scroll down the Assembly switching the visibility of features on and off.
At the moment if I turn the visibility of say a Work Plane On in a sub-assembly then all sub-assemblies deploying the same part switch the visibility of that Work Plane on too. Hence I cannot see my work for Work Planes.Obviously the Global Switch under View is of no avail,
So I would like to be able to create a Text Parameter for each sub assembly and in turn each Work Feature with a Yes/No Visibility switch controlled via a set of Rules in iLogic.
View 4 Replies
ADVERTISEMENT
Oct 4, 2013
I want to be able to have All Work Planes set as 'Invisible' but create a Message.box or Icon that allows me to change the Visibility of any individual workplane(s) physically selected in the browser.
A rule written by another member should do the trick if the following line could be altered so as not to read 'For Each' oWorkPlane but instead for 'Each Selected' oWorkplane.
'For Each oWorkPlane In docFile.ComponentDefinition.WorkPlanes'
'get user input
oInput = InputRadioBox("Select workplane visibility:", _
"Turn ON workplanes for all components", "Turn OFF workplanes for all components", "False", "iLogic")
'Define the open document (top level assembly)
Dim openDoc As Document
openDoc = ThisDoc.Document
[code]....
View 1 Replies
View Related
Mar 6, 2013
I went to the trouble of going through my model to turn off visibility for many many planes and axes and points that I did not need to see. I had only a few on that I need. By some flick of the wrist suddenly they are all back on again!! I am now back in a state where I can either see them all, or I hit Ctrl-] and they all go away. I cannot seem to get back to a point where I only have on the ones I want.
So, how do I definitely TURN OFF visibilty for ALL work features so that I can then selectively TURN ON only a few? The Object Visibility tool does not seem to do this. It doesn't seem to do much more than the Ctrl ] or Ctrl / or Ctrl . that I use to momentarily toggle visibility.
View 2 Replies
View Related
Dec 9, 2011
I am working for customer with a simple item with his iLogic design. He has created a simple form to modify his iProperties. To modify the current material, a multi-value parameter was created and the following rule as a local rule;
"MultiValue.List("MATLIST") = iProperties.Materials
iProperties.Material = MATLIST"
He is now trying to make this an external rule but gets the following error
Error in rule: Mat2, in document: Mat2.iLogicVb
iProperties.Material: is probably a bad material name.
The more info tab says:
System.ArgumentException: iProperties.Material: is probably a bad material name.
at iLogic.CadPropertiesInRule.SetDocMaterial(Document doc, String matName)
at LmiRuleScript.Main()
at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)
View 2 Replies
View Related
Feb 14, 2013
I have a code working that is not very efficient.
It works, but it is very slow, i suspect it can be 28x faster, but I don't know how
What I have:
I have a plate with many hole patterns.
I calculated how many holes each pattern has
Parameters: Excel_Holes_Row_0 to Excel_Holes_Row 27
For each Row i have 4 features:
Pipe Hole
Rectangular array of Pipe Holes
Product Hole
Rectangular array of Product holes
What I want to do:
I want to suppress/unsuppress features with a rule
If Excel_Holes_Row_20 < 2 It means Suppress the rectangular arrays on this row
If Excel_Holes_Row_20 = 0 It means suppress the hole features on this row
This is my
Dim oDoc As Document = ThisDoc.Document
Dim PFeats As PartFeatures = oDoc.ComponentDefinition.Features
Dim PFeat As PartFeature
[Code]....
View 3 Replies
View Related
Aug 10, 2012
I made an Part with iLogic rules, let's call it "iLogicPart". The rules inside could create lot of different part by my input.
I want save the different parts to different name as "Part 1", "Part 2", etc. I used SaveAs to get them.
My question is: I want to delete all rules and parameters in the saved parts as "Part 1", "Part 2". And I have lot of features (the name is hard to track) which are inactive, I want to delete them at same time too.
I could manually do so, but I want to use rule to do so automatically.
View 9 Replies
View Related
Jun 12, 2012
I have a simple Assembly for a Frame that I made with Frame Generator. I'd like to use a rule to toggle the visible of some of the framing members.
In the sub assembly (called Frame0001:1) I created a rule:
(I have a variable called LeftAngle, and the bar I want to toggle is called Bar1.)
If LeftAngle = 90 then
Component.Visible("Bar1") = False
Else
Component.Visible("Bar1") = True
End If
I am sure this is VERY basic, but I can't get it to do anything. There is no error message - just nothing happens.
I know the rule is running though - it will change other parameters in response to the If Then statement.
View 6 Replies
View Related
Dec 27, 2012
I have a part with a rule 'PlaatsPaneelNummer " which I place text on my part. Now I have that part in an assy posted regarding the use of a placeholder.
Now I want the rule 'PlaatsPaneelNummer' drive from the assy. I keep getting the message that the sketch in which the text is placed can not find. I can not manage to show this in the rule.
View 1 Replies
View Related
Jun 20, 2013
I there a way of finding each Bom structured part that is set to reference in an assembly and setting the view of that component to in-visible.
Also needs to iterate into all set View reps that where created and set all views to not show the referenced parts as well.
View 8 Replies
View Related
Jul 22, 2013
I have entered in all the available sizes and have the outer frame of the louver adjusting nicely.Now where I am running into trouble is setting up the louvers and the louver spacing. I have been playing around with the parameters for awhile now and I just can't wrap my head around some things.
Example one:
in the picture below,
HEIGHT is selected on 18 in
I have created an user parameter called LOUVER_QTY which is set to subtract 1.6 in off HEIGHT = 16.4, then I divide that by 2.05 and the result is supposed to equal 8 but it is showing 3.149606. But when I assign LOUVER = LOUVER_QTY it is showing 8
For the most part this file works fine, but when the Height is changed to 56 in, the last bottom louver runs through the bottom of the frame.
I know that I have to change the spacing from a direct input (2.05) to a equation based on height to fix the spacing, but I can't grasp how these parameters are working, why are they red(errors)
Also I don't know how to set up the parameters to set the correct number of occurrences in the rectangular pattern to control the amount of louvers. Something related to to the spacing of the pattern and the selected height.
Inventor Professional 2014-Update 2 - AutoCAD Electrical 2014
Win7-x64 | ASUS P8Z77-V | i7 3770 -3.4 GHz | 32GB RAM |
240GB SSD | nVidia GTX 670 4GB - 320.49
View 8 Replies
View Related
Mar 31, 2012
I have made a simple iPart with the option to suppress an extrusion. How do I control this in an iAssembly?
View 3 Replies
View Related
Oct 24, 2013
Inventor 2014 Professional:
I have Parts in my Parts List with duplicate Item Numbers (For Balloning purposes) but with different quantities (Custom Quantities). I turn the visibility of the Part with the Static Quantity off.
Whenever my assembly is updated the Part I had orginally turn the visibility off gets turned back on.
Is there something I am missing to keep it turned off?
View 7 Replies
View Related
Sep 16, 2011
I'm creating a small product configurator using ilogic. It all works fine, but i've i challenge:controlling the visibility of the components in a drawing view
In simple words, every occurrence of my assembly has an custom Ipropertie calles "Positie". there where 4 values (Bodem, Zij, Kop, Deksel and Overig)In a drawing view i only want to see the parts that has a specific value of the ipropertie "Positie".I found a sample code for VBA, but I cann't get it worked in ilogic.:
Sub HideSecond()
'Assumes you have an open drawing
'Assumes that view 1 of the active sheet is an assembly
'Turns off visibility of assembly's second component in open drawing's first view
[code]....
hind to turn this into ilogic and add the option to check the ipropertie to turn on the visibility
View 6 Replies
View Related
Aug 11, 2012
I've created a tie-on-cable marker tag using Loft, Replace Face and Split techniques. After splitting, I turn off the visibility of one of the two resulting solid bodies. File A208P03_Label.jpg shows the results with solid body Solid2 visibility either on or off.
The cable marker tag is then used in an assembly file shown in MI-CA-0261.iam.jpg and a drawing file shown in MI-CA-0261.idw.jpg. The problem I have is that Solid2 is showing up in the idw drawing file when I'd rather it's visibility be off as in the .iam assembly file.
View 2 Replies
View Related
Jan 5, 2012
I have a simple iLogic rule to save an IDW using SAVE COPY AS DWG. The rule was created in Inventor 2011 ilogic and was embedded in the IDW template. Trigger was set to activate when the new drawing file was saved. It no longer works and errors out in Inventor 2012. The template has been migrated to 2012 and so has the project file. The ilogic Code is given below. if some new settings in Inventor 2012 need to be changed for it to work? Or if you have an ilogic rule to do the same that works,
Get the DWG translator Add-In. Dim DWGAddIn As TranslatorAddIn DWGAddIn = ThisApplication.ApplicationAddIns.ItemById("{C24E3AC4-122E-11D5-8E91- 0010B541CD80}") 'Set a reference to the active document (the document to be published). Dim oDocument As Document oDocument = This Application. ActiveDocument Dim oContext As TranslationContext oContext = ThisApplication.TransientObjects.CreateTranslationContext oContext. Type = IOMechanismEnum.kFileBrowseIOMechanism ' Create a NameValueMap object Dim oOptions As NameValueMap oOptions.
[code]....
View 4 Replies
View Related
Mar 20, 2013
Is there a way to automate the process of turning off the Work features in a .iam and STILL be able to add new Work features. View>Object Visibility is not the answer because you are unable to construct NEW Work features. If there isn't a menu selection, can a “batch file” be developed to search the Browser and turn off all Work features currently listed in the tree?
View 9 Replies
View Related
Nov 10, 2011
How do I delete work plane 1 from the attached part, 'test derived'?
workflow.
create a part, pattern a plane, save as 'test deriver'
create new part, derive work plane 1 from 'test deriver' sketch onto work plane 1, save as test derived
go back to 'test deriver, delete the pattern and create a new pattern, work plane 2, (i couldnt just edit it because the real life case was a series of patterns at different distances)
open part 'test derived', edit the derived part to include work plane 2, (work plane 1 doesnt exist in 'test deriver' anymore) redefine the sketch onto work plane 2
try to get rid of work plane 1 from the part?
View 4 Replies
View Related
Mar 30, 2012
when in assembly mode when i right click on a part workplane there is sometimes the Visibilty option and other times there is no Visibility option ?
View 3 Replies
View Related
Mar 23, 2012
Is there a way to turn off visibility on work planes using ilogic? Also, is there a way to change an extrusion type from an assymetrical extrusion to a one direction extrusion using ilogic?
Inventor 2013 Certified Professional
View 9 Replies
View Related
Jan 21, 2013
I have attached a simple model to detail what I am having trouble with.
I have constructed a sheet metal tube by first creating a flat sheet face and then by folding the sheet with two, 180 degree bends and large radius. I am doing it this way in order to simplify the drawing of the cutouts that are required in the "real" sheet (with many more cutouts than in the sample I have provided.)
When I try to add work points or work axis to the holes shown in the sample, only the holes on the second bend will accept the work features, the holes on the first bend will not - giving the error:
TEST.ipt: Errors occurred during update Projected loop failed because of multiple vertex solutions Work Point8: Could not build this Point Copy Point Zero or multiple solutions for Point Copy Point. Use Redefine Feature to change its definition.
I am using the work point as reference to the center of the hole in order to position a rod.
View 3 Replies
View Related
May 2, 2012
Commands Work features is not active in edit base solid.
How to make plane? How to make active ?
View 2 Replies
View Related
Jul 16, 2008
I have an assembly that was generated by Pro/E. It opens fine, but there are roughly 1000+ planes that are all visible. Is there a way to easily shut these all off whithout having to do it in each part?
View 4 Replies
View Related
Jul 19, 2013
How to set the visibility of workplanes in an assembly file to false.?
View 3 Replies
View Related
Jan 7, 2014
Is there a way to invoke the iLogic Rule Editor and pass it an existing rule name or external rule for editing?
View 4 Replies
View Related
Aug 2, 2013
I need a way to run a rule which is saved in my top-level assembly using iLogic rule which is saved in a part file in the parent assembly.
I have even tried using an external rule in a txt file, but that gives the error "Component: This function can only be used in an assembly." - which makes no sense to me. I hope I am just missing something simple. I cant believe with all its other strengths, that iLogic would be so limited in that regard. Why is there not simply a snippet under the 'Run Other' that allows you to specify an assembly file and the rule name? (like there is for running a rule in a component from the assembly)
View 4 Replies
View Related
Dec 6, 2011
I want to simply set a custom iproperty as the Description in each part file within my assembly. I can do this easily at part level with ilogic but I want to be able to run the rule from the assembly level and all the parts run the rule. I am struggling to find a way to do this.
I think this may be the best method I have found but I think it must be far easier?
[URL].......
View 9 Replies
View Related
Sep 3, 2012
Is there any way to set features to be invisible when create sketch after those 3D features so as to make the sketch more easy to see?
View 3 Replies
View Related
Jul 4, 2012
Any way to control the visibility of any XRef in a drawing using Excel or Text file. For instance, I have 50 Xref placed in there positions and I want AutoCAD to select what should be visible by reading an external file--Excel or Text file.
View 1 Replies
View Related
Nov 10, 2012
Is it possible to contol the visibility state of an external referenced drawing? I have an architectural plan drawing that uses a titlesheet drawing as an external reference. In my civil plan i want to use a different title sheet. Instead of having a different titlesheet drawing for the civil drawing i was wondering if i could turn my titlesheet drawing into a dynamic block. In my architectural drawing i would see visibility state #1 & in my civil drawing i would see visibility state #2.
View 1 Replies
View Related
Nov 12, 2013
I'm facing a problem dealing with visibility formulas... My situation that im dealing with is, I have 2 yes/no visibility parameters, one that is called Right side clearance and another one named Left side clearance. I want to create another yes/no visibility parameter that's called Clearance. I want to link the Right and Left clearance parameter to the Clearance parameter where if it is off, then there will be nothing that shows.. But if I want it on then I would have to select either right or left without them both showing up?
View 4 Replies
View Related
Aug 21, 2012
I am trying to use iLogic to create the file types I need to give to my vendors once I have created a drawing.In the .idw file I have a rule that creates a .pdf file and .dwg file. I also want it to activate a rule I have in the .ipt file that creates a .dxf file.
trigger = iTrigger0oType=Left(ThisDoc.FileName(False),3)GoExcel.Open("S:DRAWINGSFolder Types.xlsx", "Sheet1")For rowPN = 1 To 200 If (GoExcel .CellValue("A" & rowPN) = oType) Then oFile = GoExcel.CellValue("C" & rowPN) Exit For End IfNextoFolder = "S:DRAWINGSNOT RELEASED" & oFileIf Not System.IO.Directory.Exists(oFolder) ThenSystem.IO.Directory.CreateDirectory(oFolder)End IfThisDoc.Document.SaveAs(oFolder & "" &
[code].....
View 5 Replies
View Related