Showing posts with label Links. Show all posts
Showing posts with label Links. Show all posts

Thursday, 6 April 2017

Break all cross-part sketch projections

Short and sweet: How to Break Link on cross-part projections for all occurrences in an assembly.




I have mine disabled and I don't create cross-part references. that will slow inventor to a halt, especially on large assemblies.

When you change to Modeling View inside assembly you can select and delete more than one links at a time but only if they are part of the same sketch

Here is the ilogic code used to break adaptivity. Please run this code from an Assembly, internal or external rule

----------------------------------
Dim oAsmDoc As Document 
oAsmDoc = ThisApplication.ActiveDocument

If oAsmDoc.DocumentType <> kAssemblyDocumentObject Then
    MessageBox.Show("Run this rule from an assembly!", "iLogic")
    Return
End If

i=0

For Each oDoc As Document In oAsmDoc.AllReferencedDocuments
 Try 
  If oDoc.ModelingSettings.AdaptivelyUsedInAssembly = True Then
   oDoc.ModelingSettings.AdaptivelyUsedInAssembly = False
   i += 1
  End If
 Catch
 End Try
Next

MessageBox.Show("Turned off adaptivity for " & i & " documents!", "iLogic")
----------------------------------
Please see the screencast example here:
Thanks.
ADS


photo credit: Chatsy POP.H chain (license)

Sunday, 26 January 2014

Autodesk Inventor Unresolved References

Hi guys,
Continuing on the mExtension toolbar for Autodesk Inventor I will show you the "Resolve References" function.
I can't tell you how many times I got the "Unresolved references" window, because files were removed, renamed, or just because Inventor out of the blue decided he can't locate components. 
On one particular company I worked for, the folder location on disk would move depending on the status of the project, like Quote, Live, Completed, and it messes up Inventor big time.
I don't want to work more than I have to especially on dumb boring things like locating missing files and links, so I will show you how to use the Resolve References function that will do just that for you.
Looking at the video you can see that I have missing links, and references and Inventor's complaining doesn't allow me to move forward with this project. This was fine one night before and now it's all broken.
So, in order to fix it, just hit "Skip All" when asked for missing links and use our function to solve it. Go to the mExtension toolbar and click Resolve References.
In here you have a list of all the missing references for which you can manually specify new location or, even better you can use the “search in folder” button.
You don't have to browse to the new folder location as you can select the whole D:/ drive or whatever the location of your files. Of course it takes less time if you narrow it down to say just the Purchased Parts folder for your search. This function is lightning fast but you can help it out by narrowing down the search location.
A pop-up window should tell you that the references are solved, so update and save the model and you're good to go.
That's it for today; please reply on the blog with your own keywords and tags so others can find this post easier.
ADS.

 And of course the video: