10-22-2020
02:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-22-2020
02:55 AM
Hello,
Is it possible to always set a assembly to flexible... So when i put it in an assembly, it will be standard flexible.
If not.
Is it possible to make an ilogic so when I put a subassembly into an assembly, I can run a rule so every subassembly starting with "StandardLeg" will be flexble?
Thanks in advance.
Solved! Go to Solution.
10-22-2020
07:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-22-2020
07:06 AM
I don't think you can make the subassembly always flexible on place... You can however run this code in the main assembly after you've placed your components to make the subassemblies starting with "StandardLeg" flexible ![]()
Dim oAsm As AssemblyDocument = ThisDoc.Document For Each oOcc As ComponentOccurrence In oAsm.ComponentDefinition.Occurrences Try If oOcc.Definition.Document.DocumentType = DocumentTypeEnum.kAssemblyDocumentObject _ AndAlso oOcc.Name.StartsWith("StandardLeg") Then oOcc.Flexible = True Catch End Try Next
Jhoel Forshav
Download my free Inventor Addin - Hole Projector
LinkedIn | Ideas | Contributions | Blog posts | Website
10-22-2020
11:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report