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
ADVERTISEMENT
Dec 2, 2011
how to replace a model reference in and Inventor 11 .idw file. - It seems this is something easy to do in Inventor 12 but I don't see how to do it in 11..
View 6 Replies
View Related
Dec 14, 2011
How do I replace the model reference in a IPN file?
View 3 Replies
View Related
Jun 26, 2013
I have been using Inventor 2012 and have been wanting to replace model references in drawings (.idw) with other parts. Inventor will let me select the Replace Model Feature, select the model to be replaced, and find the model I want to replace it with. It will even have the prompt appear asking if I want to continue with the replacement. The issue is that when I hit yes, nothing gets replaced.
View 9 Replies
View Related
Jun 12, 2012
One of the new features in 2013 is the ability to copy a view that is on the idw. Is there a way to copy/paste a view, then replace the reference of ONLY the part in the view that was just copied?
What I have is two parts. For simplicity, just imagine both as a square plate. One has a hole in it, one doesnt. I have already dimensioned the square plate. Now I copy the view and paste it back on the sheet. I want to replace the reference of the one I just copied and change the reference to the part with the hole. If I use replace model reference command, it will replace both references, which is what I dont want.
Just a wish I guess, but the only way I can do this now it to place the second part on the sheet and start dimensioning it. Seems like a waste when we almost have the tools to quickly complete this.
View 2 Replies
View Related
Jun 18, 2013
Do we have a size limit of the models using replace model reference?
Just done a little testing with some iam's
Anything larger that 500 parts and the drawing does nothing, no replace..
View 4 Replies
View Related
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
Aug 27, 2012
Two different problems (questions). These are IV2012 files but the problems are the same in 2013.
Open the two attached ipt's. Launch the Measure Distance tool and measure between the blue an red face on the DimTest. It should read 1 inch.
Change to DimTest Derive using the tabs on the status line. Measure still gives 1 in. Change precision to All Decimals. The mouse pointer changes to calipers and the distance now measure 1.004 (which is correct)
Switch back to DimTest again using the tabs.
Measure again and notice the mouse pointer still shows the calipers which imply that it is going to return all decimals but the dimension given is still just 1 inch. Either the mouse pointer should change back or all decimals should stick.
OpenDimTest.dwg. Manage> Modify> Replace Model Reference and pick DimTestDerive.
ALL dims disappear and the origin indicator goes sick.
View 2 Replies
View Related
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
May 15, 2013
I have 30 families of seals (arf arf!)
I would like to put family A in folder A
I would like to put family B in folder B
etc
During testing I had 10 seals in one folder & used :
Component.Replace("Part1:1", "OtherPartfilename.ipt", True)
But splitting the parts up into different folders breaks the model because (I'm guessing) the part can't be found. My thought was to have one folder (Seals) with subfolder (Seal A, Seal B,etc) - is there a way to search the sub folders & use replace?
If I stick with one folder it will end up containing 300+ parts which will look messy.
View 3 Replies
View Related
Jun 13, 2013
I have an assembly which I want to replace one of the parts with one of four other parts.
My code reads:
Select Case Width
Case "750"
Component.Replace("part:1", "L:Drawingspart2", True)
End Select
This works fine and when 750 is selected, part1 is replaced with part2.
My problem is then if I want to select "1000" I don't know the part name which I will be replaced by part3 as this could be part1, part2, part4,or part5.
View 1 Replies
View Related
Mar 1, 2012
Can I use an iLogic Rule at the top assembly level to "replace all" of a particular component is that component resides in more than one subassembly? I need a rule to run and globally replace the component in all subassemblies without opening up each subassembly manually. I can run a rule in the individual subassembly that looks like the following:
If GoExcel.CellValue("3rd Party:Embedding 1", "Sheet1", "A2")=800 Then
Component.Replace("Part1:1", "OtherPartfilename.ipt", True)
End If
Is there a way to run a "replace all" command from a top level assembly?
View 1 Replies
View Related
Nov 14, 2011
Is it possible to replace sub assemblies using ilogic - I can only see a link to replace parts?
View 1 Replies
View Related
Dec 18, 2013
I have an assembly that I am working on that will be used as a configurator, driven by I-logic. Everything is work fine but there is one part off the assembly that will be custom to each new assembly. Is there a way to use I logic to open the ipt file save it as copy with different name and replace the original in the assembly. I know this can be done manual through the productivity tab within the assembly environment, but I am trying to automate the process so the end user will just have to follow prompts that will be given by i-logic.
View 4 Replies
View Related
Oct 30, 2013
is it possible to replace a model from .iam to ipt in idw?
View 2 Replies
View Related
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
Jan 5, 2014
So I have been going round and round in circles on this one iam trying to use replace component within ilogic which is fine with switching one part for another but I want a drop down of parts so it replaces which ever one is active the problem I am having is establishing which one is active. So below is what I have so far but the problem is you cant seem to reference a part that is not in the assembly so I keep getting the error
The component named "Flange 1" was not found for example. I just need a way of establishing which one is currently in the assembly but with out referencing components that are not there.
If Component.IsActive("Flange 1")=True Then current = 1
If Component.IsActive("Flange 2")=True Then current = 2
If Component.IsActive("Flange 3")=True Then current = 3
If part = 1 And current = 2 Then Component.Replace("flange 2", "Flange 1.ipt", True) End If
If part = 1 And current = 3 Then Component.Replace("flange 3", "Flange 1.ipt", True) End If
If part = 2 And current = 1 Then Component.Replace("flange 1", "Flange 2.ipt", True) End If
If part = 2 And current = 3 Then Component.Replace("flange 3", "Flange 2.ipt", True) End If
If part = 3 And current = 1 Then Component.Replace("flange 1", "Flange 3.ipt", True) End If
If part = 3 And current = 2 Then Component.Replace("flange 2", "Flange 3.ipt", True) End If
View 4 Replies
View Related
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
Oct 26, 2011
Is there a way to set an assemblies bill of material setting to reference through iLogic?
View 3 Replies
View Related
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
Sep 20, 2013
For Creating my own templates i want to use iLogic and embedded Excel-Spreadsheets. The embedded Sheet has its own data, but i want to create a rule to refresh the data from an external Excelsheet.
For now i use the following rule:
For I = 65 To 90 '65=A 90=ZBuchstabe = Chr(I) GoExcel.CellValues("3rd Party:Embedding 1", "Platte", Buchstabe & "1", Buchstabe & "999") = GoExcel.CellValues("G:KonstruktionVorlagenMaterialgrunddaten.xlsx", "Platte", Buchstabe & "1", Buchstabe & "A999")Next I
it works well, but wont insert a new single-sheet or refresh formats, i have to add the same code for each sheet. And its REALLY slow.
Is there a possibility to refresh or replace the whole embedded file via a simple iLogic-rule?
View 1 Replies
View Related
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
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
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
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
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
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
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
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
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
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