08-03-2023
09:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
08-03-2023
09:00 AM
See the attached zip file.
- First step is to remove the adaptivity of the spring.
- Next delete the constraints on the spring and replace them ( not sure why I had to do that, but I did)
- Then create a rule and right click on the sprig and use Capture Current State as shown .
- That will create the code and the named entities in the spring
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
If Spring_Exist = True Then Dim scissor_spring_1 = Components.Add("scissor_spring:1", "scissor_spring.ipt") Constraints.AddInsert("Insert:2", "scissor_spring:1", "Edge0", "blade_main:1", "Edge0", axesOpposed := False) Constraints.AddMate("Mate:1", "scissor_spring:1", "Edge1", "blade_main:1", "Face0") Else Try : Component.InventorComponent("scissor_spring:1").Delete : Catch : End Try End If